disable subject when replying

This commit is contained in:
Martin Rotter 2022-03-18 09:08:27 +01:00
parent 52ca649908
commit 28ec8e642b
3 changed files with 5 additions and 9 deletions

View File

@ -63,16 +63,11 @@ QString GmailNetworkFactory::sendEmail(Mimesis::Message msg, const QNetworkProxy
if (reply_to_message != nullptr) {
// We need to obtain some extra information.
auto metadata = getMessageMetadata(reply_to_message->m_customId, {
QSL("References"),
QSL("Message-ID")
}, custom_proxy);
/*if (metadata.contains(QSL("References"))) {
}*/
if (metadata.contains(QSL("Message-ID"))) {
msg["References"] = metadata.value(QSL("Message-ID")).toStdString();
msg["In-Reply-To"] = metadata.value(QSL("Message-ID")).toStdString();

View File

@ -114,7 +114,7 @@ QList<QAction*> GmailServiceRoot::contextMenuMessagesList(const QList<Message>&
m_replyToMessage = messages.at(0);
if (m_actionReply == nullptr) {
m_actionReply = new QAction(qApp->icons()->fromTheme(QSL("mail-reply-sender")), tr("Reply to this message"), this);
m_actionReply = new QAction(qApp->icons()->fromTheme(QSL("mail-reply-sender")), tr("Reply to this e-mail message"), this);
connect(m_actionReply, &QAction::triggered, this, &GmailServiceRoot::replyToEmail);
}

View File

@ -56,6 +56,7 @@ void FormAddEditEmail::execForReply(Message* original_message) {
addRecipientRow(m_originalMessage->m_author);
m_ui.m_txtSubject->setText(QSL("Re: %1").arg(m_originalMessage->m_title));
m_ui.m_txtSubject->setEnabled(false);
m_ui.m_txtMessage->setFocus();
exec();
}
@ -130,9 +131,9 @@ void FormAddEditEmail::onOkClicked() {
}
catch (const ApplicationException& ex) {
MsgBox::show(this, QMessageBox::Icon::Critical,
tr("E-mail NOT sent"), tr("Your e-mail message wasn't sent."),
QString(),
ex.message());
tr("E-mail NOT sent"), tr("Your e-mail message wasn't sent."),
QString(),
ex.message());
}
}