#55 rename after sendmail error

open
nobody
None
5
2007-01-29
2007-01-29
Sami Farin
No

If mixmaster fails to execute sendmail,
it renames the pool file so that you can't try to resend without manual rename.

in pool_dosend() I did this way:

if (msg_send(path) == 1)
mv(e->d_name, "msg");

original version renames to "err".
comments?

if sendmail runs out of mem, why shouldn't one be allowed to retry after a couple of seconds manually?

Discussion

  • Sami Farin
    Sami Farin
    2007-01-29

    Logged In: YES
    user_id=13022
    Originator: YES

    File Added: mixmaster-sendmail-error-handling.patch

     
  • Sami Farin
    Sami Farin
    2007-01-29

    detect errors in openpipe, closepipe and first buf_write

     
  • Sami Farin
    Sami Farin
    2007-01-29

    • summary: ignores sendmail errors --> rename after sendmail error
     
  • Sami Farin
    Sami Farin
    2007-01-29

    Logged In: YES
    user_id=13022
    Originator: YES

    BTW. there's a bug in Redhat Fedora FC6 glibc-2.5-8 pclose(),
    it returns 0 on success and 32512 (instead of -1) on failure (and does not set errno).
    https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175167