From: Roalt Z. <ro...@kw...> - 2005-12-08 20:48:34
|
> Hey lads, > > [snip a lot of text] >> >> I would go for $category = 'UNSEEN UNDELETED' and $category = >> 'UNDELETED' >> in case of an all message search (all in this case every without the >> \Delete flag set), >> >> Yes i'm sure about this. It's useless to filter deleted messages. >> >> The final expunge removes the deleted messages anyway. > > Thanks for the input, I will test this on my server now and then check if > it works for me. It doesn't fix my problem, although the UNDELETED entry is a good thing if a lot of messages are already deleted by filters. I think the problem lies in the filter_search_and_delete which maybe cannot cope with two filters sending it to the same folder? I looked at the code again and it loops through all filters the same way as it does do the 'TO' and 'CC' searches with: $id = filter_search_and_delete($imap_stream, 'TO', $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $id); $id = filter_search_and_delete($imap_stream, 'CC', $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $id); and the general rules for the others: $id = filter_search_and_delete($imap_stream, $filters[$i]['where'], $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $id); Hmm I am kindof confused now :-/ Roalt > Roalt > -- > Project-Based Calendar System > http://www.pbcs.org > ro...@pb... > ro...@kw... > zij...@st... (Work) > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > -- > squirrelmail-devel mailing list > Posting Guidelines: > http://www.squirrelmail.org/wiki/MailingListPostingGuidelines > List Address: squ...@li... > List Archives: > http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.devel > List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=7139 > List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel > -- Project-Based Calendar System http://www.pbcs.org ro...@pb... ro...@kw... zij...@st... (Work) |