[imapfilter-devel] Not filtering

Chris de Vidal cdevidal at yahoo.com
Tue Jun 10 22:07:00 EEST 2003


Great program!  I can't run procmail or some other shell script on our mail
server so this will fit my needs nicely (when I get it working).

In essense, the program shows no errors and nothing appears in the log but as
far as I can tell rules are not being followed.

imapfilter: 0.8.9
IMAP server: Lotus Notes

I've only got one rule for testing right now.  I copied+pasted the email
address into my .imapfilterrc file but it doesn't delete the email.  I get no
errors and it shows I have the mail in my INBOX (not run in daemon mode):
Connected to <mail server>.
1 message, 0 recent, 0 unseen, in mailbox "INBOX".

.imapfilterrc:
==========================================
logfile = /home/<username>/.imapfilter.log
set timeout = 120
expunge = yes
subscribe = yes

account account1 <username>:<password>@<mail server>
    folder INBOX INBOX

filter filter1
    from <email address>
action delete

job filter1 INBOX
=================

The email remains in INBOX even though the email addresses match.  Nothing
shows up in the log file.

So I changed the rule to this:
==============
filter filter1
    subject "Testing imapfilter" # This is the actual subject, cut and pasted
action delete
=============

The mail stubbornly sits in INBOX.

I've heard Lotus Notes uses a backward slash "\" for folder delimiters. 
Perhaps this is the problem?  But as you can see, I'm specifying INBOX with no
slashes, so I not sure that's the problem.

Here's a snippet of the strace output:
write(5, "F00004 SEARCH SUBJECT \"Testing i"..., 44) = 44
fcntl64(5, F_SETFL, O_RDWR)             = 0
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
select(6, [5], NULL, NULL, {120, 0})    = 1 (in [5], left {119, 805000})
read(5, "F00004 NO SEARCH Database is not"..., 4096) = 52
fcntl64(5, F_SETFL, O_RDWR)             = 0
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
select(6, NULL, [5], NULL, {120, 0})    = 1 (out [5], left {120, 0})
write(5, "F00005 CLOSE\r\n", 14)        = 14

Ideas?  Want me to send the strace output?

=====
/dev/idal
"GNU/Linux is free freedom" --Me

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com



More information about the Imapfilter-devel mailing list