The following issue has been RESOLVED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=353 
====================================================================== 
Reported By:                sayler
Assigned To:                paul
====================================================================== 
Project:                    DBMail
Issue ID:                   353
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           SVN Trunk
====================================================================== 
Date Submitted:             25-May-06 23:16 CEST
Last Modified:              26-May-06 09:49 CEST
====================================================================== 
Summary:                    imapd dumps core when retreiving multipart messages
with an RFC822 subpart
Description: 
I can get dmail to SEGV when retreiving a fancy message from my INBOX.  
====================================================================== 

---------------------------------------------------------------------- 
 sayler - 25-May-06 23:18  
---------------------------------------------------------------------- 
The code looks like:

                if (g_mime_content_type_is_type(type,"message","rfc822"))
{
                       
object=GMIME_OBJECT(GMIME_MESSAGE(object)->mime_part);
                        assert(object);
                        continue;
                }

which as far as I can tell should be
 
                if (g_mime_content_type_is_type(type,"message","rfc822"))
{
                       
object=GMIME_OBJECT(GMIME_MESSAGE_PART(object)->message->mime_part);
                        assert(object);
                        continue;
                }

because this is a message part..  

This fixes the crash for me.  I will test. 

---------------------------------------------------------------------- 
 sayler - 25-May-06 23:49  
---------------------------------------------------------------------- 
Actually, that was borken.  If the part is an RFC822 message, I want to
grab the messagepart's message.

Attaching a patch. 

---------------------------------------------------------------------- 
 paul - 26-May-06 09:49  
---------------------------------------------------------------------- 
patch applied 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
25-May-06 23:16 sayler         New Issue                                    
25-May-06 23:18 sayler         Note Added: 0001197                          
25-May-06 23:49 sayler         Note Added: 0001198                          
25-May-06 23:50 sayler         File Added: patch-2134-rfc822parts               
    
26-May-06 09:49 paul           Note Added: 0001199                          
26-May-06 09:49 paul           Assigned To               => paul            
26-May-06 09:49 paul           Status                   new => resolved     
26-May-06 09:49 paul           Resolution               open => fixed       
26-May-06 09:49 paul           Fixed in Version          => SVN Trunk       
======================================================================

Reply via email to