author | alwin <alwin> | 2003-12-12 13:56:20 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-12 13:56:20 (UTC) |
commit | 8af6feb08d168fefaa2568b057efa132386471f6 (patch) (unidiff) | |
tree | 3c5dd691e33ebf62156a22e4916ba8b34625acf5 /noncore/net/mail/imapwrapper.h | |
parent | 2a3290782c29e14de64d031fbdf4ce79fdfa1506 (diff) | |
download | opie-8af6feb08d168fefaa2568b057efa132386471f6.zip opie-8af6feb08d168fefaa2568b057efa132386471f6.tar.gz opie-8af6feb08d168fefaa2568b057efa132386471f6.tar.bz2 |
fetching mail body and attachments is working.
Diffstat (limited to 'noncore/net/mail/imapwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/imapwrapper.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/net/mail/imapwrapper.h b/noncore/net/mail/imapwrapper.h index 5ea45f3..95de215 100644 --- a/noncore/net/mail/imapwrapper.h +++ b/noncore/net/mail/imapwrapper.h | |||
@@ -8,6 +8,7 @@ struct mailimap; | |||
8 | struct mailimap_body_type_1part; | 8 | struct mailimap_body_type_1part; |
9 | struct mailimap_body_type_text; | 9 | struct mailimap_body_type_text; |
10 | struct mailimap_body_type_basic; | 10 | struct mailimap_body_type_basic; |
11 | struct mailimap_body_type_msg; | ||
11 | struct mailimap_body_type_mpart; | 12 | struct mailimap_body_type_mpart; |
12 | struct mailimap_body_fields; | 13 | struct mailimap_body_fields; |
13 | struct mailimap_msg_att; | 14 | struct mailimap_msg_att; |
@@ -25,7 +26,8 @@ public: | |||
25 | QList<IMAPFolder>* listFolders(); | 26 | QList<IMAPFolder>* listFolders(); |
26 | void listMessages(const QString & mailbox,QList<RecMail>&target ); | 27 | void listMessages(const QString & mailbox,QList<RecMail>&target ); |
27 | RecBody fetchBody(const RecMail&mail); | 28 | RecBody fetchBody(const RecMail&mail); |
28 | QString fetchPart(const RecMail&mail,QValueList<int>&path,bool internal_call=false); | 29 | QString fetchPart(const RecMail&mail,const QValueList<int>&path,bool internal_call=false); |
30 | QString fetchPart(const RecMail&mail,const RecPart&part); | ||
29 | static void imap_progress( size_t current, size_t maximum ); | 31 | static void imap_progress( size_t current, size_t maximum ); |
30 | 32 | ||
31 | protected: | 33 | protected: |
@@ -36,10 +38,10 @@ protected: | |||
36 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); | 38 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); |
37 | void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion=0,QValueList<int>recList=QValueList<int>()); | 39 | void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion=0,QValueList<int>recList=QValueList<int>()); |
38 | 40 | ||
39 | void fillPlainBody(const RecMail&mail,RecBody&target_body); | ||
40 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); | 41 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); |
41 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); | 42 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); |
42 | void fillSingleBasicPart(RecPart&target_part,mailimap_body_type_basic*which); | 43 | void fillSingleBasicPart(RecPart&target_part,mailimap_body_type_basic*which); |
44 | void fillSingleMsgPart(RecPart&target_part,mailimap_body_type_msg*which); | ||
43 | 45 | ||
44 | /* just helpers */ | 46 | /* just helpers */ |
45 | static void fillBodyFields(RecPart&target_part,mailimap_body_fields*which); | 47 | static void fillBodyFields(RecPart&target_part,mailimap_body_fields*which); |