Martin Edenhofer | 10 Mar 2008 22:06

Kernel::System::Cache API for OTRS 2.3 and higher

Hi,

JFI, there is a new Kernel::System::Cache API improvement for OTRS 2.3  
and higher.

You need to define the cache type of your cached object to get it  
separated (== uniq name space for each object).

So if  Kernel::System::Cache::File is used also a better storage is  
possible because it can manage each cache type in a differend sub  
directory (so it will not be longer in one directory, old storage  
$CacheDir/$CacheFiles new storage $CacheDir/$CacheType/$CacheFiles).

Here an example of the API change.

    API Example (old):
        $CacheObject->Set(
            Key   => 'SomeKey',
            Value => 'Some Value',
            TTL   => 24*60*60,     # in sec. in this case 24h
        );

    API Example (new):
        $CacheObject->Set(
            Type  => 'ObjectName',
            Key   => 'SomeKey',
            Value => 'Some Value',
            TTL   => 24*60*60,     # in sec. in this case 24h
        );

(Continue reading)

Marc Brockschmidt | 11 Mar 2008 16:24
Picon

Mail charset problems with some DB backends (+ patch)

Heya,

We had some problems with OTRS 2.0.4, which simply lost emails which
were supposed to end up in one of our queues. I was able to track this
problem down to the PostgreSQL DB rejecting the body due to a broken
Unicode sequence. This was caused by the emails, which were marked as being
UTF8, but contained a disclaimer attached by the customer's MTA - in
latin1.

After removing the QP encoding, OTRS noticed that the target charset for
the DB (utf8) and the source charset were the same and skipped
re-encoding with Perl's Encode module. This sounds like a sane
optimization, but the decode/re-encode step has the nice side-effect of
validating all byte sequences and replacing broken data by some valid
character.

I removed the optimization, mails are now processed without a
problem. I have attached two patch: The first applies to 2.0.4 and has
been tested, while the second applies to 2.2.5, but hasn't been tested. 
Please apply it, or at least add a configure option enforcing
re-encoding of mails.

Thanks,
Marc

_______________________________________________
(Continue reading)

André Bauer | 12 Mar 2008 11:53
Picon

Re: Mail charset problems with some DB backends (+ patch)

Guten Tag Marc Brockschmidt.

Please add Patches to the Bugtracker...

http://bugs.otrs.org

--

-- 
Mit freundlichen Grüßen
André Bauer
monotek <at> gmx.net

System: 
Ubuntu 6.06.1/Apache 2.0.55-MOD_PERL/MySQL 5.0.21/OTRS 2.2.4

_______________________________________________
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

Julien CHAMPSEIX | 18 Mar 2008 22:00

Notification Question

Hi Developers,

 

I’m coming there because Shawn Beasley said to me to ask there my question which is :

 

I wanna try to modify the Agent Notification in order to have an sender per Queue (because currently we have an sender for all Queue used by notification) .

 

Which file or files should i take a look if i wanna try to modify it ?

 

 

I’m joining history question from otrs-bounces list:

 

-----Message d'origine-----

 

Hi Julien,

> Hi Shawn,

>

 

> OK cool can you just say to me so which file or files should i take a look if i wanna try to modify it ?

>

 

>  

try on the developer list. I am not a programmer :) Good Luck!

 

Shawn

 

--

Shawn Beasley

((otrs)) :: OTRS AG :: Norsk-Data-Straße 1 :: 61352 Bad Homburg

    Fon: +49 (0) 9421 56818 0 :: Fax: +49 (0) 9421 56818 18

      http://www.otrs.com/ :: Communication with success!

 

Geschäftssitz: Bad Homburg

Amtsgericht Bad Homburg, HRB 10751

Steuernummer: 003/240/97521

 

Aufsichtsratsvorsitzender: Burchard Steinbild

Vorstandsvorsitzender: André Mindermann

 

-----Message d'origine-----

De : otrs-bounces <at> otrs.org [mailto:otrs-bounces <at> otrs.org] De la part de Julien CHAMPSEIX Envoyé : lundi 10 mars 2008 16:55 À : 'User questions and discussions about OTRS.org'

