[pan] post-ui: remove space inserted before x-face (gmime3)



commit c85950d0b50c10d1eebbc0da775731a39778232c
Author: Dominique Dumont <dod debian org>
Date:   Mon Oct 18 19:02:44 2021 +0200

    post-ui: remove space inserted before x-face (gmime3)
    
    This reverts the commit 9e301fbd that was applied to gmime2 code years
    ago.
    
    Since I cannot reproduce the wrapping issue mentioned in #131 and #115
    with recent gmime3, I believe this bug is due to old gmime. I may be
    wrong though.

 pan/gui/post-ui.cc | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/pan/gui/post-ui.cc b/pan/gui/post-ui.cc
index ba7a5e4..aa51485 100644
--- a/pan/gui/post-ui.cc
+++ b/pan/gui/post-ui.cc
@@ -1631,11 +1631,7 @@ PostUI :: new_message_from_ui (Mode mode, bool copy_body)
 
   // headers from posting profile(via prefs): X-Face
   if (!profile.xface.empty())
-  {
-    std::string f;
-    f += " " + profile.xface;
-    g_mime_object_set_header ((GMimeObject *) msg, "X-Face", f.c_str(), charset_cstr);
-  }
+    g_mime_object_set_header ((GMimeObject *) msg, "X-Face",  profile.xface.c_str(), charset_cstr);
 
   // add the 'hidden headers' (references)
   const gchar * h_key_str;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]