salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.53k stars 2.09k forks source link

Campaign Bounceback not working #1578

Closed gflauder closed 8 years ago

gflauder commented 8 years ago

Hi there, Installed 7.6.4, reset all the cache permissions so it loads and worked through a campaign. I created a separate email for the bounce backs and put it to the test. It fails with:

Wed Jun 8 16:48:02 2016 [20289][1][DEBUG] -------------------------------> Email save() done Wed Jun 8 16:48:02 2016 [20289][1][INFO] Query:SELECT description FROM notes WHERE file_mime_type = 'messsage/rfc822' AND parent_type='Emails' AND parent_id = '19461cdf-4aa7-8359-0d8b-57584cd14815' AND deleted=0 Wed Jun 8 16:48:02 2016 [20289][1][INFO] Query Execution Time:0.00046896934509277 Wed Jun 8 16:48:02 2016 [20289][1][INFO] Warning: skipping bounced email because it does not have the remove me link. Wed Jun 8 16:48:02 2016 [20289][1][DEBUG] ***** InboundEmail finished import of 1 email: Undelivered Mail Returned to Sender

When I check the message source directly, I see: `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

[Test]: $acase_name [CASE:$acase_case_number]

Add your headline here..


Unsubscribe


****

`

If I'm not mistaken, the program seems to load the message into the Notes table and query it there for the link, however, this is what I see in the Notes=>Description field: <div class="3D"mozai="><p>=C2=A0</p><h1>Add your headline here..<a href="3D"> </a></h1><p><br /></p><h1><a href="3D">Unsubscribe </a><br /></h1><div class="3D"mozaik-clear"">=C2=A0</div></div><= br /><img alt="3D''" src="3D'http%3A//sales.mydoma=" />

So it looks like something is parsing it into only a portion of what the message should be. When the bounced email function looks for the link, of course, it see's nothing and no bounce occurs.

Using Dovecot as my IMAP server. Tried Courier as well, same issue.

Any suggestions before I start looking into the code directly?

Gary

shogunpol commented 8 years ago

The Issue was tested on SuiteCRM(v7.7.1), and bug do not appear, so maybe the upgrade to newest version could solve your issue.

ijdavie commented 8 years ago

We will close this issue due to no activity, if this issue still persists and more information is given we can close this issue.

lazka commented 5 years ago

I've created a fix for this: #6505