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

solipsist’s picture

Status: Active » Postponed (maintainer needs more info)

If you request a new password by email, will the same thing happen?

manoloka’s picture

Hi there,

Nop, if I request a new password the correct email address is showing in the From/Reply to fields.

solipsist’s picture

Can you forward both emails to me in their entirety? Contact me through my contact form and we'll take it from there. Thanks.

solipsist’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

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.

manoloka’s picture

No problem, thanks for your help.

The solution found is good enough.

Thanks again

felipe’s picture

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.

solipsist’s picture

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.

felipe’s picture

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

solipsist’s picture

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...

solipsist’s picture

Status: Closed (fixed) » Needs review
solipsist’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev
solipsist’s picture

Component: Miscellaneous » Code
solipsist’s picture

I will assume this fixed as of 6.x-1.3. Reopen if there's evidence to the contrary.

solipsist’s picture

Status: Needs review » Fixed
felipe’s picture

It's working correctly now!! Thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.