Objet : RE: [otrs] Notification Question Importance : Haute

 

Yes but the problem is the following:

 

I'm notified when I have a new ticket in a queue but it's always using the default address system. I would be notified by different address following the Queue.

 

For example:

 

I have 3 queue:

 

File Hard::1

File Hard::2

File Hard::3

 

I would for each Ticket created in File Hard::1, each notification will be send with the sender toto <at> toto.com I would for each Ticket created in File Hard::2, each notification will be send with the sender titi <at> toto.com I would for each Ticket created in File Hard::3, each notification will be send with the sender tatit <at> toto.com

 

 

What I can settings up it in Filter ? in Queue ?

 

 

Many thx for all  help!

 

Regards,

Julian.

 

-----Message d'origine-----

De : otrs-bounces <at> otrs.org [mailto:otrs-bounces <at> otrs.org] De la part de Shawn Beasley

Envoyé : jeudi 6 mars 2008 12:32

À : User questions and discussions about OTRS.org

Objet : Re: [otrs] Notification Question

 

Hi Julien,

>

 

> Hi Guys,

>

 

>

 

> I would know if it’s possible to use different sender for notification

> for a new ticket by each Queue.

>

 

>

 

> For example:

>

 

>

 

> For an queue called “prod” I would use sender toto <at> toto.com

> <mailto:toto <at> toto.com> for notification for a new ticket.

>

 

>

 

> For an queue called “prod2” I would use sender toto2 <at> toto.com

> <mailto:toto2 <at> toto.com> for notification for a new ticket.

>

 

>

 

Each queue can use an individual system address for identification purposes!

>

 

> Thx for all help!

>

 

>

 

> Regards,

>

 

> Julian.

>

 

 

 

 

Thx for your answer.

 

Best Regards,

Julien.

_______________________________________________
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
IKEDA Soji | 24 Mar 2008 04:44
Picon

Re: Request for Comments: OTRS in Japanese

Hi.

This post is a response to:
http://lists.otrs.org/pipermail/dev/2007-February/001488.html

At Wed Feb 21 14:01:25 2007 +0800, Tietew <tietew <at> tietew.net> wrote:

> There is a big problem to use OTRS in Japanese that;
> many web-based MUAs, such as Hotmail and Yahoo, and some popular
> MUAs, such as Microsoft Exchange and Lotus Notes, does not
> support UTF-8! 

> Therefore, customers which use these MUAs cannot read mails sent
> from OTRS. They can read mails encoded in ISO-2022-JP only.
> My OTRS must send mails as ISO-2022-JP.

This is not necessarily problematic only on Japanese language but
also on the others: If outbound mails are encoded using UTF instead 
of legacy charset, probablly some (even ``many'' on some languages) 
customers cannot read them. --- Why spammers (:-|) usually send 
mails using legacy charset, not using UTF at all?

> I cannot use ISO-2022-JP as OTRS UI. Because:
> 1. ISO-2022-JP is insecure for web applications.
>    ISO-2022 series is stateful encoding and contains \x1B escape
>    sequence. It's very hard to handle stateful encoding
>    correctly for web applications.
> 2. I want to share one OTRS installation and its queues in
>    multilingual project team. Non-Japanese team can or must use UTF-8.
>    And, OTRS must be able to send ISO-2022-JP mail even if
>    user uses English UI.
> 
> In other word, I do not want Japanized (locally patched) OTRS.
> 
> 
> -----
> 
> My suggestion is to create "mail character encoding" to queue
> settings (defaults to UTF-8, or empty meaning system default
> charset). for example,
> 
> info-en queue uses 'UTF-8' or ''
> info-ja queue uses 'ISO-2022-JP'
> 
> A mail composd mail in info-en queue is encoded as UTF-8.
> A mail composd mail in info-ja queue is encoded as ISO-2022-JP.
> 
> This solution seems to make them happy that all users in all
> languages.

I posted a patch to Bugzilla, based on the idea as described above:

  http://bugs.otrs.org/show_bug.cgi?id=2793

Some notes:
- In general, internally used legacy charset (e.g. euc-jp for 
  Japanese) can be differ from that actually encodes email message 
  (e.g. iso-2022-jp ditto) so that we avoid from suffering with 
  insecure charsets while determine repertoire of legacy codesets.  
  Although, auto-conversion features are wrapped into external CPAN 
  modules.

