From adb369c28cac7600b3912d6a3fdb645f1b1d571d Mon Sep 17 00:00:00 2001 From: alwin Date: Sat, 20 Dec 2003 13:36:34 +0000 Subject: fetching attachments from a pop3mail works. this moment the whole message will be hold in memory until I have an idea for a clean(!) filebased cache which will not get to large. Thats why the biggest pop3 mail we can fetch is 5MB, this should be enough. --- (limited to 'noncore/net/mail/pop3wrapper.h') diff --git a/noncore/net/mail/pop3wrapper.h b/noncore/net/mail/pop3wrapper.h index b17928e..a31a145 100644 --- a/noncore/net/mail/pop3wrapper.h +++ b/noncore/net/mail/pop3wrapper.h @@ -3,6 +3,8 @@ #include "mailwrapper.h" #include "abstractmail.h" +#include +#include class RecMail; class RecBody; @@ -44,7 +46,9 @@ protected: 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); + void cleanUpCache(); + + void traverseBody(RecBody&target,mailmessage*message,mailmime*mime,unsigned int current_rek=0); static void fillSingleBody(RecPart&target,mailmessage*message,mailmime*mime); static void fillParameters(RecPart&target,clist*parameters); static QString POP3wrapper::getencoding(mailmime_mechanism*aEnc); @@ -53,6 +57,7 @@ protected: mailpop3 *m_pop3; QString msgTempName; unsigned int last_msg_id; + QMap bodyCache; }; #endif -- cgit v0.9.0.2