Re: user pref file format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Eduardo E. Silva wrote:> > Whats is the format of the user's pref file ? I am interested in the> mail filter portion of it.> > filter5=<email_header>,<pattern>,<folder>> > I so far figure what each field is for. I would like to> combine the pattern to avoid having to repeat the same filter for the same> box. For example. > > filter10=From, george.bush@xxxxxxxxx, republicans> > filter11= From, john.mccain@xxxxxxxxx, republicans> First two keys are used in IMAP SEARCH command.
SEARCH CHARSET some-charset <email_header> {length of pattern}\r\n<pattern>
You can find more information about search syntax in RFC3501, chapter 6.4.4. SEARCH Command. Command allows to have more than one search criterion. 
Plugin always sends <pattern> as string. If you want to create filter withtwo search criteria, you will have to put first criterion and other keys inkey part.
Command with two search criteria should look similar to
SEARCH CHARSET some-charset OR <email_header1> "<pattern1>" <email_header2>{length of pattern2}\r\n<pattern2>
'OR <email_header1> "<pattern1>" <email_header2>'  must be stored inpreference key which usually stores only '<email_header>' and <pattern1>will be limited to plain ASCII without line feeds or CRs.
Correct way of doing it is to modify plugin's code or use other plugin.-- Tomas-- View this message in context: http://www.nabble.com/user-pref-file-format-tp24990005p24991261.htmlSent from the squirrelmail-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.  http://p.sf.net/sfu/bobj-july-----squirrelmail-users mailing listPosting guidelines: http://squirrelmail.org/postingguidelinesList address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxxxxxx archives: http://news.gmane.org/gmane.mail.squirrelmail.userList info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux