diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-06-30 20:41:24 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-06-30 20:41:24 -0500 |
commit | f1f9c9b90c6b27b58cddc021281c345de365685b (patch) | |
tree | c1aeef2eb9fd6ab58d6d7a323067617398c6c8bf /kmail/kmmessage.h | |
parent | e4cc0ead9fb403ee429406eaaacda0afae5dd006 (diff) | |
download | tdepim-f1f9c9b90c6b27b58cddc021281c345de365685b.tar.gz tdepim-f1f9c9b90c6b27b58cddc021281c345de365685b.zip |
If a message is replied to from an incoming account, and an outgoing account is available with the same name, set that outgoing account as the default transport
This resolves Bug 1239
Diffstat (limited to 'kmail/kmmessage.h')
-rw-r--r-- | kmail/kmmessage.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kmail/kmmessage.h b/kmail/kmmessage.h index a16006575..3a61a11fc 100644 --- a/kmail/kmmessage.h +++ b/kmail/kmmessage.h @@ -164,7 +164,8 @@ public: KMMessage* createReply( KMail::ReplyStrategy replyStrategy = KMail::ReplySmart, TQString selection=TQString(), bool noQuote = false, bool allowDecryption = true, - const TQString &tmpl = TQString() ); + const TQString &tmpl = TQString(), + const TQString &originatingAccount = TQString() ); /** Create a new message that is a redirect to this message, filling all required header fields with the proper values. The returned message @@ -802,6 +803,10 @@ public: TQString fileName() const { return mFileName; } void setFileName(const TQString& file) { if(mFileName != file) { mFileName=file; setDirty(true); } } + /** Get/set originating account name. */ + TQString originatingAccountName() const { return mOriginatingAccountName; } + void setOriginatingAccountName(const TQString& account) { if(mOriginatingAccountName != account) { mOriginatingAccountName=account; setDirty(true); } } + /** Get/set size of message in the folder including the whole header in bytes. Can be 0, if the message is not in a folder. The setting of mMsgSize = mMsgLength = sz is needed for popFilter*/ @@ -960,6 +965,7 @@ private: const TQTextCodec * mOverrideCodec; TQString mFileName; + TQString mOriginatingAccountName; off_t mFolderOffset; size_t mMsgSize, mMsgLength; time_t mDate; |