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

solipsist - February 12, 2009 - 20:06
Status:active» postponed (maintainer needs more info)

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

#2

manoloka - February 13, 2009 - 12:48

Hi there,

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

#3

solipsist - February 13, 2009 - 13:07

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

solipsist - February 14, 2009 - 14:30
Status:postponed (maintainer needs more info)» closed

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

manoloka - February 15, 2009 - 14:47

No problem, thanks for your help.

The solution found is good enough.

Thanks again

#6

felipe - June 30, 2009 - 21:38

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

solipsist - July 1, 2009 - 14:56

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

felipe - July 11, 2009 - 14:23

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

solipsist - July 12, 2009 - 10:25

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

solipsist - July 12, 2009 - 10:25
Status:closed» needs review

#11

solipsist - July 12, 2009 - 10:25
Version:6.x-1.0-beta3» 6.x-1.x-dev

#12

solipsist - July 12, 2009 - 10:26
Component:Miscellaneous» Code

#13

solipsist - July 28, 2009 - 19:53

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

#14

solipsist - July 28, 2009 - 19:54
Status:needs review» fixed

#15

felipe - July 29, 2009 - 23:19

It's working correctly now!! Thank you!

#16

System Message - August 12, 2009 - 23:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.