Slackware64-current multilib: Pan-0.146 error sending posts (pan issue 103) PATCH FIX
by kingbeowulf from LinuxQuestions.org on (#550J5)
As a user or pan for newsgroups for many years on Slackware, this one took me by suprise today.
Code:Wed Jun 24 22:48:51 2020 - Posting of Re: too much network traffic after -current upgrade" failed: 441 Duplicate Content-Type: headerThis posting bug has already been reported to and noticed upstream:
https://gitlab.gnome.org/GNOME/pan/-/issues/103
https://gitlab.gnome.org/GNOME/pan/-/merge_requests/10
fix here:
https://gitlab.gnome.org/GNOME/pan/-...fec51b23820467
Code:diff --git a/pan/gui/post-ui.cc b/pan/gui/post-ui.cc
index 8769ec54815132c40d9c5908eb6c801c6368c07d..861ebec53f1e58fa583598971e8571e923da1e5a 100644
--- a/pan/gui/post-ui.cc
+++ b/pan/gui/post-ui.cc
@@ -1604,11 +1604,11 @@ PostUI :: new_message_from_ui (Mode mode, bool copy_body)
// headers from the ui: From
const Profile profile (get_current_profile ());
- std::string s;
- profile.get_from_header (s);
#ifdef HAVE_GMIME_30
- g_mime_message_add_mailbox (msg, GMIME_ADDRESS_TYPE_SENDER, NULL, s.c_str());
+ g_mime_message_add_mailbox (msg, GMIME_ADDRESS_TYPE_SENDER, profile.username.c_str(), profile.address.c_str());
#else
+ std::string s;
+ profile.get_from_header (s);
g_mime_message_set_sender (msg, s.c_str());
#endifHOWEVER, I'm not able to get this patch to work. I must be missing something.


Code:Wed Jun 24 22:48:51 2020 - Posting of Re: too much network traffic after -current upgrade" failed: 441 Duplicate Content-Type: headerThis posting bug has already been reported to and noticed upstream:
https://gitlab.gnome.org/GNOME/pan/-/issues/103
https://gitlab.gnome.org/GNOME/pan/-/merge_requests/10
fix here:
https://gitlab.gnome.org/GNOME/pan/-...fec51b23820467
Code:diff --git a/pan/gui/post-ui.cc b/pan/gui/post-ui.cc
index 8769ec54815132c40d9c5908eb6c801c6368c07d..861ebec53f1e58fa583598971e8571e923da1e5a 100644
--- a/pan/gui/post-ui.cc
+++ b/pan/gui/post-ui.cc
@@ -1604,11 +1604,11 @@ PostUI :: new_message_from_ui (Mode mode, bool copy_body)
// headers from the ui: From
const Profile profile (get_current_profile ());
- std::string s;
- profile.get_from_header (s);
#ifdef HAVE_GMIME_30
- g_mime_message_add_mailbox (msg, GMIME_ADDRESS_TYPE_SENDER, NULL, s.c_str());
+ g_mime_message_add_mailbox (msg, GMIME_ADDRESS_TYPE_SENDER, profile.username.c_str(), profile.address.c_str());
#else
+ std::string s;
+ profile.get_from_header (s);
g_mime_message_set_sender (msg, s.c_str());
#endifHOWEVER, I'm not able to get this patch to work. I must be missing something.