- New language file ja.pm for Japanese is imcomplete and not 
  proofread (there may be inappropriate terminology etc.).  So I
  won't post this message to i18n list for now.

Is this solution desirable?

--

-- 
IKEDA Soji, Conversion Co., Ltd. <ikeda <at> conversion.co.jp>
_______________________________________________
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

Jo Rhett | 24 Mar 2008 21:34
Favicon
Gravatar

Re: [otrs] code to fix &#8217; and other codes when sending e-mail?

So it's fairly common for people to cut/paste text into their  
ticket.  Unfortunately, many common things are converted to HTML  
codes when sent.  The most common is an apostrophe being converted to  
&#8217;  (right-tick apostrophe)

Obviously this is not very useful when sending plain text e-mail.  Is  
there already an appropriate place to fix e-mail when sending, where  
replacements like this can be done?

--

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness

_______________________________________________
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

Pulver, Steve | 24 Mar 2008 23:49
Picon
Favicon

Reposting in hope of feedback

 

 

From: otrs-bounces <at> otrs.org [mailto:otrs-bounces <at> otrs.org] On Behalf Of Pulver, Steve
Sent: Friday, March 21, 2008 4:09 PM
To: otrs <at> otrs.org
Subject: [otrs] OTRS Backup for Windows

 

Can anyone comment on the following?  We were trying to run the backup script (OTRS is installed on a Windows box) and had to make the following changes to get it to work properly.  We changed the process for directory change as noted below.  Is there another way we should be getting backups to run?  Will this cause issues for us in the future?

 

Thanks in advance.

 

Steve

 

From: Fisher, Michael
Sent: Thursday, March 20, 2008 5:26 PM
To: Clary, Steve; Pulver, Steve
Subject: OTRS Backup Changes

 

Steve, Steve--

 

I changed the backup script from doing the directory change in the subshell (system) process to directly from perl, and this helped, because Perl can interpret the hybrid DOS/UNIX-style paths (i.e. "C:/OTRS/otrs") better than the DOS shell can:

 

C:\OTRS>cd c:/otrs/otrs
The system cannot find the path specified.

 

This corrected the failure we had--there might be a cleaner way to put it into the script, but I was just moving quickly.

 

--- backup.pl.orig      2008-03-20 17:16:07.716496300 -0400
+++ backup.pl   2008-03-20 17:15:15.795618200 -0400
<at> <at> -182,7 +183,8 <at> <at>

 # backup Kernel/Config.pm
 print "Backup $Directory/Config.tar.gz ... ";
