Menu

#22 sendmail failed due to too many apostrophes

open-accepted
nobody
Stable (9)
5
2006-11-13
2006-11-01
No

The call to sendmail in p3scan.c line 186 fails
sometimes because the text body contains a ' ("Can't send")

snprintf(puffer,4096,"echo '%s' | %s -s 'P3Scan
Terminating!' %s", config->emergency, config->mail,
config->emergcon);

Replace with:

snprintf(puffer,4096,"echo \"%s\" | %s -s 'P3Scan
Terminating!' %s", config->emergency, config->mail,
config->emergcon);

And all is fine.

Edwin

Discussion

  • Jack S. Lai

    Jack S. Lai - 2006-11-13

    Logged In: YES
    user_id=889251

    Corrected in development branch. Thank you.

     
  • Jack S. Lai

    Jack S. Lai - 2006-11-13
    • status: open --> open-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB