From / Reply to - issue
manoloka - February 12, 2009 - 19:41
| Project: | Watcher |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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?

#1
If you request a new password by email, will the same thing happen?
#2
Hi there,
Nop, if I request a new password the correct email address is showing in the From/Reply to fields.
#3
Can you forward both emails to me in their entirety? Contact me through my contact form and we'll take it from there. Thanks.
#4
Your 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.
#5
No problem, thanks for your help.
The solution found is good enough.
Thanks again
#6
In 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.
#7
Drupal 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.
#8
Nope... 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
#9
dofelipe: 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...
#10
#11
#12
#13
I will assume this fixed as of 6.x-1.3. Reopen if there's evidence to the contrary.
#14
#15
It's working correctly now!! Thank you!
#16
Automatically closed -- issue fixed for 2 weeks with no activity.