Re: [Mutt] #1771: Screen left in strange mode when piping mail with
#1771: Screen left in strange mode when piping mail with unknown mime-types
Changes (by brendan):
* component: mutt => display
Old description:
> {{{
> Package: mutt
> Version: 1.5.4-1
> Severity: normal
>
> [NOTE: this bug report has been submitted to the debian BTS as
> Bug#228671.
> Please Cc all your replies to 228671@xxxxxxxxxxxxxxx .]
>
> From: Jim Paris <jim@xxxxxxxx>
> Subject: mutt: Screen left in strange mode when piping mail with unknown
> mime-types
> Date: Mon, 19 Jan 2004 23:11:31 -0500
>
> If viewing a mail with implicit_autoview enabled,
> and the mime-type of an attachment is not in mailcap,
> and you pipe the mail to /bin/less,
> the screen is left in a strange state.
>
> If I had to guess, without having the time to look into it further at
> the moment, I'd say that printing the "mailcap entry for type .. not
> found" message is interfering with less's termcap initialization.
>
> Attached is a sample muttrc and e-mail. View with
> mutt -F muttrc -funknown
> and from within Mutt type
> |less
> It may take a few tries for get the screen to get funky.
>
> -- System Information:
> Debian Release: testing/unstable
> Architecture: i386
> Kernel: Linux neurosis 2.6.1 #1 Sun Jan 18 18:37:52 EST 2004 i686
> Locale: LANG=C, LC_CTYPE=C
>
> Versions of packages mutt depends on:
> ii libc6 2.3.2.ds1-10 GNU C Library: Shared
> libraries an
> ii libdb4.0 4.0.14-1.3 Berkeley v4.0 Database
> Libraries [
> ii libidn9 0.1.14-2 GNU libidn library,
> implementation
> ii libncurses5 5.3.20030719-4 Shared libraries for
> terminal hand
> ii libsasl7 1.5.27-3.5 Authentication abstraction
> library
> ii sendmail [mail-transport- 8.12.9-5 A powerful, efficient, and
> scalabl
>
> -- no debconf information
>
> set implicit_autoview = yes
>
> >From jim Mon Jan 19 22:58:11 2004
> Date: Mon, 19 Jan 2004 22:58:10 -0500
> From: jim
> To: jim
> Subject: Test
> Mime-Version: 1.0
> Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT"
> Content-Disposition: inline
> User-Agent: Mutt/1.5.4i
> Content-Length: 303
> Lines: 14
>
> --tKW2IUtsqtDRztdT
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
>
> This is a test. Second attachment has unknown type.
>
> --tKW2IUtsqtDRztdT
> Content-Type: no-such/type-exists; charset=us-ascii
> Content-Disposition: attachment; filename=foo
>
> This has an unknown type.
>
> --tKW2IUtsqtDRztdT--
>
>
> >How-To-Repeat:
> >Fix:
> }}}
New description:
{{{
Package: mutt
Version: 1.5.4-1
Severity: normal
[NOTE: this bug report has been submitted to the debian BTS as Bug#228671.
Please Cc all your replies to 228671@xxxxxxxxxxxxxxx .]
From: Jim Paris <jim@xxxxxxxx>
Subject: mutt: Screen left in strange mode when piping mail with unknown
mime-types
Date: Mon, 19 Jan 2004 23:11:31 -0500
If viewing a mail with implicit_autoview enabled,
and the mime-type of an attachment is not in mailcap,
and you pipe the mail to /bin/less,
the screen is left in a strange state.
If I had to guess, without having the time to look into it further at
the moment, I'd say that printing the "mailcap entry for type .. not
found" message is interfering with less's termcap initialization.
Attached is a sample muttrc and e-mail. View with
mutt -F muttrc -funknown
and from within Mutt type
|less
It may take a few tries for get the screen to get funky.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux neurosis 2.6.1 #1 Sun Jan 18 18:37:52 EST 2004 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages mutt depends on:
ii libc6 2.3.2.ds1-10 GNU C Library: Shared
libraries an
ii libdb4.0 4.0.14-1.3 Berkeley v4.0 Database
Libraries [
ii libidn9 0.1.14-2 GNU libidn library,
implementation
ii libncurses5 5.3.20030719-4 Shared libraries for terminal
hand
ii libsasl7 1.5.27-3.5 Authentication abstraction
library
ii sendmail [mail-transport- 8.12.9-5 A powerful, efficient, and
scalabl
-- no debconf information
set implicit_autoview = yes
>From jim Mon Jan 19 22:58:11 2004
Date: Mon, 19 Jan 2004 22:58:10 -0500
From: jim
To: jim
Subject: Test
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT"
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
Content-Length: 303
Lines: 14
--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
This is a test. Second attachment has unknown type.
--tKW2IUtsqtDRztdT
Content-Type: no-such/type-exists; charset=us-ascii
Content-Disposition: attachment; filename=foo
This has an unknown type.
--tKW2IUtsqtDRztdT--
>How-To-Repeat:
>Fix:
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/1771#comment:5>