author | alwin <alwin> | 2003-12-09 01:30:26 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-09 01:30:26 (UTC) |
commit | b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a (patch) (unidiff) | |
tree | 425529f528eb7718e371523c079b8763b9ec6bb8 /noncore/net/mail/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/imapwrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/imapwrapper.h | 14 |
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 @@ | |||
4 | #include "mailwrapper.h" | 4 | #include "mailwrapper.h" |
5 | #include <libetpan/mailimap.h> | 5 | |
6 | struct mailimap; | ||
7 | struct mailimap_body_type_1part; | ||
6 | 8 | ||
@@ -12,5 +14,7 @@ public: | |||
12 | IMAPwrapper( IMAPaccount *a ); | 14 | IMAPwrapper( IMAPaccount *a ); |
15 | virtual ~IMAPwrapper(); | ||
13 | QList<IMAPFolder>* listFolders(); | 16 | QList<IMAPFolder>* listFolders(); |
14 | void listMessages(const QString & mailbox,Maillist&target ); | 17 | void listMessages(const QString & mailbox,Maillist&target ); |
15 | QString fetchBody(const QString & mailbox,const RecMail&mail); | 18 | QString fetchBody(const RecMail&mail); |
19 | static void imap_progress( size_t current, size_t maximum ); | ||
16 | 20 | ||
@@ -18,2 +22,6 @@ protected: | |||
18 | RecMail*parse_list_result(mailimap_msg_att*); | 22 | RecMail*parse_list_result(mailimap_msg_att*); |
23 | void login(); | ||
24 | void logout(); | ||
25 | QString searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription); | ||
26 | QString getPlainBody(const RecMail&mail); | ||
19 | 27 | ||
@@ -21,3 +29,3 @@ private: | |||
21 | IMAPaccount *account; | 29 | IMAPaccount *account; |
22 | 30 | mailimap *m_imap; | |
23 | }; | 31 | }; |