Skip to content
Snippets Groups Projects
Commit ef1d7dfb authored by Jared Hancock's avatar Jared Hancock
Browse files

tnef: Fix clobbered message when an IMAP message has a TNEF attachment

This fixes an issue where, when the mailfetch subsystem fetches more than
one email and one of them has a TNEF attachment; each message body after the
TNEF message will use the TNEF message body.

This patch fixes the issue by clearing the TNEF body in each cycle through
the message fetching and parsing loop.
parent 772ecd63
Branches
Tags
No related merge requests found
...@@ -586,6 +586,7 @@ class MailFetcher { ...@@ -586,6 +586,7 @@ class MailFetcher {
function createTicket($mid) { function createTicket($mid) {
global $ost; global $ost;
unset($this->tnef);
if(!($mailinfo = $this->getHeaderInfo($mid))) if(!($mailinfo = $this->getHeaderInfo($mid)))
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment