author | alwin <alwin> | 2003-12-09 01:30:26 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-09 01:30:26 (UTC) |
commit | b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a (patch) (side-by-side diff) | |
tree | 425529f528eb7718e371523c079b8763b9ec6bb8 /noncore/net/mail/libmailwrapper/imapwrapper.h | |
parent | 6142ad15ac50090b95bb5d80116c1750ffc515de (diff) | |
download | opie-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/libmailwrapper/imapwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.h b/noncore/net/mail/libmailwrapper/imapwrapper.h index 65c36e0..b02d26d 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.h +++ b/noncore/net/mail/libmailwrapper/imapwrapper.h @@ -2,7 +2,9 @@ #define __IMAPWRAPPER #include "mailwrapper.h" -#include <libetpan/mailimap.h> + +struct mailimap; +struct mailimap_body_type_1part; class IMAPwrapper : public QObject { @@ -10,16 +12,22 @@ class IMAPwrapper : public QObject 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 ); 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); private: IMAPaccount *account; - + mailimap *m_imap; }; #endif |