procmail
[Top] [All Lists]

Re: Duplicate emails

2014-10-22 23:04:38
* LuKreme wrote on Wed, 22 Oct 2014, at 20:46 (-0600):

:0c
/backups/imap.backups

If that fails, the duplicate message falls through.

Is there anyway to trap that so that a duplicate is not
generated if the write of the copy fails?

:0 c
/backups/imap.backups

:0 e
{
  EXITCODE=75
  HOST
}

When unsetting HOST, processing of the current rcfile will
immediately cease.  The mail is returned to the queue, so that
the MTA will retry to deliver it later.  Code 75 is for
EX_TEMPFAIL in `/usr/include/sysexits.h'.

Regards,
Mathias

-- 
CAcert Assurer - See http://www.CAcert.org for details or ask me
GnuPG/OpenPGP: B100 5DC4 9686 BE64 87E9 0E22 44C3 983F A762 9DE8

Attachment: pgpE63_8A1fn7.pgp
Description: PGP signature

____________________________________________________________
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>