procmail
[Top] [All Lists]

Re: filtering duplicates

2001-08-21 03:21:24
On Sat, Aug 18, 2001 at 01:08:20AM -0700, Bob Holtzman wrote:
This resides in $HOME/Procmail/duplicates.rc which is called from
$Home/.procmailrc via PMDIR=$HOME/Procmail and
INCLUDERC=$PMDIR/duplicates.rc. This is the first fiter called.

It may be the first filter called, but are you setting any variables before
you call your filters? Those can have an affect on how your filters behave.

The error message indicates that you didn't create that directory.
You'll find it's a file now.  Just remove the file and create it as
a directory.

Right. It's a file that IIRC was created the first time I ran that
filter. The backups are written to it successfully, so I ignored it.

The backups may be written to it successfully, but the recipe is not working
right. The recipe is to back up only the last X number of messages, deleting
old messages as new ones come in. To do this, the backup folder needs to be a
maildir, as the recipe can't remove messages from a mbox. Thus your recipe is
in fact failing.

formail is trying to open the cache for reading and writing and failing.
If the file doesn't exist and formail can't create it, you'll get this
message.  You'll also get that message if the file permissions don't
allow both read and write by you.

It exists. The duplicates filter worked at one time and the file was
created then. At some point it stopped working.

[holtzm(_at_)localhost holtzm]$ ls -l msgid.cache
-rw-rw-rw-   1 holtzm   holtzm          0 Sep 10  2000 msgid.cache

Ouch! Why on earth is that file 666? There is no reason to give the entire
world write access to that file.

-- 
Andrew Edelstein        -       andrew(_at_)pure-chaos(_dot_)com
http://andrew.pure-chaos.com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>