Mailing List Archive

AutoReply-bug
AutReply is not sent out. i traced and debugged and so on:

whyever (a command-line test didn't do that) dbmail seems to be confused
about a "from" with " in it, possible? (FROM as the auto-reply TO, that is)

i couldn't find anything in the source for that, but still...
fprintf(mailpipe, "To: %s\n", replyto ? replyto : from);
is apparently the line that does No Good..

i tested with
From: "aaaa" <aa@vb>
To: "sadsd" <cc@dd>

and the result was the same (error)

Subject is, however, not affected...

suggestions?
i can't patch it :( - can only read basic C

Auto-Reply gives me:
send_reply(): reply could not be sent: sendmail error
"Sendmail" is postfix,
SENDMAIL=/usr/sbin/sendmail
DBMAIL_FROM_ADDRESS=dbmail@office-vienna.at
POSTMASTER=postmaster@office-vienna.at
AUTO_NOTIFY=yes
AUTO_REPLY=yes

LOG lvl 5:
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: db_query(): executing [SELECT
reply_body FROM auto_replies WHERE user_idnr = 1]
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: db_get_reply_body(): found
body [i am away. Please no mail]
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: GetConfigValue(): searching
value for config item [SENDMAIL]
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: GetConfigValue(): found value
[/usr/sbin/sendmail]
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): found sendmail
command to be [/usr/sbin/sendmail]
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): found FROM
["Wulff D. Heiss" <styx@office-vienna.at>]
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): found SUBJECT
[tt]
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): header fields
scanned; opening pipe to sendmail
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): sending data
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): pipe closed
Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): reply could not
be sent: sendmail error

--
Wulff D. Heiss, CTO
Office Vienna
RE: AutoReply-bug [ In reply to ]
You are like third or fourth person who complains about it.
The problem is in pipe.c and I resolved it that way, that
I did put replyto address in quotation marks, eg:

fprintf(mailpipe, "To: \"%s\"\n", replyto ? replyto : from);

I do not know, if this is correct to do so, but it did help.
AutoReply sender is "nobody" though.


best wishes,

Vlads


> -----Original Message-----
> From: dbmail-dev-admin@dbmail.org
> [mailto:dbmail-dev-admin@dbmail.org]On Behalf Of Wulff D. Heiss
> Sent: Thursday, August 07, 2003 12:11 AM
> To: dbmail-dev@dbmail.org
> Subject: [Dbmail-dev] AutoReply-bug
>
>
> AutReply is not sent out. i traced and debugged and so on:
>
> whyever (a command-line test didn't do that) dbmail seems to be confused
> about a "from" with " in it, possible? (FROM as the auto-reply
> TO, that is)
>
> i couldn't find anything in the source for that, but still...
> fprintf(mailpipe, "To: %s\n", replyto ? replyto : from);
> is apparently the line that does No Good..
>
> i tested with
> From: "aaaa" <aa@vb>
> To: "sadsd" <cc@dd>
>
> and the result was the same (error)
>
> Subject is, however, not affected...
>
> suggestions?
> i can't patch it :( - can only read basic C
>
> Auto-Reply gives me:
> send_reply(): reply could not be sent: sendmail error
> "Sendmail" is postfix,
> SENDMAIL=/usr/sbin/sendmail
> DBMAIL_FROM_ADDRESS=dbmail@office-vienna.at
> POSTMASTER=postmaster@office-vienna.at
> AUTO_NOTIFY=yes
> AUTO_REPLY=yes
>
> LOG lvl 5:
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: db_query(): executing [SELECT
> reply_body FROM auto_replies WHERE user_idnr = 1]
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: db_get_reply_body(): found
> body [i am away. Please no mail]
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: GetConfigValue(): searching
> value for config item [SENDMAIL]
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: GetConfigValue(): found value
> [/usr/sbin/sendmail]
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): found sendmail
> command to be [/usr/sbin/sendmail]
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): found FROM
> ["Wulff D. Heiss" <styx@office-vienna.at>]
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): found SUBJECT
> [tt]
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): header fields
> scanned; opening pipe to sendmail
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): sending data
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): pipe closed
> Aug 6 21:13:31 mailhub dbmail/smtp[14311]: send_reply(): reply could not
> be sent: sendmail error
>
> --
> Wulff D. Heiss, CTO
> Office Vienna
>
>
>
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
>