[Pkg-mutt-maintainers] Bug#861230: mutt: assumed_charset is ignored after verification of traditional pgp signature

Andrey Skvortsov andrej.skvortzov at gmail.com
Wed Apr 26 10:05:07 UTC 2017


Package: mutt
Version: 1.8.0-1
Severity: normal

Dear Maintainer,

if e-mail with traditional (inline) pgp signature and
missing Content-Type is received, then mutt displays non-latin
charaters as '?' in the e-mail's body after pgp signature checking.
Pgp signature checking may be executed by hand using command
check-traditional-pgp or automaticaly by setting option pgp_auto_decode.

If charset for the message is set by hand (Ctrl-E: charset='utf-8')
before or after signature checking, then message body is displayed
correctly.


Steps to reproduce:
1. open mutt
2. open e-mail without Content-Type header and with traditional pgp
   signature and with non-latin (in my case cyrillic) characters.
   Message body is encoded using utf-8 and assumed_charset is set to utf-8.
3. see that message body is displayed correctly.
4. Ctrl-E shows 'text/plain' for Content-Type
5. check pgp signature by pressing <ESC>P (check-traditional-pgp>
6. see that message body shows '?' instead of non-lating characters.
7. Ctrl-E shows 'text/plain; x-action=pgp-signed; format=fixed'. As at
step 3 charset is missing
8. Ctrl-E press return. This will add missing charset and the message
is displayed correctly again.


I'd expect that message is displayed correctly after
check-traditional-pgp as it was before it.


Here are my mutt options:
abort_noattach=no
abort_nosubject=ask-yes
abort_unmodified=yes
alias_file="~/.mutt/aliases"
alias_format="%4n %2f %t %-10a   %r"
allow_8bit is set
allow_ansi is unset
arrow_cursor is unset
ascii_chars is unset
askbcc is unset
askcc is unset
ask_follow_up is unset
ask_x_comment_to is unset
assumed_charset="utf-8"
attach_charset=""
attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
attach_keyword="\\<(attach|attached|attachments?)\\>"
attach_sep="\n"
attach_split is set
attribution="On %d, %n wrote:"
attribution_locale=""
auto_tag is set
autoedit is unset
beep is set
beep_new is unset
bounce=ask-yes
bounce_delivered is unset
braille_friendly is unset
catchup_newsgroup=ask-yes
certificate_file="~/.mutt/certificates"
charset="utf-8"
check_mbox_size is unset
check_new is set
collapse_unread is set
compose_format="-- NeoMutt: Compose  [Approx. msg size: %l   Atts: %a]%>-"
config_charset=""
confirmappend is set
confirmcreate is set
connect_timeout=30
content_type="text/plain"
copy=yes
crypt_autoencrypt is unset
crypt_autopgp is set
crypt_autosign is set
crypt_autosmime is set
crypt_confirmhook is set
crypt_opportunistic_encrypt is unset
crypt_replyencrypt is set
crypt_replysign is set
crypt_replysignencrypted is unset
pgp_encrypt_self=yes
crypt_timestamp is set
crypt_use_gpgme is set
crypt_use_pka is unset
crypt_verify_sig=yes
date_format="%y-%m-%d %H:%M"
default_hook="~f %s !~P | (~P ~C %s)"
delete=ask-yes
delete_untag is set
digest_collapse is set
display_filter=""
dotlock_program="/usr/bin/mutt_dotlock"
dsn_notify=""
dsn_return=""
duplicate_threads is set
edit_headers is unset
editor="edit.sh"
empty_subject="Re: your mail"
encode_from is unset
envelope_from_address=""
escape="~"
fast_reply is set
fcc_attach=yes
fcc_clear is unset
flag_safe is unset
folder="~/.offlineimap_data/gmail"
folder_format="%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f"
followup_to is set
followup_to_poster=ask-yes
force_name is unset
forward_decode is set
forward_decrypt is set
forward_edit=yes
forward_format="[%a: %s]"
forward_quote is unset
forward_references is unset
from="andrej.skvortzov at gmail.com"
from_chars=""
gecos_mask="^[^,]*"
group_index_format="%4C %M%N %5s  %-45.45f %d"
hdrs is set
header is unset
header_cache="~/.mutt/cache/headers"
header_cache_backend=""
header_cache_compress is set
help is set
hidden_host is unset
hide_limited is unset
hide_missing is set
hide_thread_subject is set
hide_top_limited is unset
hide_top_missing is set
history=10
history_file="~/.mutthistory"
honor_disposition is unset
honor_followup_to=yes
hostname="skv.local"
idn_decode is set
idn_encode is set
ignore_linear_white_space is unset
ignore_list_reply_to is unset
show_multipart_alternative=""
imap_authenticators=""
imap_check_subscribed is unset
imap_delim_chars="/."
imap_headers=""
imap_idle is unset
imap_keepalive=300
imap_list_subscribed is unset
imap_login=""
imap_pass=""
imap_passive is set
imap_peek is set
imap_pipeline_depth=15
imap_servernoise is set
imap_user=""
implicit_autoview is unset
include=yes
include_onlyfirst is unset
indent_string="> "
index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"
inews=""
ispell="ispell"
keep_flagged is unset
keywords_legacy is set
keywords_standard is unset
mail_check=180
mail_check_recent is set
mail_check_stats is unset
mail_check_stats_interval=60
mailcap_path="~/.mailcap:/usr/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap"
mailcap_sanitize is set
maildir_header_cache_verify is set
maildir_trash is unset
maildir_check_cur is unset
mark_macro_prefix="'"
mark_old is set
markers is unset
mask="!^\\.[^.]"
mbox="~/mbox"
mbox_type=Maildir
menu_context=0
menu_move_off is set
menu_scroll is set
message_cache_clean is unset
message_cachedir="~/.mutt/cache/bodies"
message_format="%s"
meta_key is unset
metoo is unset
mh_purge is unset
mh_seq_flagged="flagged"
mh_seq_replied="replied"
mh_seq_unseen="unseen"
mime_forward=ask-no
mime_forward_decode is unset
mime_forward_rest=yes
mime_subject is set
mix_entry_format="%4n %c %-16s %a"
mixmaster="mixmaster-filter"
move=no
narrow_tree is unset
net_inc=10
new_mail_command=""
news_cache_dir="~/.mutt"
news_server=""
newsgroups_charset="utf-8"
newsrc="~/.newsrc"
nntp_authenticators=""
nntp_context=1000
nntp_listgroup is set
nntp_load_description is set
nntp_user=""
nntp_pass=""
nntp_poll=60
nm_open_timeout=5
nm_default_uri=""
nm_hidden_tags="unread,draft,flagged,passed,replied,attachment,signed,encrypted"
nm_exclude_tags=""
nm_unread_tag="unread"
nm_db_limit=0
nm_query_type="messages"
nm_record is unset
nm_record_tags=""
nm_query_window_duration=0
nm_query_window_timebase="week"
nm_query_window_current_search=""
nm_query_window_current_position=0
pager="builtin"
pager_context=5
pager_format="-%Z- %C/%m: %-20.20n   %s%*  -- (%P)"
pager_index_lines=8
pager_stop is set
pgp_auto_decode is unset
pgp_autoinline is unset
pgp_check_exit is set
pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0 --pinentry-mode=loopback? --armor --textmode --clearsign %?a?-u %a? %f"
pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0 --pinentry-mode=loopback? --no-verbose --quiet --batch --output - %f"
pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0 --pinentry-mode=loopback? --no-verbose --quiet --batch --output - %f"
pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY"
pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0 --pinentry-mode=loopback? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
pgp_export_command="gpg --no-verbose --export --armor %r"
pgp_getkeys_command=""
pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
pgp_ignore_subkeys is set
pgp_import_command="gpg --no-verbose --import %f"
pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r"
pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r"
pgp_long_ids is set
pgp_mime_auto=ask-yes
pgp_replyinline is unset
pgp_retainable_sigs is unset
pgp_show_unusable is set
pgp_sign_as="0x22362F2657A3AEAD"
pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0 --pinentry-mode=loopback? --armor --detach-sign --textmode %?a?-u %a? %f"
pgp_sort_keys=address
pgp_strict_enc is set
pgp_timeout=1800
pgp_use_gpg_agent is unset
pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
pipe_decode is unset
pipe_sep="\n"
pipe_split is unset
pop_auth_try_all is set
pop_authenticators=""
pop_checkinterval=60
pop_delete=ask-no
pop_host=""
pop_last is unset
pop_pass=""
pop_reconnect=ask-yes
pop_user=""
post_indent_string=""
post_moderated=ask-yes
postpone=ask-yes
postponed="=[Gmail].Drafts"
postpone_encrypt is unset
postpone_encrypt_as=""
preconnect=""
print=ask-no
print_command="lpr"
print_decode is set
print_split is unset
prompt_after is set
query_command="lbdbq %s 2>/dev/null"
query_format="%4c %t %-25.25a %-25.25n %?e?(%e)?"
quit=yes
quote_regexp="^([ \t]*[|>:}#])+"
read_inc=10
read_only is unset
realname="Andrey Skvortsov"
recall=ask-yes
record=""
reflow_space_quotes is set
reflow_text is set
reflow_wrap=78
reply_regexp="^(re([\\[0-9\\]+])*|aw):[ \t]*"
reply_self is unset
reply_to=ask-yes
reply_with_xorig is unset
resolve is set
resume_draft_files is unset
resume_edited_draft_files is set
reverse_alias is set
reverse_name is unset
reverse_realname is set
rfc2047_parameters is set
save_address is unset
save_empty is set
save_history=0
save_name is unset
score is set
score_threshold_delete=-1
score_threshold_flag=9999
score_threshold_read=-1
search_context=0
send_charset="utf-8"
sendmail="~/bin/msmtp-lbdb.sh"
sendmail_wait=0
shell="/bin/bash"
save_unsubscribed is unset
show_new_news is set
show_only_unread is unset
sidebar_delim_chars="/."
sidebar_divider_char=""
sidebar_folder_indent is unset
sidebar_format="%B%*  %n"
sidebar_indent_string="  "
sidebar_new_mail_only is unset
sidebar_next_new_wrap is unset
sidebar_on_right is unset
sidebar_short_path is unset
sidebar_sort_method=mailbox-order
sidebar_visible is unset
sidebar_width=30
sig_dashes is set
sig_on_top is unset
signature="~/.mutt/sign/English"
simple_search="~f %s | ~s %s"
skip_quoted_offset=0
sleep_time=1
smart_wrap is set
smileys="(>From )|(:[-^]?[][)(><}{|/DP])"
smime_ask_cert_label is set
smime_ca_location="/etc/ssl/certs/ca-certificates.crt"
smime_certificates="~/.smime/certificates"
smime_decrypt_command="openssl cms -decrypt -passin stdin -inform DER -in %f -inkey %k -recip %c"
smime_decrypt_use_default_key is set
smime_default_key=""
smime_encrypt_command="openssl smime -encrypt -%a -outform DER -in %f %c"
smime_encrypt_self=no
smime_encrypt_with="aes256"
smime_get_cert_command="openssl pkcs7 -print_certs -in %f"
smime_get_cert_email_command="openssl x509 -in %f -noout -email"
smime_get_signer_cert_command="openssl smime -verify -in %f -noverify -signer %c -out /dev/null"
smime_import_cert_command="smime_keys add_cert %f"
smime_is_default is unset
smime_keys="~/.smime/keys"
smime_pk7out_command="openssl smime -verify -in %f -noverify -pk7out"
smime_sign_command="openssl smime -sign -md %d -signer %c -inkey %k -passin stdin -in %f -certfile %i -outform DER"
smime_sign_digest_alg="sha256"
smime_sign_opaque_command=""
smime_timeout=300
smime_verify_command="openssl smime -verify -inform DER -in %s %C -content %f"
smime_verify_opaque_command="openssl smime -verify -inform DER -in %s %C || openssl smime -verify -inform DER -in %s -noverify 2>/dev/null"
smtp_authenticators=""
smtp_pass=""
smtp_url=""
sort=threads
sort_alias=alias
sort_aux=reverse-last-date-received
sort_browser=alpha
sort_re is set
spam_separator=","
spoolfile="=INBOX"
ssl_ca_certificates_file="/etc/ssl/certs/ca-certificates.crt"
ssl_client_cert=""
ssl_force_tls is unset
ssl_min_dh_prime_bits=0
ssl_starttls=yes
ssl_use_sslv3 is unset
ssl_use_tlsv1 is set
ssl_use_tlsv1_1 is set
ssl_use_tlsv1_2 is set
ssl_verify_dates is set
ssl_verify_host is set
ssl_ciphers=""
status_chars="-*%A"
status_format="-%r-NeoMutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
status_on_top is unset
strict_threads is set
suspend is set
text_flowed is unset
thorough_search is set
thread_received is unset
tilde is set
time_inc=250
timeout=600
tmpdir="/tmp"
to_chars=" +TCFL"
flag_chars="*!DdrONon- "
trash="=[Gmail].Trash"
ts_icon_format="M%?n?AIL&ail?"
ts_enabled is unset
ts_status_format="NeoMutt with %?m?%m messages&no messages?%?n? [%n NEW]?"
tunnel=""
uncollapse_jump is unset
uncollapse_new is set
use_8bitmime is unset
use_domain is set
use_envelope_from is set
use_from is set
use_ipv6 is set
user_agent is set
visual="edit.sh"
vfolder_format="%2C %?n?%4n/&     ?%4m %f"
virtual_spoolfile is unset
wait_key is set
weed is set
wrap=0
wrap_headers=78
wrap_search is set
wrapmargin=0
write_bcc is set
write_inc=10
xlabel_delimiter=""
x_comment_to is unset
collapse_all is unset


-- Package-specific info:
NeoMutt 20170306 (1.8.0)
Copyright (C) 1996-2016 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 4.10.0 (x86_64)
libidn: 1.33 (compiled with 1.33)
hcache backends: tokyocabinet

Compiler:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-8' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170221 (Debian 6.3.0-8) 

Configure options: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=\${prefix}/include' '--mandir=\${prefix}/share/man' '--infodir=\${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=\${prefix}/lib/x86_64-linux-gnu' '--libexecdir=\${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-mailpath=/var/mail' '--enable-compressed' '--enable-debug' '--enable-fcntl' '--enable-hcache' '--enable-gpgme' '--enable-imap' '--enable-smtp' '--enable-pop' '--enable-sidebar' '--enable-nntp' '--enable-notmuch' '--disable-fmemopen' '--with-curses' '--with-gnutls' '--with-gss' '--with-idn' '--with-mixmaster' '--with-sasl' '--without-gdbm' '--without-bdb' '--without-qdbm' '--with-tokyocabinet' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/mutt-ptQJRy/mutt-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'

Compilation CFLAGS: -Wall -pedantic -Wno-long-long -g -O2 -fdebug-prefix-map=/build/mutt-ptQJRy/mutt-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -fno-delete-null-pointer-checks

Compile options:
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME 
+DEBUG +DL_STANDALONE +ENABLE_NLS -EXACT_ADDRESS -HOMESPOOL -LOCALES_HACK 
-SUN_ATTACHMENT +HAVE_BKGDSET +HAVE_COLOR +HAVE_CURS_SET +HAVE_FUTIMENS 
+HAVE_GETADDRINFO +HAVE_GETSID +HAVE_ICONV +HAVE_LANGINFO_CODESET 
+HAVE_LANGINFO_YESEXPR +HAVE_LIBIDN +HAVE_META +HAVE_REGCOMP +HAVE_RESIZETERM 
+HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_WC_FUNCS +ICONV_NONTRANS 
+USE_COMPRESSED +USE_DOTLOCK +USE_FCNTL -USE_FLOCK -USE_FMEMOPEN -USE_GNU_REGEX 
+USE_GSS +USE_HCACHE +USE_IMAP +USE_NOTMUCH +USE_NNTP +USE_POP +USE_SASL 
+USE_SETGID +USE_SIDEBAR +USE_SMTP +USE_SSL_GNUTLS -USE_SSL_OPENSSL 
-DOMAIN
MIXMASTER="mixmaster"
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"

patch-attach-headers-color-neomutt
patch-compose-to-sender-neomutt
patch-compress-neomutt
patch-cond-date-neomutt
patch-encrypt-to-self-neomutt
patch-fmemopen-neomutt
patch-forgotten-attachments-neomutt
patch-forwref-neomutt
patch-ifdef-neomutt
patch-index-color-neomutt
patch-initials-neomutt
patch-keywords-neomutt
patch-kyoto-neomutt
patch-limit-current-thread-neomutt
patch-lmdb-neomutt
patch-multiple-fcc-neomutt
patch-nested-if-neomutt
patch-new-mail-neomutt
patch-nntp-neomutt
patch-notmuch-neomutt
patch-progress-neomutt
patch-quasi-delete-neomutt
patch-reply-with-xorig-neomutt
patch-sensible-browser-neomutt
patch-sidebar-neomutt
patch-skip-quoted-neomutt
patch-status-color-neomutt
patch-timeout-neomutt
patch-tls-sni-neomutt
patch-trash-neomutt

To learn more about NeoMutt, visit: http://www.neomutt.org/
If you find a bug in NeoMutt, please raise an issue at:
    https://github.com/neomutt/neomutt/issues
or send an email to: <neomutt-devel at neomutt.org>


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0 (SMP w/8 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mutt depends on:
ii  libassuan0        2.4.3-2
ii  libc6             2.24-10
ii  libcomerr2        1.43.4-2
ii  libgnutls30       3.5.8-5
ii  libgpg-error0     1.26-2
ii  libgpgme11        1.8.0-3+b2
ii  libgssapi-krb5-2  1.15-1
ii  libidn11          1.33-1
ii  libk5crypto3      1.15-1
ii  libkrb5-3         1.15-1
ii  libncursesw5      6.0+20161126-1
ii  libnotmuch4       0.23.7-3
ii  libsasl2-2        2.1.27~101-g0780600+dfsg-3
ii  libtinfo5         6.0+20161126-1
ii  libtokyocabinet9  1.4.48-11+b1

Versions of packages mutt recommends:
ii  libsasl2-modules  2.1.27~101-g0780600+dfsg-3
ii  locales           2.24-10
ii  mime-support      3.60

Versions of packages mutt suggests:
ii  aspell                                     0.60.7~20110707-3+b2
ii  ca-certificates                            20161130
ii  exim4-daemon-light [mail-transport-agent]  4.89-2
ii  gnupg                                      2.1.18-6
ii  ispell                                     3.4.00-5
pn  mixmaster                                  <none>
ii  openssl                                    1.1.0e-1
pn  urlview                                    <none>

Versions of packages mutt is related to:
ii  mutt  1.8.0-1

-- no debconf information



More information about the Pkg-mutt-maintainers mailing list