LuKreme wrote:
On 22-Jan-2008, at 10:56, James wrote:
Hi guys in addition to this procmail rule i was wondering how to get a
user to auto subscribe to a new mbox file created by the rule $MATCH
Would there be something additional to add to the rule?
like if i were just shell scripting it i would think it would be
something like this:
`test -f "$MATCH"`
if ($RETURNCODE != 0)
{****
`echo $MATCH >> $HOME/.mailboxlist`
}
:0
* $ ! test -f $MAILDIR/$FROM_USER
{
# mailbox does not exist
:0fw
| echo "$MAILDIR/$FROM_USER >> $HOME/.mailboxlist"
}
Not tested, I don't remember if you can use $MAILDIR like that.
--
...when you're no longer searching for beauty or love, just some kind
of life with the edges taken off. When you can't even define what it
is that you're frightened of; this song will be here.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
oh to clarify i'm working with mbox files not maildir.
So i'm testing for the mbox file not a directory with maildir files
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail