<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #1208: pgp_getkeys_command uses email address in %r



#1208: pgp_getkeys_command uses email address in %r
------------------------------------------------------+---------------------
  Reporter:  "Conrad Heiney" <conrad@xxxxxxxxxxxxxx>  |       Owner:  mutt-dev
      Type:  defect                                   |      Status:  new     
  Priority:  minor                                    |   Milestone:          
 Component:  crypto                                   |     Version:  1.5.19  
Resolution:                                           |    Keywords:          
------------------------------------------------------+---------------------
Changes (by pdmef):

  * component:  mutt => crypto


Old description:

> {{{
> Package: mutt
> Version: 1.3.99i
> Severity: normal
>
> -- Please type your report below this line
> When attempting to use pgp_getkeys_command in my muttrc, gpg routinely
> fails to retrieve keys from keyserver with the error that "$email_address
> is not a valid key ID". Upon reading the muttrc man page, it appears that
> %r should be the key ID, but for some reason mutt is passing the email
> address rather than a key to the gpg --recv-keys command.
>
> It appears based on the documentation that mutt should be passing the
> actual Key ID in %r rather than the email address so that this will work
> as described. Please forgive me if I am insane or wrong.
>

>
> -- Build environment information
>
> (Note: This is the build environment installed on the system
> muttbug is run on.  Information may or may not match the environment
> used to build mutt.)
>
> - gcc version information
> gcc
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)
>
> - CFLAGS
> -Wall -pedantic -O2 -pipe
>
> -- Mutt Version Information
>
> Mutt 1.3.99i (2002-05-02)
> Copyright (C) 1996-2001 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 2.4.19-pre8-ac5 (i686) [using ncurses 5.2]
> Compile options:
> -DOMAIN
> -DEBUG
> +HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE
> +USE_FCNTL  -USE_FLOCK
> -USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL
> +HAVE_REGCOMP  -USE_GNU_REGEX
> +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
> +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
> +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
> +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
> +HAVE_LANGINFO_YESEXPR
> +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  -HAVE_GETADDRINFO
> ISPELL="/usr/bin/ispell"
> SENDMAIL="/var/qmail/bin/sendmail"
> MAILPATH="./Maildir/"
> PKGDATADIR="/usr/local/share/mutt"
> SYSCONFDIR="/usr/local/etc"
> EXECSHELL="/bin/sh"
> -MIXMASTER
> To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
> To report a bug, please use the flea(1) utility.
>

> --- Begin /home/conrad/.muttrc
> set realname = "Conrad Heiney"
> set from = conrad@xxxxxxxxxxxxxx
> set beep = no
> set delete = yes
> set tmpdir = "/tmp"
> set ispell = /usr/bin/ispell
> set spoolfile = "$HOME/Maildir/"
> set sort = from
> set visual = vim
> set markers = no
> set signature = "$HOME/.signature|"
> set fast_reply = yes
> set include = yes
> set move = no
> set mbox = "$HOME/Maildir/"
> set mbox_type = Maildir
> set confirmappend = no
> set confirmcreate = no
> set default_hook = "~f %s !~P | (~P ~C %s)"
> set fcc_attach = no
> set force_name = yes
> set save_address = no
> set save_name = yes
> set envelope_from = yes
> set rfc2047_parameters = yes
> set mailcap_path = /etc/mailcap
> set implicit_autoview = yes
> set pgp_decode_command="/usr/local/bin/pgpewrap gpg %?p?--passphrase-fd
> 0? --no-verbose --batch --output - %f"
> set pgp_verify_command="/usr/local/bin/pgpewrap gpg --no-verbose --batch
> --output - --verify %s %f"
> set pgp_decrypt_command="/usr/local/bin/pgpewrap gpg --passphrase-fd 0
> --no-verbose --batch --output - %f"
> set pgp_sign_command="/usr/local/bin/pgpewrap gpg --no-verbose --batch
> --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a?
> %f"
> set pgp_clearsign_command="/usr/local/bin/pgpewrap gpg --no-verbose
> --batch --output - --passphrase-fd 0 --armor --textmode --clearsign
> %?a?-u %a? %f"
> set pgp_encrypt_only_command="/usr/local/bin/pgpewrap gpg --batch --quiet
> --no-verbose --output - --encrypt --textmode --armor --always-trust
> --encrypt-to 445FFDD4 -- -r %r -- %f"
> set pgp_encrypt_sign_command="/usr/local/bin/pgpewrap gpg --passphrase-fd
> 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign
> %?a?-u %a? --armor --always-trust --encrypt-to 445FFDD4 -- -r %r -- %f"
> set pgp_import_command="/usr/local/bin/pgpewrap gpg --no-verbose --import
> -v %f"
> set pgp_export_command="/usr/local/bin/pgpewrap gpg --no-verbose --export
> --armor %r"
> set pgp_verify_key_command="/usr/local/bin/pgpewrap gpg --no-verbose
> --batch --fingerprint --check-sigs %r"
> set pgp_list_pubring_command="/usr/local/bin/pgpewrap gpg --no-verbose
> --batch --with-colons --list-keys %r"
> set pgp_list_secring_command="/usr/local/bin/pgpewrap gpg --no-verbose
> --batch --with-colons --list-secret-keys %r"
> set pgp_autosign=yes
> set pgp_sign_as=445FFDD4
> set pgp_replyencrypt=yes
> set pgp_timeout=1800
> set pgp_good_sign="^gpg: Good signature from"
> set pgp_getkeys_command="/usr/local/bin/pgpewrap gpg --no-verbose --batch
> --keyserver wwwkeys.pgp.net --search-keys %r"
> set pgp_show_unusable=no
> my_hdr X-PGP-Fingerprint: F423 F924 7041 97A9 51C3  99FB C959 BA56 445F
> FDD4
> --- End /home/conrad/.muttrc
>

> --- Begin /usr/local/etc/Muttrc
> ignore "from " received content- mime-version status x-status message-id
> ignore sender references return-path lines
> macro index \eb '/~b ' 'search in message bodies'
> macro index \cb |urlview\n 'call urlview to extract URLs out of a
> message'
> macro pager \cb |urlview\n 'call urlview to extract URLs out of a
> message'
> macro generic <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt
> documentation"
> macro index   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt
> documentation"
> macro pager   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt
> documentation"
> --- End /usr/local/etc/Muttrc
>

> Received: (at submit) by bugs.guug.de; 13 Dec 2002 23:55:01 +0000
> From md@xxxxxxxx Sat Dec 14 00:55:00 2002
> Received: from attila.bofh.it ([213.92.8.2] ident=postfix)
>         by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
>         id 18Mze0-0004hy-00
>         for <submit@xxxxxxxxxxxx>; Sat, 14 Dec 2002 00:55:00 +0100
> Received: by attila.bofh.it (Postfix, from userid 10)
>         id CF22F5F74F; Sat, 14 Dec 2002 00:56:44 +0100 (CET)
> Received: by wonderland.linux.it (Postfix/Md, from userid 1001)
>         id 5FBA033B2C; Sat, 14 Dec 2002 00:20:50 +0100 (CET)
> From: Marco d'Itri <md@xxxxxxxx>
> To: submit@xxxxxxxxxxxx
> Subject: mutt: %r contains e-mail adress instead of key id
> X-GUUG-CC: 172960@xxxxxxxxxxxxxxx
> Message-Id: <20021213232050.5FBA033B2C@xxxxxxxxxxxxxxxxxxx>
> Date: Sat, 14 Dec 2002 00:20:50 +0100 (CET)
>
> Package: mutt
> Version: 1.4.0-5
> Severity: minor
>
> [NOTE: this bug report has been submitted to the debian BTS as
> Bug#172960.
> Please Cc all your replies to 172960@xxxxxxxxxxxxxxx .]
>
> From: Martin Wuertele <maxx@xxxxxxxxxx>
> Subject: mutt: %r contains e-mail adress instead of key id
> Date:
>
> The manual states that pgp_getkeys_command need %r with %r being they
> passed on key ID or a list of key IDs.
>
> However %r unfortunately does not contain the key ID but the e-mail
> address of they key and this breaks gpg --recv-keys.
>
> -- System Information:
> Debian Release: testing/unstable
> Architecture: i386
> Kernel: Linux vision 2.4.20 #1 Sat Nov 30 11:22:24 CET 2002 i686
> Locale: LANG=3DC, LC_CTYPE=3Dde_AT@euro
>
> Versions of packages mutt depends on:
> ii  libc6                     2.3.1-1        GNU C Library: Shared
> librarie=
> s an
> ii  libncurses5               5.3.20021109-1 Shared libraries for
> terminal =
> hand
> ii  libsasl7                  1.5.27-3.3     Authentication abstraction
> lib=
> rary
> ii  postfix [mail-transport-a 1.1.11-2       A high-performance mail
> transp=
> ort =
>

> -- no debconf information
>

> yours Martin
> --
> <maxx@xxxxxxxxxx> --------------------------------- NO HTML MAILS PLEASE
>            GPG / PGP encrypted and signed messages preferred
>

>
> Received: (at submit) by bugs.guug.de; 28 Apr 2003 17:42:08 +0000
> From freddy@xxxxxxxxxxxxxxxxx Mon Apr 28 19:42:08 2003
> Received: from murphy.planlos.de ([213.73.92.60] ident=root)
>         by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
>         id 19ACdZ-0004AO-00
>         for <submit@xxxxxxxxxxxx>; Mon, 28 Apr 2003 19:41:57 +0200
> Received: from murphy.planlos.de (racoon@localhost [127.0.0.1])
>         by murphy.planlos.de (8.12.8/8.12.8) with ESMTP id h3SHhorh044933
>         for <submit@xxxxxxxxxxxx>; Mon, 28 Apr 2003 19:43:53 +0200 (CEST)
>         (envelope-from freddy@xxxxxxxxxxxxxxxxx)
> Received: (from freddy@localhost)
>         by murphy.planlos.de (8.12.8/8.12.9/Submit) id h3SHhoMO044932;
>         Mon, 28 Apr 2003 19:43:50 +0200 (CEST)
> Date: Mon, 28 Apr 2003 19:43:50 +0200 (CEST)
> Message-Id: <200304281743.h3SHhoMO044932@xxxxxxxxxxxxxxxxx>
> Subject: mutt-1.4.1i: pgp_getkeys_command default doesn't work
> To: submit@xxxxxxxxxxxx
> From: Frank Altpeter <frank@xxxxxxxxxxx>
> X-No-Archive: YES
>
> Package: mutt
> Version: 1.4.1i
> Severity: normal
>
> -- Please type your report below this line
>
> When setting the variable pgp_getkeys_command to the AFAIK default value
> of "gpg --no-verbose --batch --recv-keys %r", the operation fails,
> because instead of containing the KeyID, the placeholder %r contains the
> email address of the sender.
>
> So, if getting an email from frank@xxxxxxxxxxx with a new PGP key, mutt
> tries to execute "gpg --no-verbose --batch --recv-keys frank@xxxxxxxxxxx"
> instead of "gpg --no-verbose --batch --recv-keys 0xF128ADF3"
>
> According to the muttrc manpage, %r should contain the Key ID.
>
> The default configuration is taken from the example gpg.rc from a
> slightly older mutt version, but that shouldn't make a difference, since
> it would work if %r would contain the correct information.
>

>
> -- Build environment information
>
> (Note: This is the build environment installed on the system
> muttbug is run on.  Information may or may not match the environment
> used to build mutt.)
>
> - gcc version information
> cc -I/usr/local/include
> Using builtin specs.
> gcc version 2.95.4 20020320 [FreeBSD]
>
> - CFLAGS
> -Wall -O -pipe
>
> -- Mutt Version Information
>
> Mutt 1.4.1i (2003-03-19)
> Copyright (C) 1996-2002 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: FreeBSD 4.8-STABLE (i386) [using ncurses 5.1]
> Compile options:
> -DOMAIN
> -DEBUG
> -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE
> -USE_FCNTL  +USE_FLOCK
> +USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL
> +HAVE_REGCOMP  -USE_GNU_REGEX
> +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
> +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
> +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
> +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  -HAVE_WC_FUNCS
> +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR
> +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO
> -ISPELL
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/local/share/mutt"
> SYSCONFDIR="/usr/local/etc"
> EXECSHELL="/bin/sh"
> -MIXMASTER
> To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
> To report a bug, please use the flea(1) utility.
>
> vvv.initials
> patch-1.4.1.rr.compressed.1
>

> >How-To-Repeat:
>
> >Fix:
> }}}

