Diffstat (limited to 'noncore/net/mail/libmailwrapper/genericwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/genericwrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/mail/libmailwrapper/genericwrapper.cpp b/noncore/net/mail/libmailwrapper/genericwrapper.cpp index 447cad0..c1b6e48 100644 --- a/noncore/net/mail/libmailwrapper/genericwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/genericwrapper.cpp | |||
@@ -182,27 +182,27 @@ RecBody Genericwrapper::parseMail( mailmessage * msg ) | |||
182 | RecBody body; | 182 | RecBody body; |
183 | memset(&fields, 0, sizeof(struct mailmime_single_fields)); | 183 | memset(&fields, 0, sizeof(struct mailmime_single_fields)); |
184 | err = mailmessage_get_bodystructure(msg,&mime); | 184 | err = mailmessage_get_bodystructure(msg,&mime); |
185 | traverseBody(body,msg,mime); | 185 | traverseBody(body,msg,mime); |
186 | return body; | 186 | return body; |
187 | } | 187 | } |
188 | 188 | ||
189 | RecMail *Genericwrapper::parseHeader( const char *header ) | 189 | RecMail *Genericwrapper::parseHeader( const char *header ) |
190 | { | 190 | { |
191 | int err = MAILIMF_NO_ERROR; | 191 | int err = MAILIMF_NO_ERROR; |
192 | size_t curTok = 0; | 192 | size_t curTok = 0; |
193 | RecMail *mail = new RecMail(); | 193 | RecMail *mail = new RecMail(); |
194 | mailimf_fields *fields; | 194 | mailimf_fields *fields = 0; |
195 | mailimf_references * refs; | 195 | mailimf_references * refs = 0; |
196 | mailimf_keywords*keys; | 196 | mailimf_keywords*keys = 0; |
197 | QString status; | 197 | QString status; |
198 | QString value; | 198 | QString value; |
199 | QBitArray mFlags(7); | 199 | QBitArray mFlags(7); |
200 | 200 | ||
201 | err = mailimf_fields_parse( (char *) header, strlen( header ), &curTok, &fields ); | 201 | err = mailimf_fields_parse( (char *) header, strlen( header ), &curTok, &fields ); |
202 | for ( clistiter *current = clist_begin( fields->fld_list ); current != NULL; current = current->next ) { | 202 | for ( clistiter *current = clist_begin( fields->fld_list ); current != NULL; current = current->next ) { |
203 | mailimf_field *field = (mailimf_field *) current->data; | 203 | mailimf_field *field = (mailimf_field *) current->data; |
204 | switch ( field->fld_type ) { | 204 | switch ( field->fld_type ) { |
205 | case MAILIMF_FIELD_FROM: | 205 | case MAILIMF_FIELD_FROM: |
206 | mail->setFrom( parseMailboxList( field->fld_data.fld_from->frm_mb_list ) ); | 206 | mail->setFrom( parseMailboxList( field->fld_data.fld_from->frm_mb_list ) ); |
207 | break; | 207 | break; |
208 | case MAILIMF_FIELD_TO: | 208 | case MAILIMF_FIELD_TO: |