* Jean-Christophe Bach <[email protected]> [08.12.2010. @00:14:03 +0100]:
> * walt <[email protected]> [07.12.2010. @11:44:18 -0800]: > > > On 12/06/2010 12:07 PM, Jean-Christophe Bach wrote: > > > * walt<[email protected]> [06.12.2010. @11:44:12 -0800]: > > > > > >> On 12/06/2010 11:11 AM, Jean-Christophe Bach wrote: > > >>> Hi all, > > >>> > > >>> I am using mutt and gnupg for my mail and I do not understand something: > > >>> when I sign and send an email, my gpg signature appears as an attached > > >>> "noname" file while friends have an attached "signature.asc" file. > > >> > > >> I notice that the mutt ebuild reads two different useflags concerning > > >> gpg: > > >> 'crypt' and 'gpg'. Do you have them both enabled? > > > > > > Yes, I do. Should I have only one of them ? > > > > Heh. I have no idea -- but I would try fiddling with them to see what > > difference it may make. > > > > Does your attached 'noname' file contain an appropriate ascii sig? > > Yes, it seems to be OK and friends are able to check my signed mails > without any problem. It is not an important problem, but it is very > strange. > > JC Hi all, I understood why I had the problem and I succeeded in naming my pgp signature with mutt. Here are the details : First, Google is great :) I read somewherethat the variable which allows to name the pgp signature is pgp_mime_signature_filename. However this variable is not in the standard mutt package. By googling a bit more I found the vk.pgp_verbose_mime patch (here: http://www.doorstop.net/projects ). I adapted it to my current version of mutt (~)1.5.21-r1 and I wrote an overlay. After patching, compiling and installing, it works perfectly. For those who are interested in this patch, look at the attached files (patch-1.5.21-r1.vk.pgp_verbose_mime and mutt-1.5.21-r1.ebuild.patch). Then, just add these two lines in your .muttrc file : set pgp_mime_signature_filename="signature.asc" set pgp_mime_signature_description="Digital signature" It would be great if this patch were added to the gentoo-patches when gpg flag is enabled for mutt. Regards, JC
--- /usr/portage/mail-client/mutt/mutt-1.5.21-r1.ebuild 2010-12-07
04:06:02.000000000 +0100
+++ /usr/local/portage/mail-client/mutt/mutt-1.5.21-r1.ebuild 2010-12-11
14:09:46.831191902 +0100
@@ -91,6 +91,9 @@
# impact on the code
use sidebar && epatch "${PATCHDIR}"/sidebar.patch
+ #custom line: added vk.pgp_verbose_mime patch
+ epatch "${FILESDIR}"/patch-1.5.21-r1.vk.pgp_verbose_mime
+
# patch version string for bug reports
sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}"')"/' \
muttlib.c || die "failed patching in Gentoo version"
--- a/globals.h 2009-08-25 21:08:52.000000000 +0200
+++ b/globals.h 2010-12-11 13:34:36.934682237 +0100
@@ -227,6 +227,9 @@
WHERE char *PgpSignAs;
WHERE short PgpTimeout;
WHERE char *PgpEntryFormat;
+/* custom patch */
+WHERE char *PgpMimeSignatureFilename;
+WHERE char *PgpMimeSignatureDescription;
WHERE char *PgpClearSignCommand;
WHERE char *PgpDecodeCommand;
WHERE char *PgpVerifyCommand;
--- a/init.h 2010-09-15 17:39:31.000000000 +0200
+++ b/init.h 2010-12-11 13:32:21.630299369 +0100
@@ -1884,6 +1884,21 @@
** (PGP only)
**
*/
+
+ /* custom patch */
+ { "pgp_mime_signature_filename", DT_STR, R_NONE, UL
&PgpMimeSignatureFilename, UL "signature.asc"},
+ /*
+ ** .pp
+ ** This option sets the filename used for signature parts in PGP/MIME
+ ** signed messages.
+ */
+ { "pgp_mime_signature_description", DT_STR, R_NONE, UL
&PgpMimeSignatureDescription, UL "Digital signature"},
+ /*
+ ** .pp
+ ** This option sets the Content-Description used for signature parts in
+ ** PGP/MIME signed messages.
+ */
+
{ "pgp_retainable_sigs", DT_BOOL, R_NONE, OPTPGPRETAINABLESIG, 0 },
/*
** .pp
--- a/pgp.c 2010-09-13 19:19:55.000000000 +0200
+++ b/pgp.c 2010-12-11 13:32:07.926705504 +0100
@@ -1130,6 +1130,11 @@
t->encoding = ENC7BIT;
t->unlink = 1; /* ok to remove this file after sending. */
+ /* custom patch */
+ mutt_set_parameter ("name", PgpMimeSignatureFilename, &t->parameter);
+ t->description = safe_strdup (PgpMimeSignatureDescription);
+
+
return (a);
}
signature.asc
Description: Digital signature

