Procmail Recipe Causing Headache

Procmail Recipe Causing Headache

am 15.03.2005 13:38:14 von Raihaan

Hi,
I've got a simple procmail recipe

:0
* ^TO_String
{
:0c:
$HOME/mail/mailarchive
}

I'm on a univeristy unix system. I want the emails sent to "string" to be
stored in the $HOME/mail/mailarchive and go to my default inbox as well. The
recipe above is doing that when I test it by sending an email myself to that
address using Pine. However, if someone else sends an email, it goes to my
inbox, but not in the mailarchive file.
After putting Verbose on in my .procmailrc, the problem seems to be that
there is an error writing to the file.

procmail: Error while writing to "$HOME/mail/mailarchive"
Even setting the mailarchive file writable for all users didn't do the
trick.

Thanks for any ideas on how to solve that problem.
Raihaan

Re: Procmail Recipe Causing Headache

am 18.03.2005 02:40:39 von Alan Clifford

On Tue, 15 Mar 2005, Raihaan wrote:

R> However, if someone else sends an email, it goes to my inbox, but not
R> in the mailarchive file. After putting Verbose on in my .procmailrc,
R> the problem seems to be that there is an error writing to the file.
R>
R> procmail: Error while writing to "$HOME/mail/mailarchive"
R> Even setting the mailarchive file writable for all users didn't do the
R> trick.
R>

All paths are relative to $MAILDIR (see man procmailrc) and this can be
seen in your .procmailrc file. Assuming it is set to $HOME/mail, then
your recipe is

:0 c :
* ^TO_String
mailarchive

--
Alan

( If replying by mail, please note that all "sardines" are canned.
There is also a password autoresponder but, unless this a very
old message, a "tuna" will swim right through. )