Hi Robert,
Can you post the source code/headers of the message? It looks like it’s got something to do with the Subject line UTF-8 encoding that I added recently.
Hi there,
I’m having the same problem as Robert. Any way to fix that? Also I’m using mandrill to send mails.
How do I view the source code/headers of the message? let me know so I can post it here.
Thanks in advance.
Ah! I totally forgot to post the headers! Here is the offending part (let me know if you want the full header):
From: XXXXXXXXX <help@xxobscured.xx.com>
Subject: =?UTF-8?Q?New=20Forum=20Reply=20To?==?UTF-8?Q?:=20Forw?=?? =?UTF-8?Q?ard=20bending=20after=20cam?==?UTF-8?Q?el?=
Received: from [xx.xxx.xx.xxx] by mandrillapp.com id 8e200011ed874c578b0d7310b19dad04; Mon, 26 Oct 2015 22:55:32 +0000
To: <help@xxobscured.xx.com>
@febs: You can “show original” in Gmail, or in Outlook 2010, I open the email and click “Tags” which also opens the Internet Headers field.
Hi @robert, Thanks for the tips. Appreciate it.
Like robert, here is the subject part
From: <xxx@xxxx.com>
Subject: =?UTF-8?Q?[Singularity=20Computers]=20New=20topic:=20390=20or=209?=?? =?UTF-8?Q?70=3F?=
Return-Path: <bounce-md_30578520.5635bef4.v1-5b020782d4e54754a6cb1dd984f843d4@mandrillapp.com>
Received: from [x.x.x.x] by mandrillapp.com id 5b020782d4e54754a6cb1dd984f843d4; Sun, 01 Nov 2015 07:27:48 +0000
Let me know if you need the full header and hopefully this can be fix.
Thank you.
Thanks Robert and febs. It looks like it’s getting double-encoded by Mandrill. Can you do me a favor and comment out lines 465 and 466, trigger another notification and paste the headers again?
The lines are:
$filtered_subject = iconv_mime_encode( 'Subject', $filtered_subject, $preferences );
$filtered_subject = substr( $filtered_subject, strlen( 'Subject:' ) );
Thanks!
I’m currently testing this plugin in a similar environment and can confirm that commenting out the above lines removes the encoding characters I was seeing in the subject line after passing through Mandrill.
Thanks eheis, I’ll make sure to drop encoding if wpMandrill is present.
I’ve released v1.9.3 with an admin option that allows you to disable encoding of the Subject line if you have other plugins that already encode it. You can find it under Admin -> Forums -> E-mail Notifications -> Encode Topic and Reply Subject line.
Cheers,
Vinny
Thanks, Vinny!
I’ve installed the update and will confirm if I see anything odd still happening.
I appreciate your commitment to great service, thank you.
Hi Robert, it’s my pleasure. If you’re happy with the fix, do take a minute to rate the plugin and spread the love :).
Cheers,
Vinny
Yep, can confirm already the fix is perfect, thanks!
I’ll rate & review, good point. I should have done that before π
Hey Vinny – I’m not sure if this is due to your changes, but I have new odd characters appearing (looks like when an apostrophe was used):
Subject: New Forum Topic: Hands Won't Go Under Heels
Received: from [xx.xxx.xx.xx] by mandrillapp.com id dc0034a50da5469788bd7f6236f9373f; Wed, 25 Nov 2015 19:06:30 +0000
Any ideas or troubleshooting I can do?
Thanks!
Under Admin->Settings->Forum->Email Notification:
- Check the encode Subject line option,
- Select only Admins in the topic role
- Go to that topic’s update page
- Set Send Notification
- Click Update.
This will trigger a notification only to Admins. Update the ticket with the email headers please.
That was quick! Thanks π
Here you go:
Subject: =?UTF-8?Q?New=20Forum=20Topic:=20H?==?UTF-8?Q?ands=20W?=?? =?UTF-8?Q?on=C3=A2=C2=80=C2=99t=20Go=20Under=20He?==?UTF-8?Q?els?=
Received: from [xx.xxx.xx.xx] by mandrillapp.com id 10908fb7a8d74a59944d183cf6c05767; Wed, 25 Nov 2015 23:30:58 +0000