All mails sent by mail.module are blocked by clamav beacuse headers contain bad characters. If you open with editors such vim an email generated by mail.module and put in quarantine by clamav you'll notice some ^M chars at end of headers lines. I think they are caused from the \r\n characters in $heders variable.

I tried to remove all \r chars before \n ones in $headers and all seems to work well. Clamav no longer blocks emails generated by mail.module

Comments

killes@www.drop.org’s picture

Project: Drupal core » Mail
Component: other » Code
nedjo’s picture

  1. I followed the core mailing code, so likely this is an issue also in the user.module.
  2. I don't know enough to know if the suggested change would cause problems elsewhere (e.g., in some other mail filters/clients). Thoughts, anyone?
  3. Could you generate a patch (or just post your modifications)? Thanks
nedjo’s picture

I take it all back! I hadn't followed the user. module but now have and this should fix the problem. If not, please reset this issue to 'active'.

Anonymous’s picture