Skip to content

Commit

Permalink
fixes #160 - reply-all should reply to all irrespective of reply-to h…
Browse files Browse the repository at this point in the history
…eader
  • Loading branch information
d99kris committed May 18, 2024
1 parent 07835f0 commit 126120c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/nmail.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NMAIL "1" "May 2024" "nmail v4.62" "User Commands"
.TH NMAIL "1" "May 2024" "nmail v4.63" "User Commands"
.SH NAME
nmail \- ncurses mail
.SH SYNOPSIS
Expand Down
15 changes: 8 additions & 7 deletions src/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3557,20 +3557,21 @@ void Ui::SetState(Ui::State p_State)
m_ComposeMessageStr += GetSignatureStr();
}

if (!header.GetReplyTo().empty())
{
SetComposeStr(HeaderTo, Util::ToWString(header.GetReplyTo()));
SetComposeStr(HeaderCc, L"");
}
else
{
if (folder == m_SentFolder)
{
SetComposeStr(HeaderTo, Util::ToWString(header.GetTo()));
}
else
{
SetComposeStr(HeaderTo, Util::ToWString(header.GetFrom()));
if (!header.GetReplyTo().empty())
{
SetComposeStr(HeaderTo, Util::ToWString(header.GetReplyTo()));
}
else
{
SetComposeStr(HeaderTo, Util::ToWString(header.GetFrom()));
}
}

if (m_State == StateReplyAllMessage)
Expand Down
2 changes: 1 addition & 1 deletion src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "version.h"

#define NMAIL_VERSION "4.62"
#define NMAIL_VERSION "4.63"

std::string Version::GetBuildOs()
{
Expand Down

0 comments on commit 126120c

Please sign in to comment.