Re: hello again every one Im back and have code to contribute

Carlos Rodríguez <[email protected]> Mon, 6 Jan 2014 16:32:58 -0600
Newsgroups gmane.comp.otrs.devel
Message-ID <[email protected]>
Hi Paul,

You as any other contributor is very welcome to send improvements in the code, thank you!

As a suggestion please take a look at the OTRS Development Manual, specially in the code style guide http://doc.otrs.org/developer/3.3/en/html/code-style-guide.html

Following this guide lines will make easier and faster to integrate your contributions. 

((enjoy))

Carlos Rodríguez




On Jan 6, 2014, at 4:05 PM, Paul Robert Marino <[email protected]> wrote:

> hello every one
> Its been quite a few years since I was on this list. Im working now at
> an other company where we are implementing OTRS. I have been looking
> over the code and there has been a lot of progress since I last looked
> at it.
> That said there are a few things that struck me as inefficient and not
> as flexible as I would like in Kernel/System/TemplateGenerator.pm
> 
> Ill be signing the contributors agreement shortly and will do a fork
> with a push request on github shortly but I wanted to gauge some of
> the reactions to what I want to submit before I go to far with it.
> 
> essentially what I would like to change is the handleing of tags like
> <OTRS_CUSTOMER_SUBJECT[20]> and <OTRS_CUSTOMER_EMAIL[5]>
> 
> I found an inefficiency in the handling of <OTRS_CUSTOMER_EMAIL[5]>
> specificly if you set say
> <OTRS_CUSTOMER_EMAIL[99999999999999999999999999999999]> there is an
> inefficiency in the loop which is easy to fix with a precheck which
> I've already written.
> additionally Ive also made a change where <OTRS_CUSTOMER_EMAIL[]>
> <OTRS_CUSTOMER_EMAIL> are treated as inset the whole message.
> the changes I made only added a few lines and a very slight
> modification to the regex used to match and replace it.
> 
> I also modified the handling  of <OTRS_CUSTOMER_SUBJECT[20]> to work
> in a similar manner. and made it so if the length of the subject isn't
> longer than the number of characters specified  it will not add the "
> [...]" suffix to the subject.
> this was handled by a slight tweak of the regex and the addition of an
> if statement.
> 
> 
> What I would like to do eventually is make this functionality a simple
> set of methods (OO speak for functions) which can be called to handle
> this for any of these template replace tags as efficiently as
> possible. we would need more than two because of things like the
> custom fields. I'm fairly sure I could be handled with just a few
> methods simple to use methods and I could make the code far more
> efficient in the process the data.
> 
> Does any one have any comment, suggestions, or requests on this before
> I get too deep into writing it?
> 
> Thank You
> Paul Robert Marino
> _______________________________________________
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/dev
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
>

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
signature.asc (application/pgp-signature, 495 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJSyy8aAAoJEAAgDEqQhBeVQQ8H/jR/5MuGdrysn93O4mQV9/b9
is79jvL7PJoKKoeycfsQgJvWNjC5lt0YvhCclBfkar4NXWrnpY3i4DLkuCP1J51P
ufDX9CxXxe4Cx7hNSqBK3/0rbIbSsyVUtqpx2VfoSQal5vCTOU6YuVbnGp6aQGpF
QSHjhnbpjy9Blt1G8o/MYt+q2hZAPu5YHeM1mUFmUh+rGxzjfoWhBDdvbVThUbM2
08PA5FzUlgm+7sIGl5TvSotY+7YGbLQ6Vw16WYJ7/xKSkjR95fzl9J/8VRc40jjd
bkDNCJniiXf6ZiszBfTei5f1hMtdf+jsOcmuzl1NTaKyz0kMdoHJ9SFQyQMy4KQ=
=vYBn
-----END PGP SIGNATURE-----