author | alwin <alwin> | 2003-12-09 23:41:24 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-09 23:41:24 (UTC) |
commit | c361d36374d9c333ffe4b853067858df5636e1a5 (patch) (unidiff) | |
tree | ed99a2a14aba66f2caad15a3467291c12313d048 /noncore/net/mail/libmailwrapper/mailtypes.cpp | |
parent | cf0db32ce938c3254a8153ec3ac390c7282af5d0 (diff) | |
download | opie-c361d36374d9c333ffe4b853067858df5636e1a5.zip opie-c361d36374d9c333ffe4b853067858df5636e1a5.tar.gz opie-c361d36374d9c333ffe4b853067858df5636e1a5.tar.bz2 |
all header stuff will be parsed now
RecMail got the unique message id for reply reference
Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.cpp | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp index 9f2c9e3..f9e5794 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.cpp +++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp | |||
@@ -1,10 +1,40 @@ | |||
1 | #include "mailtypes.h" | 1 | #include "mailtypes.h" |
2 | 2 | ||
3 | 3 | ||
4 | RecMail::RecMail() | 4 | RecMail::RecMail() |
5 | :subject(""),date(""),mbox(""),msg_number(0),msg_flags(7) | 5 | :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) |
6 | { | 6 | { |
7 | init(); | ||
8 | } | ||
9 | |||
10 | RecMail::RecMail(const RecMail&old) | ||
11 | :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) | ||
12 | { | ||
13 | init(); | ||
14 | copy_old(old); | ||
15 | qDebug("Copy constructor RecMail"); | ||
16 | } | ||
17 | |||
18 | void RecMail::copy_old(const RecMail&old) | ||
19 | { | ||
20 | subject = old.subject; | ||
21 | date = old.date; | ||
22 | mbox = old.mbox; | ||
23 | msg_id = old.msg_id; | ||
24 | msg_number = old.msg_number; | ||
25 | from = old.from; | ||
26 | msg_flags = old.msg_flags; | ||
27 | to = old.to; | ||
28 | cc = old.cc; | ||
29 | bcc = old.bcc; | ||
30 | } | ||
31 | |||
32 | void RecMail::init() | ||
33 | { | ||
34 | to.clear(); | ||
35 | cc.clear(); | ||
36 | bcc.clear(); | ||
7 | } | 37 | } |
8 | 38 | ||
9 | void RecMail::setTo(const QStringList&list) | 39 | void RecMail::setTo(const QStringList&list) |
10 | { | 40 | { |
@@ -35,9 +65,8 @@ const QStringList& RecMail::Bcc()const | |||
35 | { | 65 | { |
36 | return bcc; | 66 | return bcc; |
37 | } | 67 | } |
38 | 68 | ||
39 | |||
40 | RecPart::RecPart() | 69 | RecPart::RecPart() |
41 | : m_type(""),m_subtype(""),m_identifier(""),m_encoding("") | 70 | : m_type(""),m_subtype(""),m_identifier(""),m_encoding("") |
42 | { | 71 | { |
43 | } | 72 | } |