<<< Date Index >>>     <<< Thread Index >>>

Re: Avoid Duplicates in $record if Send Fails



On 17Jun2007 08:26, Brendan Cully <brendan@xxxxxxxxxx> wrote:
| On Sunday, 17 June 2007 at 08:48, Kyle Wheeler wrote:
| > The trick, of course, is that once the send fails, you're allowed to 
| > re-edit the message, change the recipients, add attachments, or 
| > anything else. If only the first fcc wins, then you may not be 
| > archiving the message that *actually* got sent.
| 
| That's true, but probably not incredibly difficult to cover
| either. Just a small matter of coding...

You could always make $sendmail use a wrapper script:

  trap 'rm temp-file' 0
  cat >temp-file || exit 1
  /usr/bin/sendmail ${1+"$@"} || exit 1
  cat temp-file >>out-folder.mbox

Obviously the real thing would want more sophistication...
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Bad Boy Gear.  OAKLEY Thermonuclear Protection.  No Fear.  Baby on Board.