SiT! Bugs - SiT!
View Issue Details
0001349SiT!inbound emailpublic2010-06-18 16:032010-07-21 21:29
nicdev 
ivan 
normalminoralways
closedfixed 
3.60 LTS 
3.62 LTS3.62 LTS 
0001349: Certain messages are imported with empty message bodies
Certain mail messages are sent as Single part mime messages, but when the single part is html, the message body is in fact empty, and the $message variable is not filled.

this is quite rare, but happens.
In inboundemail.php changes are required to treat such messages as per chat with Ivan. Sample of code changes:

switch ($results['Type'])
        {
            case 'html':

            if (!empty($results['Alternative'][0]['Data']))
            {
                $message = $results['Alternative'][0]['Data'];
            }
            else
            {
                $message = strip_tags(html_entity_decode($results['Data'],ENT_QUOTES));
            }
            break;

            case 'text':
                $message = $results['Data'];
                break;

            default:
                break;
        }
No tags attached.
Issue History
2010-06-18 16:03nicdevNew Issue
2010-06-19 16:24ivanAssigned To => ivan
2010-06-19 16:24ivanStatusnew => assigned
2010-06-19 16:25ivanTarget Version => 3.62 LTS
2010-06-19 17:07ivanNote Added: 0003262
2010-06-19 17:07ivanStatusassigned => resolved
2010-06-19 17:07ivanFixed in Version => Current SVN
2010-06-19 17:07ivanResolutionopen => fixed
2010-07-18 15:05ivanNote Added: 0003331
2010-07-18 15:05ivanStatusresolved => closed
2010-07-21 21:29ivanFixed in VersionCurrent SVN => 3.62 LTS

Notes
(0003262)
ivan   
2010-06-19 17:07   
Fixed in svn 3.x branch: r6513
Fixed in git 784830c

thanks Nico
(0003331)
ivan   
2010-07-18 15:05   
Released in v3.62