Closed (fixed)
Project:
Watcher
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2009 at 19:41 UTC
Updated:
12 Aug 2009 at 23:20 UTC
Hi there,
Great module, thanks.
I've tested it a bit and got this problem.
The email received for either a node update or new comment is showing
=?UTF-?B?RklORVNUUkEgT0JFUlRBIEwnRVNUQUNJw5MgPGNvcnJldUBmaW5lc3RyYW9iZXJ0YWxlc3RhY2lvLmNvbT4=?=@web32.hostica.com
as the From and Reply to address.
I think @web32.hostica.com is my host mail server
I assume the sites default email address should be used (from admin/settings/site-information)
Any ideas ? Did a set something wrong?
Comments
Comment #1
solipsist commentedIf you request a new password by email, will the same thing happen?
Comment #2
manoloka commentedHi there,
Nop, if I request a new password the correct email address is showing in the From/Reply to fields.
Comment #3
solipsist commentedCan you forward both emails to me in their entirety? Contact me through my contact form and we'll take it from there. Thanks.
Comment #4
solipsist commentedYour email client doesn't correctly interpret the From header as UTF8, and just spills it all out. The issue is with your email application, nothing I can fix. Sorry.
Comment #5
manoloka commentedNo problem, thanks for your help.
The solution found is good enough.
Thanks again
Comment #6
felipe commentedIn my setup, this behavior only happens when watcher is used with phpmailer / mimemail module. With smtp authentication module that error does not appear.
But for any other module, used with phpmailer / mimemail, the from header is correct...
So the issue seems to happen only with watcher. It doesn't matter what email client I use.
Comment #7
solipsist commentedDrupal passes the right encoding header (utf8). Mimemail or PHPMail may remove or alter it, causing the receiving server or client not to recognize the encoding.
Comment #8
felipe commentedNope... The modules contact, simplenews and print work normally when sending mail through mimemail and phpmailer modules.
Only watcher messages come with the from field like "=?UTF-?B?RklORVNUUkEgT0JFUlRBIEwnRVNUQUNJw5..."
It doesn't matter the email client I'm using.
In watcher.module, changing
$from = sprintf('%s <%s>', _watcher_filter_rfc2047_especials($site_name), $site_mail);
to
$from = $site_mail;
resolves the problem, although it does not show the name of the sender, just the site email address in the message. Just to mention, this issue was somehow treated in [263139] and [319048].
Changing that line works fine in my setup though.
Thanks
Comment #9
solipsist commenteddofelipe: I had a look at Simplenews and I replicated the way it works. I think the fact that the from header sender name had no quotes was the cause. I've committed a fix. You can see it here:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/watcher/wat...
Download the latest version of Watcher and let let me know if it fixes the issue. You can either grab the development snapshot in a while (it is rebuilt every 24 hours or so) or download the files from CVS (make sure you also get watcher.db.inc, not just watcher.module):
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/watcher/wat...
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/watcher/wat...
Comment #10
solipsist commentedComment #11
solipsist commentedComment #12
solipsist commentedComment #13
solipsist commentedI will assume this fixed as of 6.x-1.3. Reopen if there's evidence to the contrary.
Comment #14
solipsist commentedComment #15
felipe commentedIt's working correctly now!! Thank you!