New description:

 {{{
 Package: mutt
 Version: 1.3.99i
 Severity: normal

 -- Please type your report below this line
 When attempting to use pgp_getkeys_command in my muttrc, gpg routinely
 fails to retrieve keys from keyserver with the error that "$email_address
 is not a valid key ID". Upon reading the muttrc man page, it appears that
 %r should be the key ID, but for some reason mutt is passing the email
 address rather than a key to the gpg --recv-keys command.

 It appears based on the documentation that mutt should be passing the
 actual Key ID in %r rather than the email address so that this will work
 as described. Please forgive me if I am insane or wrong.



 -- Build environment information

 (Note: This is the build environment installed on the system
 muttbug is run on.  Information may or may not match the environment
 used to build mutt.)

 - gcc version information
 gcc
 Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
 gcc version 2.95.4 20011002 (Debian prerelease)

 - CFLAGS
 -Wall -pedantic -O2 -pipe

 -- Mutt Version Information

 Mutt 1.3.99i (2002-05-02)
 Copyright (C) 1996-2001 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 2.4.19-pre8-ac5 (i686) [using ncurses 5.2]
 Compile options:
 -DOMAIN
 -DEBUG
 +HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE
 +USE_FCNTL  -USE_FLOCK
 -USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL
 +HAVE_REGCOMP  -USE_GNU_REGEX
 +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
 +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
 +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
 +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
 +HAVE_LANGINFO_YESEXPR
 +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  -HAVE_GETADDRINFO
 ISPELL="/usr/bin/ispell"
 SENDMAIL="/var/qmail/bin/sendmail"
 MAILPATH="./Maildir/"
 PKGDATADIR="/usr/local/share/mutt"
 SYSCONFDIR="/usr/local/etc"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
 To report a bug, please use the flea(1) utility.


 --- Begin /home/conrad/.muttrc
 set realname = "Conrad Heiney"
 set from = conrad@xxxxxxxxxxxxxx
 set beep = no
 set delete = yes
 set tmpdir = "/tmp"
 set ispell = /usr/bin/ispell
 set spoolfile = "$HOME/Maildir/"
 set sort = from
 set visual = vim
 set markers = no
 set signature = "$HOME/.signature|"
 set fast_reply = yes
 set include = yes
 set move = no
 set mbox = "$HOME/Maildir/"
 set mbox_type = Maildir
 set confirmappend = no
 set confirmcreate = no
 set default_hook = "~f %s !~P | (~P ~C %s)"
 set fcc_attach = no
 set force_name = yes
 set save_address = no
 set save_name = yes
 set envelope_from = yes
 set rfc2047_parameters = yes
 set mailcap_path = /etc/mailcap
 set implicit_autoview = yes
 set pgp_decode_command="/usr/local/bin/pgpewrap gpg %?p?--passphrase-fd 0?
 --no-verbose --batch --output - %f"
 set pgp_verify_command="/usr/local/bin/pgpewrap gpg --no-verbose --batch
 --output - --verify %s %f"
 set pgp_decrypt_command="/usr/local/bin/pgpewrap gpg --passphrase-fd 0
 --no-verbose --batch --output - %f"
 set pgp_sign_command="/usr/local/bin/pgpewrap gpg --no-verbose --batch
 --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a?
 %f"
 set pgp_clearsign_command="/usr/local/bin/pgpewrap gpg --no-verbose
 --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u
 %a? %f"
 set pgp_encrypt_only_command="/usr/local/bin/pgpewrap gpg --batch --quiet
 --no-verbose --output - --encrypt --textmode --armor --always-trust
 --encrypt-to 445FFDD4 -- -r %r -- %f"
 set pgp_encrypt_sign_command="/usr/local/bin/pgpewrap gpg --passphrase-fd
 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign
 %?a?-u %a? --armor --always-trust --encrypt-to 445FFDD4 -- -r %r -- %f"
 set pgp_import_command="/usr/local/bin/pgpewrap gpg --no-verbose --import
 -v %f"
 set pgp_export_command="/usr/local/bin/pgpewrap gpg --no-verbose --export
 --armor %r"
 set pgp_verify_key_command="/usr/local/bin/pgpewrap gpg --no-verbose
 --batch --fingerprint --check-sigs %r"
 set pgp_list_pubring_command="/usr/local/bin/pgpewrap gpg --no-verbose
 --batch --with-colons --list-keys %r"
 set pgp_list_secring_command="/usr/local/bin/pgpewrap gpg --no-verbose
 --batch --with-colons --list-secret-keys %r"
 set pgp_autosign=yes
 set pgp_sign_as=445FFDD4
 set pgp_replyencrypt=yes
 set pgp_timeout=1800
 set pgp_good_sign="^gpg: Good signature from"
 set pgp_getkeys_command="/usr/local/bin/pgpewrap gpg --no-verbose --batch
 --keyserver wwwkeys.pgp.net --search-keys %r"
 set pgp_show_unusable=no
 my_hdr X-PGP-Fingerprint: F423 F924 7041 97A9 51C3  99FB C959 BA56 445F
 FDD4
 --- End /home/conrad/.muttrc


 --- Begin /usr/local/etc/Muttrc
 ignore "from " received content- mime-version status x-status message-id
 ignore sender references return-path lines
 macro index \eb '/~b ' 'search in message bodies'
 macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
 macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
 macro generic <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt
 documentation"
 macro index   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt
 documentation"
 macro pager   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt
 documentation"
 --- End /usr/local/etc/Muttrc


 Received: (at submit) by bugs.guug.de; 13 Dec 2002 23:55:01 +0000
 From md@xxxxxxxx Sat Dec 14 00:55:00 2002
 Received: from attila.bofh.it ([213.92.8.2] ident=postfix)
         by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
         id 18Mze0-0004hy-00
         for <submit@xxxxxxxxxxxx>; Sat, 14 Dec 2002 00:55:00 +0100
 Received: by attila.bofh.it (Postfix, from userid 10)
         id CF22F5F74F; Sat, 14 Dec 2002 00:56:44 +0100 (CET)
 Received: by wonderland.linux.it (Postfix/Md, from userid 1001)
         id 5FBA033B2C; Sat, 14 Dec 2002 00:20:50 +0100 (CET)
 From: Marco d'Itri <md@xxxxxxxx>
 To: submit@xxxxxxxxxxxx
 Subject: mutt: %r contains e-mail adress instead of key id
 X-GUUG-CC: 172960@xxxxxxxxxxxxxxx
 Message-Id: <20021213232050.5FBA033B2C@xxxxxxxxxxxxxxxxxxx>
 Date: Sat, 14 Dec 2002 00:20:50 +0100 (CET)

 Package: mutt
 Version: 1.4.0-5
 Severity: minor

 [NOTE: this bug report has been submitted to the debian BTS as Bug#172960.
 Please Cc all your replies to 172960@xxxxxxxxxxxxxxx .]

 From: Martin Wuertele <maxx@xxxxxxxxxx>
 Subject: mutt: %r contains e-mail adress instead of key id
 Date:

 The manual states that pgp_getkeys_command need %r with %r being they
 passed on key ID or a list of key IDs.

 However %r unfortunately does not contain the key ID but the e-mail
 address of they key and this breaks gpg --recv-keys.

 -- System Information:
 Debian Release: testing/unstable
 Architecture: i386
 Kernel: Linux vision 2.4.20 #1 Sat Nov 30 11:22:24 CET 2002 i686
 Locale: LANG=3DC, LC_CTYPE=3Dde_AT@euro

 Versions of packages mutt depends on:
 ii  libc6                     2.3.1-1        GNU C Library: Shared
 librarie=
 s an
 ii  libncurses5               5.3.20021109-1 Shared libraries for terminal
 =
 hand
 ii  libsasl7                  1.5.27-3.3     Authentication abstraction
 lib=
 rary
 ii  postfix [mail-transport-a 1.1.11-2       A high-performance mail
 transp=
 ort =


 -- no debconf information


 yours Martin
 --
 <maxx@xxxxxxxxxx> --------------------------------- NO HTML MAILS PLEASE
            GPG / PGP encrypted and signed messages preferred



 Received: (at submit) by bugs.guug.de; 28 Apr 2003 17:42:08 +0000
 From freddy@xxxxxxxxxxxxxxxxx Mon Apr 28 19:42:08 2003
 Received: from murphy.planlos.de ([213.73.92.60] ident=root)
         by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
         id 19ACdZ-0004AO-00
         for <submit@xxxxxxxxxxxx>; Mon, 28 Apr 2003 19:41:57 +0200
 Received: from murphy.planlos.de (racoon@localhost [127.0.0.1])
         by murphy.planlos.de (8.12.8/8.12.8) with ESMTP id h3SHhorh044933
         for <submit@xxxxxxxxxxxx>; Mon, 28 Apr 2003 19:43:53 +0200 (CEST)
         (envelope-from freddy@xxxxxxxxxxxxxxxxx)
 Received: (from freddy@localhost)
         by murphy.planlos.de (8.12.8/8.12.9/Submit) id h3SHhoMO044932;
         Mon, 28 Apr 2003 19:43:50 +0200 (CEST)
 Date: Mon, 28 Apr 2003 19:43:50 +0200 (CEST)
 Message-Id: <200304281743.h3SHhoMO044932@xxxxxxxxxxxxxxxxx>
 Subject: mutt-1.4.1i: pgp_getkeys_command default doesn't work
 To: submit@xxxxxxxxxxxx
 From: Frank Altpeter <frank@xxxxxxxxxxx>
 X-No-Archive: YES

 Package: mutt
 Version: 1.4.1i
 Severity: normal

 -- Please type your report below this line

 When setting the variable pgp_getkeys_command to the AFAIK default value
 of "gpg --no-verbose --batch --recv-keys %r", the operation fails,
 because instead of containing the KeyID, the placeholder %r contains the
 email address of the sender.

 So, if getting an email from frank@xxxxxxxxxxx with a new PGP key, mutt
 tries to execute "gpg --no-verbose --batch --recv-keys frank@xxxxxxxxxxx"
 instead of "gpg --no-verbose --batch --recv-keys 0xF128ADF3"

 According to the muttrc manpage, %r should contain the Key ID.

 The default configuration is taken from the example gpg.rc from a
 slightly older mutt version, but that shouldn't make a difference, since
 it would work if %r would contain the correct information.



 -- Build environment information

 (Note: This is the build environment installed on the system
 muttbug is run on.  Information may or may not match the environment
 used to build mutt.)

 - gcc version information
 cc -I/usr/local/include
 Using builtin specs.
 gcc version 2.95.4 20020320 [FreeBSD]

 - CFLAGS
 -Wall -O -pipe

 -- Mutt Version Information

 Mutt 1.4.1i (2003-03-19)
 Copyright (C) 1996-2002 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: FreeBSD 4.8-STABLE (i386) [using ncurses 5.1]
 Compile options:
 -DOMAIN
 -DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE
 -USE_FCNTL  +USE_FLOCK
 +USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL
 +HAVE_REGCOMP  -USE_GNU_REGEX
 +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
 +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
 +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
 +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  -HAVE_WC_FUNCS
 +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR
 +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO
 -ISPELL
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="/var/mail"
 PKGDATADIR="/usr/local/share/mutt"
 SYSCONFDIR="/usr/local/etc"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
 To report a bug, please use the flea(1) utility.

 vvv.initials
 patch-1.4.1.rr.compressed.1


 >How-To-Repeat:

 >Fix:
 }}}

--

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/1208#comment:8>
Mutt <http://www.mutt.org/>
The Mutt mail user agent