Messages from MailChimp are displaying with blank From and Subject despite these actually having values when viewed with other clients like Thunderbird.
SM 1.4.23
Ubuntu 16.04
Apache 2.4.18
PHP 7.0.4
The Mailchimp messages have quite long headers with lots of fields starting X-. So I suspect issue is header parsing problem.
Hi Paul
If it is useful here is the full headers as reported by Squirrelmail
from one of the messages showing the problem...
Return-Path:
<bounce-mc.us12_49239173.370937-barry=bjcox.com@mail213.atl171.mcdlv.net <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=bjcox.com%40mail213.atl171.mcdlv.net">https://webmail.bjcox.com/src/compose.php?send_to=bjcox.com%40mail213.atl171.mcdlv.net>
X-Original-To: barry@bjcox.com
https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com
Delivered-To: barry@bjcox.com
https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com
Received: from mail213.atl171.mcdlv.net (mail213.atl171.mcdlv.net
[198.2.138.213])
by dreadnought.bjcox.com (Postfix) with ESMTP id 68ED06E0E70
for <barry@bjcox.com <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com">https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com>;
Tue, 5 Jul 2016 11:46:36 +0930 (ACST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=k1;
d=mail213.atl171.mcdlv.net;
h=Subject:From:Reply-To:To:Date:Message-ID:List-ID:List-Unsubscribe:Sender:Content-Type:MIME-Version;
i=news=3Dskeptics.com.au@mail213.atl171.mcdlv.net
https://webmail.bjcox.com/src/compose.php?send_to=3Dskeptics.com.au%40mail213.atl171.mcdlv.net;
bh=opqm9q9VdYL+E3tIWJlc2XPYLc8=;
b=2MejmKgOrQyPrZIkrx7ThcMwpbiVYC+oVN6D408Wy0lArXffylMG/PhG1KgK7EwMNiGUjmMf6pbs
FqIsoBlPXK4wKjLGN9kdxkxrX6l5ddtYAx5O93kZcam8Jzm03Orn0apE9a23Fv/E9lGosgEa/Wld
an5meqsINmlVt8A3t7s=
Received: from (127.0.0.1) by mail213.atl171.mcdlv.net id hfcc8a1sb54b
for <barry@bjcox.com <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com">https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com>;
Tue, 5 Jul 2016 02:16:34 +0000 (envelope-from
<bounce-mc.us12_49239173.370937-barry=bjcox.com@mail213.atl171.mcdlv.net <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=bjcox.com%40mail213.atl171.mcdlv.net">https://webmail.bjcox.com/src/compose.php?send_to=bjcox.com%40mail213.atl171.mcdlv.net>)
Subject: =?utf-8?Q?Australian=20Skeptics=20Inc=20=2D=20Newsletter=20#2?=
From: =?utf-8?Q?Australian=20Skeptics?= <news@skeptics.com.au <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=news%40skeptics.com.au">https://webmail.bjcox.com/src/compose.php?send_to=news%40skeptics.com.au>
Reply-To: =?utf-8?Q?Australian=20Skeptics?= <news@skeptics.com.au <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=news%40skeptics.com.au">https://webmail.bjcox.com/src/compose.php?send_to=news%40skeptics.com.au>
To: =?utf-8?Q?Barry=20Cox?= <barry@bjcox.com <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com">https://webmail.bjcox.com/src/compose.php?send_to=barry%40bjcox.com>
Date: Tue, 5 Jul 2016 02:16:34 +0000
Message-ID:
c60333445d11a55bf99da67784f50c968d2.20160705021623@mail213.atl171.mcdlv.net
X-Mailer: MailChimp Mailer - CID6e0075b4b34f50c968d2
X-Campaign: mailchimpc60333445d11a55bf99da6778.6e0075b4b3
X-campaignid: mailchimpc60333445d11a55bf99da6778.6e0075b4b3
X-Report-Abuse: Please report abuse for this campaign here:
http://www.mailchimp.com/abuse/abuse.phtml?u=c60333445d11a55bf99da6778&id=6e0075b4b3&e=4f50c968d2
X-MC-User: c60333445d11a55bf99da6778
X-Feedback-ID: 49239173:49239173.370937:us12:mc
List-ID: c60333445d11a55bf99da6778mc list
<c60333445d11a55bf99da6778.90621.list-id.mcsv.net>
X-Accounttype: ff
List-Unsubscribe:
<mailto:unsubscribe-mc.us12_c60333445d11a55bf99da6778.6e0075b4b3-4f50c968d2@mailin1.us2.mcsv.net <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=unsubscribe-mc.us12_c60333445d11a55bf99da6778.6e0075b4b3-4f50c968d2%40mailin1.us2.mcsv.net">https://webmail.bjcox.com/src/compose.php?send_to=unsubscribe-mc.us12_c60333445d11a55bf99da6778.6e0075b4b3-4f50c968d2%40mailin1.us2.mcsv.net?subject=unsubscribe>,
http://skeptics.us12.list-manage.com/unsubscribe?u=c60333445d11a55bf99da6778&id=e44bdbdaf1&e=4f50c968d2&c=6e0075b4b3
Sender: "Australian Skeptics"
<news=skeptics.com.au@mail213.atl171.mcdlv.net <a="" href="https://webmail.bjcox.com/src/compose.php?send_to=skeptics.com.au%40mail213.atl171.mcdlv.net">https://webmail.bjcox.com/src/compose.php?send_to=skeptics.com.au%40mail213.atl171.mcdlv.net>
x-mcda: FALSE
Content-Type: multipart/alternative;
boundary="_----------=_MCPart_1780605474"
MIME-Version: 1.0
regards, Barry
On 15/07/2016 7:30 AM, Paul Lesniewski wrote:
--
Dr Barry Cox
Senior Lecturer in Mathematics
School of Mathematical Sciences
The University of Adelaide
South Australia 5005
Australia
Phone: +618 8313 5079
E-mail: barry.cox@adelaide.edu.au
Web: http://www.maths.adelaide.edu.au/barry.cox/
CRICOS Provider Number 00123M
IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide.
Think green: read on the screen.
Related
Bugs:
#2833Hi Paul,
Thanks for the reply however the patch didn't apply cleanly...
root@dreadnought:/usr/share/squirrelmail# patch -p0
</home/barry/quoted_printable_fix-1.4.x-version_3.diff
patching file functions/i18n.php
patching file functions/strings.php
Hunk #1 succeeded at 1485 with fuzz 2 (offset -4 lines).
Hunk #2 succeeded at 1502 (offset -4 lines).
Hunk #3 FAILED at 1539.
1 out of 3 hunks FAILED -- saving rejects to file functions/strings.php.rej
In any case I applied hunk #3 manually and the issue with blank From and
Subject fields persists. So some other problem?
Please let me know if you need more information.
regards, Barry
On 15/07/2016 7:30 AM, Paul Lesniewski wrote:
--
Dr Barry Cox
Senior Lecturer in Mathematics
School of Mathematical Sciences
The University of Adelaide
South Australia 5005
Australia
Phone: +618 8313 5079
E-mail: barry.cox@adelaide.edu.au
Web: http://www.maths.adelaide.edu.au/barry.cox/
CRICOS Provider Number 00123M
IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide.
Think green: read on the screen.
Related
Bugs:
#2833I just tested the patch against a fresh copy of 1.4.23 from SVN and it applied cleanly, so your code needs to be updated or you have some other customizations.
Getting the latest code may also help clear things up.
I can try your Subject/From headers in a test later, but when you post message source, it's best to grab it directly from your mail spool or at least using the "Message Details" popup in SquirrelMail (not the link to view all headers or anything else). Also, attaching a zip file or tarball best helps to preserve the original source unmolested.
Update: At least with cut and pasting headers from above, they work fine in correctly-patched and updated 1.4.23 for me. I suggest testing on a fresh install with the patch and if problems persist, include raw message source as well as information about your language settings (both user's language display settings as well as $squirrelmail_default_language, $default_charset, $lossy_encoding, etc.
I believe this is a duplicate of this bug:
https://sourceforge.net/p/squirrelmail/bugs/2806
Please scroll to the last page of comments and find version 3 of the patch for your version of SquirrelMail.
Actually problem was with the call to preg_replace with \e modified in mime.php. I changed this to preg_replace_callback and problem solved.