
On Friday, May 14, 2004 2:16 PM
Patrik Forsberg
Incoming mail with "Subject: Att. John" then I'd like to add a header to the mail that OTRS then sees and lock the specific incoming mail to the Agent "John".. is this possible or can it be done in some other way.. like GA ?
GA is not the way to go, but Procmail were, or the integrated PostmasterFilter. Let's go for both: # Procmail recipe # goes to .procmailrc : 0 fhw : * ^Subject: Att\. John |formail -I "X-OTRS-Owner: John" # PostMaster Filter # goes to Kernel/Config.pm $Self->{'PostMaster::PreFilterModule'}->{'10-John'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { Subject => '^Att\. John', }, Set => { 'X-OTRS-Owner' => 'John', }, }; Search Kernel/Config/Defaults.pm for the term "PostmasterX-Header" to get the default list of recognizable eMail headers. This list may be repeated and thus extended to your wish in Kernel/Config.pm. Do not edit Defaults.pm - you have been warned. Remember to actually copy the complete list from Defaults.pm to retain the default values. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388