author | alwin <alwin> | 2003-12-09 23:41:24 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-09 23:41:24 (UTC) |
commit | c361d36374d9c333ffe4b853067858df5636e1a5 (patch) (side-by-side diff) | |
tree | ed99a2a14aba66f2caad15a3467291c12313d048 /noncore/net/mail/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/mailtypes.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/mailtypes.cpp | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/noncore/net/mail/mailtypes.cpp b/noncore/net/mail/mailtypes.cpp index 9f2c9e3..f9e5794 100644 --- a/noncore/net/mail/mailtypes.cpp +++ b/noncore/net/mail/mailtypes.cpp @@ -2,8 +2,38 @@ RecMail::RecMail() - :subject(""),date(""),mbox(""),msg_number(0),msg_flags(7) + :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) { + init(); +} + +RecMail::RecMail(const RecMail&old) + :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) +{ + init(); + copy_old(old); + qDebug("Copy constructor RecMail"); +} + +void RecMail::copy_old(const RecMail&old) +{ + subject = old.subject; + date = old.date; + mbox = old.mbox; + msg_id = old.msg_id; + msg_number = old.msg_number; + from = old.from; + msg_flags = old.msg_flags; + to = old.to; + cc = old.cc; + bcc = old.bcc; +} + +void RecMail::init() +{ + to.clear(); + cc.clear(); + bcc.clear(); } void RecMail::setTo(const QStringList&list) @@ -36,7 +66,6 @@ const QStringList& RecMail::Bcc()const return bcc; } - RecPart::RecPart() : m_type(""),m_subtype(""),m_identifier(""),m_encoding("") { |