author | alwin <alwin> | 2003-12-19 02:35:50 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-19 02:35:50 (UTC) |
commit | ffc12a369b26b1c652213a48eb635ce24eab5458 (patch) (side-by-side diff) | |
tree | a9751d94a6f6a128edd6270977ac872a97bebe2f /noncore/net/mail/pop3wrapper.h | |
parent | 5b88f5d05b2f3f5d106b58b07bc7018f757cfc03 (diff) | |
download | opie-ffc12a369b26b1c652213a48eb635ce24eab5458.zip opie-ffc12a369b26b1c652213a48eb635ce24eab5458.tar.gz opie-ffc12a369b26b1c652213a48eb635ce24eab5458.tar.bz2 |
fetching body-structure/content mostly finished
hard-limit: no mail larger than 5MB will fetched
TODO: messages has to be cached in memory. otherwise on every
part fetch we must fetch the whole message again.
Idea: setup a content cache for imap, too.
Diffstat (limited to 'noncore/net/mail/pop3wrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/pop3wrapper.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/net/mail/pop3wrapper.h b/noncore/net/mail/pop3wrapper.h index a05021c..4171a76 100644 --- a/noncore/net/mail/pop3wrapper.h +++ b/noncore/net/mail/pop3wrapper.h @@ -5,12 +5,15 @@ #include "abstractmail.h" class RecMail; class RecBody; class encodedString; struct mailpop3; +struct mailmessage; +struct mailmime; +struct mailmime_mechanism; class POP3wrapper : public AbstractMail { Q_OBJECT public: @@ -37,12 +40,17 @@ protected: RecBody parseMail( char *message ); QString parseMailboxList( mailimf_mailbox_list *list ); QString parseMailbox( mailimf_mailbox *box ); QString parseGroup( mailimf_group *group ); QString parseAddressList( mailimf_address_list *list ); QString parseDateTime( mailimf_date_time *date ); + + static void traverseBody(RecBody&target,mailmessage*message,mailmime*mime,unsigned int current_rek=0); + static void fillSingleBody(RecPart&target,mailmessage*message,mailmime*mime); + static QString POP3wrapper::getencoding(mailmime_mechanism*aEnc); + POP3account *account; mailpop3 *m_pop3; QString msgTempName; unsigned int last_msg_id; }; |