Re: Duplicate emails
Mathias Bauer <[email protected]> Thu, 23 Oct 2014 07:56:21 +0200
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
* LuKreme wrote on Wed, 22 Oct 2014, at 23:36 (-0600):
> On 22 Oct 2014, at 22:04, Mathias Bauer wrote:
> > * 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’.
>
> Oh right. I knew that. Once. A decade or more ago.
And it still works without causing *any* headaches :-)
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
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
[email protected]
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
signature.asc
(application/pgp-signature, 455 B)
-----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJUSJiFAAoJEAC+R9yZE+vYMJ4H/jGLC8o/G+pC9YHlIpwrk7AA 0Rn2LSB4w7mYtulCI7ywvSuTkS1JfDMK33rjVZrXaz+zc6N1XLTCyJ1BZQYb6BrA V+OcTanLISqTBF5jfqUsdSo5e3MbFWrzgoM7LaJscz95WhQeHYympMjW3j/MkzmD vRcXFgMn+nMtmHwsfbZCQvXJw9Kp1wMZ6OP25yH+80n8AgYAgs/cPfb7tiJgZyCX jUr6yG6puOySIMjn+ZzEUR0vFe0oqkTKCT/IkRDvJQ9xRhx66S13FQvmcwVnNbQj VucBlhGt3z4dQO3DQdr7rJS7XKa+nNdtJjJi6i3qwGD+yaq7bcgqSOC4vkfJarc= =D2BW -----END PGP SIGNATURE-----