-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moblog gets Subject wrong with MS-Exchange-AntiSpam #3721
Labels
Bug: Accepted
Bug has been confirmed, is reproducible, and ready to work on.
Comments
@robinsowell I think this is the regex, but depending on the order of headers it might actually return wrong result still
I think what we need is to check for Unfortunately I have no way to test this, so this really falls into your plate ) |
@robinsowell also, do you think this could be the same issue? #1347 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Meh - so Moblog continues to chug along like the good little add-on it is, BUT it can get the subject wrong in some cases. In this instance, all the subjects come back looking like
Which is amazingly enough, not the actual title.
Here we figure out the subject via some regex:
if (preg_match("/Subject:(.*)/", trim($email_data), $subject)) {
Problem is, some ms exchange spam tool is playing amongst the headers, so now we have 3 matches for that Subject: search:
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6Fi1Ds7JtqnV5/SDDOJApb0g5STf/sdVrqUVvCBYa78=; b=Ffc4C/OzApthIhoz4bVs7WhaTlC5ncU1D1KD/OntPWlDHDmwKMRiXD/E9r1e/NWUPj0dR6XdSi5xSMxYDCBNvOv0++x4+cnliIkTZGSagnHxSi2GXhJ2KO7CqbTV2SopHWeVJ4KmICI5dABDEJpn6x8KpEyvCG0jm0D55k++UJPjfs/dDHpBLppwY3NkrX+pjq9nJdQdv+YklqXgK7QR4jiI1g/MsrxLzOjzdXPRx6vwdScc3rOiCXY6mPCpbJTOtr3glStqX2TZbrx7D8IKMlm5CuZilI8rz2E5OA5x1Hnf09/nDtCRmzDltHvFB8rU74TQhqRqknCE8Wl4yl1stQ==
From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Fi1Ds7JtqnV5/SDDOJApb0g5STf/sdVrqUVvCBYa78=; b=N6NdVyl4sx1WCBGfTw5ovgJdUsG44sHKJ2pLhTGzSi28a9b/DXxdpYSdgj3tuB11Nhfi/WpIa4ov2T54vZymP5nTvVTbRMeVu32Bj9QvQl76mUIccURWskDpnpVmrNz7V3PlG2b72VmTTJm7K2+R92/mdDeaBxMGnk647Gbs1XspyT7OZ9PwsJ1OhfB24DUQ9SMCUki3MAPdMIVBjymo2JxE
Subject: Test moblog
I think we just need a tweak to the regex, but I stink at regex. Nick got it working by doing
if (preg_match("/Thread-Topic:(.*)/", trim($email_data), $subject)) {
But I'm not dead sure what's the best option. Could use a tweak, though. I suspect we'll see more of these over time.
The text was updated successfully, but these errors were encountered: