author | alwin <alwin> | 2004-03-08 21:43:14 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-08 21:43:14 (UTC) |
commit | 25434cbbcd2d2473c9cd3d486cec7a96a6a6323e (patch) (unidiff) | |
tree | 31cfa6ceaebe0e2e1e0094e4905d05509e778364 /noncore/net/mail/libmailwrapper/imapwrapper.cpp | |
parent | f3f2b2b3389d62af0f1a3aabac87f6c3cf147379 (diff) | |
download | opie-25434cbbcd2d2473c9cd3d486cec7a96a6a6323e.zip opie-25434cbbcd2d2473c9cd3d486cec7a96a6a6323e.tar.gz opie-25434cbbcd2d2473c9cd3d486cec7a96a6a6323e.tar.bz2 |
some required code restructuring in preparation of new features
Diffstat (limited to 'noncore/net/mail/libmailwrapper/imapwrapper.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp index 3375e69..e29a0a0 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp | |||
@@ -440,2 +440,3 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att) | |||
440 | } | 440 | } |
441 | /* reply to address, eg. email. */ | ||
441 | if (head->env_reply_to!=NULL) { | 442 | if (head->env_reply_to!=NULL) { |
@@ -446,3 +447,17 @@ RecMail*IMAPwrapper::parse_list_result(mailimap_msg_att* m_att) | |||
446 | } | 447 | } |
448 | if (head->env_in_reply_to!=NULL) { | ||
449 | QString h(head->env_in_reply_to); | ||
450 | while (h.length()>0 && h[0]=='<') { | ||
451 | h.remove(0,1); | ||
452 | } | ||
453 | while (h.length()>0 && h[h.length()-1]=='>') { | ||
454 | h.remove(h.length()-1,1); | ||
455 | } | ||
456 | if (h.length()>0) { | ||
457 | m->setInreply(QStringList(h)); | ||
458 | } | ||
459 | } | ||
460 | if (head->env_message_id) { | ||
447 | m->setMsgid(QString(head->env_message_id)); | 461 | m->setMsgid(QString(head->env_message_id)); |
462 | } | ||
448 | } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_INTERNALDATE) { | 463 | } else if (item->att_data.att_static->att_type==MAILIMAP_MSG_ATT_INTERNALDATE) { |