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@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