diff --git a/callback.cpp b/callback.cpp index 5bc0d5e2a..fa055393c 100644 --- a/callback.cpp +++ b/callback.cpp @@ -211,3 +211,8 @@ bool Callback::deleteInvitationAfterReply() const { return GlobalSettings::self()->deleteInvitationEmailsAfterSendingReply(); } + +QString Callback::sender() const +{ + return mMsg->from(); +} diff --git a/callback.h b/callback.h index 716b436dd..b66903bfc 100644 --- a/callback.h +++ b/callback.h @@ -69,6 +69,9 @@ public: /** Get the receiver of the mail */ QString receiver() const; + /** Returns the sender of the mail. */ + QString sender() const; + /** Close the main window showing this message, if it's a secondary window. */ void closeIfSecondaryWindow() const;