-if (!system("cd $Home && tar -czf $Directory/Config.tar.gz Kernel/Config.pm Kernel/Config/Files/ZZZA*.pm Kernel/Config/GenericAgen*.pm")) {
+chdir($Home);
+if (!system("tar -czf $Directory/Config.tar.gz Kernel/Config.pm Kernel/Config/Files/ZZZA*.pm Kernel/Config/GenericAgen*.pm")) {
     print "done\n";
 }
 else {
<at> <at> -192,7 +194,8 <at> <at>
 # backup application
 if ($FullBackup) {
     print "Backup $Directory/Application.tar.gz ... ";
-    if (!system("cd $Home && tar -czf $Directory/Application.tar.gz .")) {
+    chdir($Home);
+    if (!system("tar -czf $Directory/Application.tar.gz ")) {
         print "done\n";
     }
     else {

 

--
Mike Fisher     Michael_Fisher <at> urmc.rochester.edu       585-275-6884
University of Rochester                                 School of Nursing

_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/

Archive: http://lists.otrs.org/pipermail/otrs

To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Support or consulting for your OTRS system?
=> http://www.otrs.com/
_______________________________________________
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
Martin Edenhofer | 25 Mar 2008 14:24

Re: Reposting in hope of feedback

Hi Steve,

yes, the backup.pl was written for unix. Your patch looks good.

I'll test/verify it and come back to you....

Greetings,

  -Martin

On Mar 24, 2008, at 23:49 , Pulver, Steve wrote:

>
>
> From: otrs-bounces <at> otrs.org [mailto:otrs-bounces <at> otrs.org] On Behalf  
> Of Pulver, Steve
> Sent: Friday, March 21, 2008 4:09 PM
> To: otrs <at> otrs.org
> Subject: [otrs] OTRS Backup for Windows
>
> Can anyone comment on the following?  We were trying to run the  
> backup script (OTRS is installed on a Windows box) and had to make  
> the following changes to get it to work properly.  We changed the  
> process for directory change as noted below.  Is there another way  
> we should be getting backups to run?  Will this cause issues for us  
> in the future?
>
> Thanks in advance.
>
> Steve
>
> From: Fisher, Michael
> Sent: Thursday, March 20, 2008 5:26 PM
> To: Clary, Steve; Pulver, Steve
> Subject: OTRS Backup Changes
>
> Steve, Steve--
>
> I changed the backup script from doing the directory change in the  
> subshell (system) process to directly from perl, and this helped,  
> because Perl can interpret the hybrid DOS/UNIX-style paths (i.e. "C:/ 
> OTRS/otrs") better than the DOS shell can:
>
> C:\OTRS>cd c:/otrs/otrs
> The system cannot find the path specified.
>
> This corrected the failure we had--there might be a cleaner way to  
> put it into the script, but I was just moving quickly.
>
> --- backup.pl.orig      2008-03-20 17:16:07.716496300 -0400
> +++ backup.pl   2008-03-20 17:15:15.795618200 -0400
>  <at>  <at>  -182,7 +183,8  <at>  <at> 
>  # backup Kernel/Config.pm
>  print "Backup $Directory/Config.tar.gz ... ";
> -if (!system("cd $Home && tar -czf $Directory/Config.tar.gz Kernel/ 
> Config.pm Kernel/Config/Files/ZZZA*.pm Kernel/Config/ 
> GenericAgen*.pm")) {
> +chdir($Home);
> +if (!system("tar -czf $Directory/Config.tar.gz Kernel/Config.pm  
> Kernel/Config/Files/ZZZA*.pm Kernel/Config/GenericAgen*.pm")) {
>      print "done\n";
>  }
>  else {
>  <at>  <at>  -192,7 +194,8  <at>  <at> 
>  # backup application
>  if ($FullBackup) {
>      print "Backup $Directory/Application.tar.gz ... ";
> -    if (!system("cd $Home && tar -czf $Directory/ 
> Application.tar.gz .")) {
> +    chdir($Home);
> +    if (!system("tar -czf $Directory/Application.tar.gz ")) {
>          print "done\n";
>      }
>      else {
>
> --
> Mike Fisher     Michael_Fisher <at> urmc.rochester.edu       585-275-6884
> University of Rochester                                 School of  
> Nursing
> _______________________________________________
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> Support or consulting for your OTRS system?
> => http://www.otrs.com/_______________________________________________
> 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

Felix J. Ogris | 25 Mar 2008 15:46
Picon
Favicon

workflow in PendingJobs.pl

Hi,

wouldn't it be more useful if PendingJobs.pl reminds about pending tickets
first? So agents would receive an email if a ticket has reached pending
time. Afterwards the state of that ticket could be set to "open" or
whatever.
Applying this is quite simple. Just put everything below "# do ticket auto
jobs" (except the final exit) after the copyright notice.

Regards,
Felix

_______________________________________________
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

Julien CHAMPSEIX | 25 Mar 2008 17:17

Notification QUestion

Hi,

 

I'm notified when I have a new ticket in a queue but it's always using the default address system. I would be notified by different address following the Queue.

 

For example:

 

I have 3 queue:

 

File Hard::1

File Hard::2

File Hard::3

 

I would for each Ticket created in File Hard::1, each notification will be send with the sender toto <at> toto.com I would for each Ticket created in File Hard::2, each notification will be send with the sender titi <at> toto.com I would for each Ticket created in File Hard::3, each notification will be send with the sender tatit <at> toto.com

 

 

Which file or files should I modify in order to have those notification ?

 

 

Many thx for all  help!

 

Regards,

Julian.

 

_______________________________________________
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

Gmane