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, [email protected], republicans
> 
> filter11= From, [email protected], 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 with
two search criteria, you will have to put first criterion and other keys in
key 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 in
preference 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.html
Sent 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 list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to