]> git.llucax.com Git - software/mutt-debian.git/commitdiff
upstream/228671-pipe-mime.patch: don't mess up the terminal while piping attachments...
authorAntonio Radici <antonio@dyne.org>
Sun, 7 Feb 2010 00:42:02 +0000 (00:42 +0000)
committerAntonio Radici <antonio@dyne.org>
Sun, 7 Feb 2010 00:42:02 +0000 (00:42 +0000)
debian/changelog
debian/patches/series
debian/patches/upstream/228671-pipe-mime.patch [new file with mode: 0644]

index a464d4c61565cee5bdc987b02fcfee5dd443f00b..0a2242b4416271f52bad1c1f6fe5b1e54df962b8 100644 (file)
@@ -19,6 +19,8 @@ mutt (1.5.20-7) unstable; urgency=low
       smime_keys (Closes: 547980, 549006)
     + upstream/528233-readonly-open.patch: open attachments in read-only 
       (Closes: 528233)
+    + upstream/228671-pipe-mime.patch: don't mess up the terminal while piping
+      attachments (Closes: 228671)
     + debian-specific/Muttrc: set time_inc to be 250ms (Closes: 537746)
   * debian/control: 
     + bumping Standards-Version to 3.8.4, nothing to be done
index 016361d12b5452f379cb1b93bffb84d1798e3259..7614b5b789472c3236d1838e7f4b472dac4995fb 100644 (file)
@@ -53,9 +53,10 @@ upstream/553238-german-intl.patch
 upstream/557395-muttrc-crypto.patch
 upstream/545316-header-color.patch
 upstream/568295-references.patch
-
 upstream/547980-smime_keys-chaining.patch
 upstream/528233-readonly-open.patch
+upstream/228671-pipe-mime.patch
+
 misc/hyphen-as-minus.patch
 #misc/manpage-typos.patch
 misc/smime_keys-manpage.patch
diff --git a/debian/patches/upstream/228671-pipe-mime.patch b/debian/patches/upstream/228671-pipe-mime.patch
new file mode 100644 (file)
index 0000000..ba49e2d
--- /dev/null
@@ -0,0 +1,18 @@
+Don't draw imap fetch progress if we aren't in visual mode.
+Drawing progress leaves terminal in confusing state when piping a message
+from pager to less(1). See http://bugs.mutt.org/1771
+
+--- a/imap/message.c
++++ b/imap/message.c
+@@ -489,8 +489,9 @@
+           imap_error ("imap_fetch_message()", buf);
+           goto bail;
+         }
+-        mutt_progress_init (&progressbar, _("Fetching message..."),
+-                            M_PROGRESS_SIZE, NetInc, bytes);
++          if (!isendwin())
++          mutt_progress_init (&progressbar, _("Fetching message..."),
++                            M_PROGRESS_SIZE, NetInc, bytes);
+         if (imap_read_literal (msg->fp, idata, bytes, &progressbar) < 0)
+           goto bail;
+         /* pick up trailing line */