[imapfilter-devel] Not filtering

Lefteris Chatzibarbas lefcha at hellug.gr
Wed Jun 11 02:38:01 EEST 2003


On Tue, Jun 10, 2003 at 12:09:54PM -0700, Chris de Vidal wrote:
> 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.
> 
> [...]

Recompile imapfilter with DEBUG info enabled.  You can do this with
something like this:

  $ tar zxf imapfilter-0.8.9.tar.gz
  $ cd imapfilter-0.8.9
  $ ./config -o debug=yes
  $ make

Then run imapfilter and save its output to a file with something like:

  $ ./imapfilter 2>&1 | tee /tmp/imapfilter.out

Send the relevant parts or the whole output file, and also, make sure to
strip any sensitive information (such as passwords).




More information about the Imapfilter-devel mailing list