I think this results in those incorrect "451 lmtpd: ..." messages being dumped out into the http output stream when it fails...
We should refactor open_sendmail to provide a more generic error reporting interface, and let lmtpd/httpd each decide their own way how to propagate those reports outward
This function in
imap/http_caldav_sched.c
:calls this one in
imap/smtpclient.c
:which has error handling like this:
I think this results in those incorrect "451 lmtpd: ..." messages being dumped out into the http output stream when it fails...
We should refactor open_sendmail to provide a more generic error reporting interface, and let lmtpd/httpd each decide their own way how to propagate those reports outward