summaryrefslogtreecommitdiff
path: root/noncore/net/mail/imapwrapper.h
authoralwin <alwin>2003-12-09 01:30:26 (UTC)
committer alwin <alwin>2003-12-09 01:30:26 (UTC)
commitb3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a (patch) (side-by-side diff)
tree425529f528eb7718e371523c079b8763b9ec6bb8 /noncore/net/mail/imapwrapper.h
parent6142ad15ac50090b95bb5d80116c1750ffc515de (diff)
downloadopie-b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a.zip
opie-b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a.tar.gz
opie-b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a.tar.bz2
- interface change for imapwrapper
- beginning of parsing the body-structure of mails not just simple return the whole body (this moment commented out 'cause it's only working for text/plain type mails)
Diffstat (limited to 'noncore/net/mail/imapwrapper.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/imapwrapper.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/noncore/net/mail/imapwrapper.h b/noncore/net/mail/imapwrapper.h
index 65c36e0..b02d26d 100644
--- a/noncore/net/mail/imapwrapper.h
+++ b/noncore/net/mail/imapwrapper.h
@@ -4,3 +4,5 @@
#include "mailwrapper.h"
-#include <libetpan/mailimap.h>
+
+struct mailimap;
+struct mailimap_body_type_1part;
@@ -12,5 +14,7 @@ public:
IMAPwrapper( IMAPaccount *a );
+ virtual ~IMAPwrapper();
QList<IMAPFolder>* listFolders();
void listMessages(const QString & mailbox,Maillist&target );
- QString fetchBody(const QString & mailbox,const RecMail&mail);
+ QString fetchBody(const RecMail&mail);
+ static void imap_progress( size_t current, size_t maximum );
@@ -18,2 +22,6 @@ protected:
RecMail*parse_list_result(mailimap_msg_att*);
+ void login();
+ void logout();
+ QString searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription);
+ QString getPlainBody(const RecMail&mail);
@@ -21,3 +29,3 @@ private:
IMAPaccount *account;
-
+ mailimap *m_imap;
};