Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486528 - mail-client/mutt - mutt-1.5.21-gentoo-patches-r{15,16}.tar.bz2 overwrites .asc attachments with "Version: 1"
Summary: mail-client/mutt - mutt-1.5.21-gentoo-patches-r{15,16}.tar.bz2 overwrites .as...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
Depends on:
Reported: 2013-09-30 02:40 UTC by emacsray
Modified: 2015-02-24 12:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description emacsray 2013-09-30 02:40:41 UTC
See "Steps to Reproduce"

Reproducible: Always

Steps to Reproduce:
1. compose a new mail message
2. enclose an attachment named a.asc (its mimetype will be recognized as application/pgp-encrypted)
3. send the mail
4. look into the copy of the sent out message in $record Maildir and find its content was changed to "Version: 1"
Comment 1 Fabian Groffen gentoo-dev 2013-09-30 19:44:20 UTC
from sendlib.c:

  /* This is pretty gross, but it's the best solution for now... */
  if ((WithCrypto & APPLICATION_PGP)
      && a->type == TYPEAPPLICATION
      && mutt_strcmp (a->subtype, "pgp-encrypted") == 0)
    fputs ("Version: 1\n", f);
    return 0;

hence it feels "intended" and was introduced in

changeset:   3267:601c6ba383ef
branch:      HEAD
user:        Werner Koch <>
date:        Tue Jan 21 12:33:41 2003 +0000

Not sure what we can do about this, really...
Comment 2 Fabian Groffen gentoo-dev 2015-02-24 12:03:21 UTC
This is beyond me, perhaps upstream knows what would be a proper way to fix this.