[imapfilter-devel]moving only unseen messages?
Matej Cepl
matej at ceplovi.cz
Wed Oct 2 19:52:00 EEST 2002
Hi,
I have created this simple anti-spam measure in my .imapfilterrc:
set logfile = /home/matej/.imapfilter.log
set namespace = no
set timeout=120
set headers=yes
account neu login:pass at neumail04.neu.edu tls1
folder inbox-folder INBOX
filter korejci or
mask header Content-Type euc-kr
mask header Content-Type gb2312
mask header Content-Type ks_c_5601-1987
action delete Subject
filter spam or
mask unseen
mask and header X-AntiAbuse ""
mask header X-YahooFilteredBulk ""
mask header Received superonline.com
mask subject FREE
action move spam Subject
job korejci inbox-folder
job spam inbox-folder
However, the trick with mask unseen doesn't seem to work. My
intention was that whenever I will find in my spam mailbox
message that is not spam, I would move it back to INBOX (after
opening it) and imapfilter won't be triggered by it anymore.
However, it doesn't work so (even after reading the thing it
moves). I guess I would need something like:
if unseen && (header X-AntiAbuse "" || header X-YahooFilteredBulk "" \
header Received superonline.com || subject FREE)
{
move spam;
}
(to use quasi-C notation).
How should I do it?
Matej
--
Matej Cepl, matej at ceplovi.cz
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review
of Pennsylvania, 1759.
More information about the Imapfilter-devel
mailing list