21 #include "mimeheader.h"
22 #include "mailaddress.h"
24 #include "rfcdecoder.h"
37 virtual void outputHeader (
mimeIO &);
39 void addTo (
const mailAddress & _adr)
41 toAdr.append (
new mailAddress (_adr));
43 void addCC (
const mailAddress & _adr)
45 ccAdr.append (
new mailAddress (_adr));
47 void addBCC (
const mailAddress & _adr)
49 bccAdr.append (
new mailAddress (_adr));
52 void setFrom (
const mailAddress & _adr)
56 void setSender (
const mailAddress & _adr)
60 void setReturnPath (
const mailAddress & _adr)
64 void setReplyTo (
const mailAddress & _adr)
69 const TQCString& getMessageId ()
73 void setMessageId (
const TQCString & _str)
78 const TQCString& getInReplyTo ()
82 void setInReplyTo (
const TQCString & _str)
87 const TQCString& getReferences ()
91 void setReferences (
const TQCString & _str)
108 _subject = _str.simplifyWhiteSpace();
142 static int parseAddressList (
const char *, TQPtrList < mailAddress > *);
143 static TQCString getAddressStr (TQPtrList < mailAddress > *);
144 TQPtrList < mailAddress > &to ()
148 TQPtrList < mailAddress > &cc ()
152 TQPtrList < mailAddress > &bcc ()
156 #ifdef KMAIL_COMPATIBLE
161 const mailAddress & from ()
165 const mailAddress & replyTo ()
169 void readConfig (
void)
175 TQPtrList < mailAddress > toAdr;
176 TQPtrList < mailAddress > ccAdr;
177 TQPtrList < mailAddress > bccAdr;
179 mailAddress senderAdr;
180 mailAddress returnpathAdr;
181 mailAddress replytoAdr;
187 TQCString references;
static const TQString decodeRFC2047String(const TQString &_str, TQString &charset, TQString &language)
decode a RFC2047 String
static const TQString encodeRFC2047String(const TQString &_str, TQString &charset, TQString &language)
encode a RFC2047 String