Re: Duplicate emails

Mathias Bauer <[email protected]> Thu, 23 Oct 2014 06:04:29 +0200
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
* 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

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

iQEcBAEBCgAGBQJUSH5NAAoJEAC+R9yZE+vYQnsH/1+IBvZDd5Ibj28gcUV+rpsP
ynwjtHF7/B6reRlpaFyk0kYGFg+wh2L3S/LzQaqxrb9v++fZ0o4Ml2069M0lq3DV
zdoqrFzyoPen8XwhcigRCXA2CHGz1KZgJp0FYQ+oySkWELp+gXWXuB2h4nDHrHYS
fAVBkWmb0OuCzm9VContQD8TDkyCOn1moeVKhS54GD/ybR71ugGvMCvcrKzsutqV
OTQ/knr7MlA1CL4eV6uMohyeukJGSaQP7Xi9azGntaIXHtysGvZW4wnEitrGd2Nj
4QTAO6lpEQB0eNAb4p/2976wefdsJKbPrLutgUbh5oW5tm5SmTyCYWknme7yDVA=
=NZh8
-----END PGP SIGNATURE-----