procmail
[Top] [All Lists]

Re: fetchmail procmail issue

2007-08-18 10:16:38
Am 2007-08-15 21:06:51, schrieb rouble:
<snip>
Is there a way to that I can add an action when procmail fails like
this? In the action I can set it up to delete the last id from the
idfile.
<snip>

Why not test whether the drive is mounted with

----8<----------------------------------------------------------
:0
* ? test -f /mnt/Maildir/file_on_the_MOUNTED_media
{

   MAILDIR=/mnt/Maildir
   DEFAULT=${MAILDIR}

   <rest of your recipes>
}

:0 E
{
    DEFAULT=/
}
----8<----------------------------------------------------------

This recipe will test, whether the file "file_on_the_MOUNTED_media"
is in the MOUNTED directory /mnt/Maildir/ an continue normal.

IF the file is not found, WE ENFORCE an error sinc the $USER can
not write to / which mean, procmail returns with NON-ZERO and
fetchmail WILL NOT WRITE the "idcache".

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)
____________________________________________________________
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

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