disable subject when replying
This commit is contained in:
parent
52ca649908
commit
28ec8e642b
@ -63,16 +63,11 @@ QString GmailNetworkFactory::sendEmail(Mimesis::Message msg, const QNetworkProxy
|
|||||||
|
|
||||||
if (reply_to_message != nullptr) {
|
if (reply_to_message != nullptr) {
|
||||||
// We need to obtain some extra information.
|
// We need to obtain some extra information.
|
||||||
|
|
||||||
auto metadata = getMessageMetadata(reply_to_message->m_customId, {
|
auto metadata = getMessageMetadata(reply_to_message->m_customId, {
|
||||||
QSL("References"),
|
QSL("References"),
|
||||||
QSL("Message-ID")
|
QSL("Message-ID")
|
||||||
}, custom_proxy);
|
}, custom_proxy);
|
||||||
|
|
||||||
/*if (metadata.contains(QSL("References"))) {
|
|
||||||
|
|
||||||
}*/
|
|
||||||
|
|
||||||
if (metadata.contains(QSL("Message-ID"))) {
|
if (metadata.contains(QSL("Message-ID"))) {
|
||||||
msg["References"] = metadata.value(QSL("Message-ID")).toStdString();
|
msg["References"] = metadata.value(QSL("Message-ID")).toStdString();
|
||||||
msg["In-Reply-To"] = metadata.value(QSL("Message-ID")).toStdString();
|
msg["In-Reply-To"] = metadata.value(QSL("Message-ID")).toStdString();
|
||||||
|
@ -114,7 +114,7 @@ QList<QAction*> GmailServiceRoot::contextMenuMessagesList(const QList<Message>&
|
|||||||
m_replyToMessage = messages.at(0);
|
m_replyToMessage = messages.at(0);
|
||||||
|
|
||||||
if (m_actionReply == nullptr) {
|
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);
|
connect(m_actionReply, &QAction::triggered, this, &GmailServiceRoot::replyToEmail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ void FormAddEditEmail::execForReply(Message* original_message) {
|
|||||||
|
|
||||||
addRecipientRow(m_originalMessage->m_author);
|
addRecipientRow(m_originalMessage->m_author);
|
||||||
m_ui.m_txtSubject->setText(QSL("Re: %1").arg(m_originalMessage->m_title));
|
m_ui.m_txtSubject->setText(QSL("Re: %1").arg(m_originalMessage->m_title));
|
||||||
|
m_ui.m_txtSubject->setEnabled(false);
|
||||||
m_ui.m_txtMessage->setFocus();
|
m_ui.m_txtMessage->setFocus();
|
||||||
exec();
|
exec();
|
||||||
}
|
}
|
||||||
@ -130,9 +131,9 @@ void FormAddEditEmail::onOkClicked() {
|
|||||||
}
|
}
|
||||||
catch (const ApplicationException& ex) {
|
catch (const ApplicationException& ex) {
|
||||||
MsgBox::show(this, QMessageBox::Icon::Critical,
|
MsgBox::show(this, QMessageBox::Icon::Critical,
|
||||||
tr("E-mail NOT sent"), tr("Your e-mail message wasn't sent."),
|
tr("E-mail NOT sent"), tr("Your e-mail message wasn't sent."),
|
||||||
QString(),
|
QString(),
|
||||||
ex.message());
|
ex.message());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user