[pan2] added save option for inline yenc images
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] added save option for inline yenc images
- Date: Mon, 16 Jul 2012 20:34:44 +0000 (UTC)
commit b5aeade3382f3bb27798e76bdaa26be33ce894bd
Author: Heinrich MÃller <henmull src gnome org>
Date: Mon Jul 16 22:33:54 2012 +0200
added save option for inline yenc images
pan/gui/body-pane.cc | 4 ++--
pan/usenet-utils/text-massager.cc | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pan/gui/body-pane.cc b/pan/gui/body-pane.cc
index 0ba27e1..4eeeeb3 100644
--- a/pan/gui/body-pane.cc
+++ b/pan/gui/body-pane.cc
@@ -1036,8 +1036,8 @@ BodyPane :: append_part (GMimeObject * parent, GMimeObject * obj, GtkAllocation
is_done = true;
}
- // otherwise, add to list of attachments
- if (!is_done) {
+ // picture or otherwise, add to list of attachments
+ if (is_image || !is_done) {
const char * filename = g_mime_part_get_filename (part);
char * pch = (filename && *filename)
? g_strdup_printf ("%s", filename)
diff --git a/pan/usenet-utils/text-massager.cc b/pan/usenet-utils/text-massager.cc
index 68137e2..644e547 100644
--- a/pan/usenet-utils/text-massager.cc
+++ b/pan/usenet-utils/text-massager.cc
@@ -568,7 +568,7 @@ pan :: expand_attachment_headers(const Quark& path, const Article& article)
if (path.empty()) return std::string("");
std::string val(path.c_str());
std::string::size_type pos;
- std::string author_str (article.author.c_str());
+ std::string author_str (article.author.empty() ? "" : article.author);
std::pair<std::string,std::string> author (get_email_address(author_str));
std::string author_name (author.first);
std::string author_email (author.second);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]