Fixed wrong truncation of email recipient

SVN revision: 1714
This commit is contained in:
Stefan Ritt 2006-08-15 11:19:56 +00:00
parent 469d259ed4
commit ee6bb24563

View File

@ -19675,10 +19675,11 @@ void submit_elog(LOGBOOK * lbs)
} }
if (strlen(mail_to) > 0) { if (strlen(mail_to) > 0) {
if (strlen(mail_to) > 4 && mail_to[strlen(mail_to) - 4] == ',')
mail_to[strlen(mail_to) - 4] = 0; /* strip last ',\r\n\t' */ mail_to[strlen(mail_to) - 4] = 0; /* strip last ',\r\n\t' */
if (strlen(rcpt_to) > 1 && mail_to[strlen(rcpt_to) - 1] == ',')
rcpt_to[strlen(rcpt_to) - 1] = 0; /* strip last ',' */ rcpt_to[strlen(rcpt_to) - 1] = 0; /* strip last ',' */
puts(mail_to);
puts(rcpt_to);
if (compose_email if (compose_email
(lbs, rcpt_to, mail_to, message_id, attrib, mail_param, isparam("edit_id"), att_file, (lbs, rcpt_to, mail_to, message_id, attrib, mail_param, isparam("edit_id"), att_file,
isparam("encoding") ? getparam("encoding") : "plain") == 0) isparam("encoding") ? getparam("encoding") : "plain") == 0)