Skip to content

Commit

Permalink
sylpheed: add fix-send-mail-attachment.patch, relbump
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Jul 3, 2024
1 parent dbe30ec commit 590bc89
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
1 change: 1 addition & 0 deletions sylpheed/.md5sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
093c9a7b9c751bafe4044dbbbf1ac7bc 0002-fix_summary_font_size_4_8px.patch
1145a94e1dbfa5c1465a62534a15b164 0003-disable_i18n_help_and_faq.patch
2b009daaf5b36916160b89ccfa639c8e 0004-refer_to_online_help_and_faq.patch
bb73807a23c45261c874e5214ec1a0c6 fix-send-mail-attachment.patch
af1ea33e82050b8bd034b8cfbcd2f75e sylpheed-3.7.0.tar.xz
6 changes: 4 additions & 2 deletions sylpheed/Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

name=sylpheed
version=3.7.0
release=4
release=5
source="https://sylpheed.sraoss.jp/$name/v${version%.*}/$name-$version.tar.xz
0001-fix_widget_style_for_dark_theme.patch
0001-trinity-icon-theme.patch
0002-fix_summary_font_size_4_8px.patch
0003-disable_i18n_help_and_faq.patch
0004-refer_to_online_help_and_faq.patch"
0004-refer_to_online_help_and_faq.patch
fix-send-mail-attachment.patch"

build() {
export LINGUAS=' '
Expand All @@ -27,6 +28,7 @@ build() {
patch -p1 -i $SRC/0002-fix_summary_font_size_4_8px.patch
patch -p1 -i $SRC/0003-disable_i18n_help_and_faq.patch
patch -p1 -i $SRC/0004-refer_to_online_help_and_faq.patch
patch -p1 -i $SRC/fix-send-mail-attachment.patch

# Add patch for trinity icons if +TRINITY+ specified in
# PKGMK_SYLPHEED var. You may declare it in /etc/pkgmk.conf.
Expand Down
59 changes: 59 additions & 0 deletions sylpheed/fix-send-mail-attachment.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
From 8f19d425f1c27e50e7ad9b75a63b126e91edd0c2 Mon Sep 17 00:00:00 2001
From: shuiqucheng <[email protected]>
Date: Fri, 19 Mar 2021 09:43:33 +0800
Subject: [PATCH] When sending an email with an email format file as an
attachment, the attachment is empty after successful sending. BUG URL:
https://sylpheed.sraoss.jp/redmine/issues/327
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985425

---
.../patches/08fix-send-mail-attachment.patch | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 debian/patches/08fix-send-mail-attachment.patch

diff --git a/debian/patches/08fix-send-mail-attachment.patch b/debian/patches/08fix-send-mail-attachment.patch
new file mode 100644
index 00000000..76922987
--- /dev/null
+++ b/debian/patches/08fix-send-mail-attachment.patch
@@ -0,0 +1,37 @@
+From: Shui Qucheng <[email protected]>
+Date: Thu, 11 Mar 2021 11:23:30 +0800
+Subject: Fixed the problem that when sending e-mail with e-mail format file as attachment, the attachment was empty after successful sending.
+ https://sylpheed.sraoss.jp/redmine/issues/327
+
+---
+ src/compose.c | 10 ++++++-
+ 1 file changed, 8 insertions(+), 2 deletion(-)
+
+Index: src/compose.c
+===================================================================
+--- a/src/compose.c
++++ b/src/compose.c
+@@ -4571,7 +4571,7 @@
+ {
+ GtkTreeModel *model = GTK_TREE_MODEL(compose->attach_store);
+ GtkTreeIter iter;
+- gboolean valid;
++ gboolean valid,bmail;
+ AttachInfo *ainfo;
+ FILE *attach_fp;
+ gint len;
+@@ -4604,7 +4604,13 @@
+
+ encoding = ainfo->encoding;
+
+- if (!g_ascii_strncasecmp(ainfo->content_type, "message/", 8)) {
++ if (!g_ascii_strncasecmp(ainfo->content_type, "message/rfc822", 14)) {
++ bmail=TRUE;
++ ainfo->encoding = ENC_BASE64;
++ }else{
++ bmail=FALSE;
++ }
++ if (!bmail&&!g_ascii_strncasecmp(ainfo->content_type, "message/", 8)) {
+ fprintf(fp, "Content-Type: %s\n", ainfo->content_type);
+ fprintf(fp, "Content-Disposition: inline\n");
+
--
GitLab

0 comments on commit 590bc89

Please sign in to comment.