7 messages in net.sourceforge.lists.courier-maildrop[maildropl] Reformail not creating du...
FromSent OnAttachments
Alex NeedhamSep 24, 2004 8:04 am 
Tony EarnshawSep 24, 2004 12:33 pm 
Sam VarshavchikSep 24, 2004 4:34 pm 
Alex NeedhamSep 27, 2004 7:35 am 
Alex NeedhamSep 27, 2004 7:51 am 
Tony EarnshawSep 27, 2004 12:12 pm 
Tony EarnshawSep 27, 2004 5:43 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Reformail not creating duplicate databaseActions...
From:Alex Needham (alex@intersystems.com)
Date:Sep 24, 2004 8:04:48 am
List:net.sourceforge.lists.courier-maildrop

Hi Folks

Just struggling to get final touches on mail system.

Redhat ES 3.0 update3 MTA postfix 2.0.16 LDA courier maildrop-1.7.0.20040907 POP/IMAP courier 3.07

Postfix

mailbox_command = /usr/bin/maildrop -d ${USER} -w 70

Seemed to be the way to go from the readme,

I can use mailbot for out of office, do some simple .mailfilter(ing), but having real trouble with reformail

Following the example given in the man page and just to sanity check I wrote the following filter:-

.mailfilter

logfile "maildrop-filter-log" if (/^Subject: dup/ ) { 'reformail -D 8000 duplicate.cache' cc "| /usr/bin/mailbot -t some.txt -s 'The return Code is $RETURNCODE' /usr/sbin/sendmail -f aper@example.com" }

So I can send a test message with the subject 'dup' and get it cced, hopefully with reformails RETURNCODE, when I get the cced message there is no value for the $RETURNCODE.

I don't know where the duplicate.cache is created, I would expect the users home dir, maybe once this is solved reformail will start working and I can start fine tuning to stop duplicates.

A little bit of futher investigation shows the $RETURNCODE just does not seem to be being set, using 'test -f some.txt'.

Any help greatly appreciated

Rgds

Alex Ps

I had to change the spec file to get delivery to Maildirs and copy config.h before the building started, not a nice way of doing it but maildrop seems to work ok apart from the below.

It would be nice if this option could be configured some other way. i.e --default_def="/wherever", if you can do this I haven't spotted it in the docs.