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

Re: [Mutt] #3185: mutt-1.5.19: reverse_alias broken



#3185: mutt-1.5.19: reverse_alias broken
----------------------------------------------+-----------------------------
  Reporter:  Thomas Wiegner <wiegner@xxxxxx>  |       Owner:  mutt-dev
      Type:  defect                           |      Status:  new     
  Priority:  major                            |   Milestone:          
 Component:  mutt                             |     Version:  1.5.19  
Resolution:  fixed                            |    Keywords:          
----------------------------------------------+-----------------------------
Changes (by pdmef):

  * version:  => 1.5.19


Old description:

> {{{
> Package: mutt
> Version: 1.5.19
> Severity: normal
>
> -- Please type your report below this line
>
> The reverse_alias feature in mutt is partially broken since
> version 1.5.19. The email addresses are no longer matched case
> insensitive against the defined alias. Only for a direct case
> sensitive match the feature works, which makes no sense, as
> email addresses are not case sensitive.
>
> I tested this behavior with slang/ncurses and on linux/solaris2.8
>

> -- 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
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-
> shared --with-system-zlib --libexecdir=/usr/lib --without-included-
> gettext --enable-threads=posix --enable-nls --with-gxx-include-
> dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-
> targets=all --enable-checking=release --build=i486-linux-gnu --host=i486
> -linux-gnu --target=i486-linux-gnu
> Thread model: posix
> gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)
>
> - CFLAGS
> -Wall -pedantic -Wno-long-long -g -O2
>
> -- Mutt Version Information
>
> Mutt 1.5.19 (2009-01-05)
> Copyright (C) 1996-2009 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.6.27-11-generic (i686)
> slang: 20103
> Compile options:
> -DOMAIN
> -DEBUG
> -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL
> -USE_FLOCK
> -USE_POP  -USE_IMAP  -USE_SMTP
> -USE_SSL_OPENSSL  -USE_SSL_GNUTLS  -USE_SASL  -USE_GSS  -HAVE_GETADDRINFO
> +HAVE_REGCOMP  -USE_GNU_REGEX
> +HAVE_COLOR  -HAVE_START_COLOR  -HAVE_TYPEAHEAD  -HAVE_BKGDSET
> -HAVE_CURS_SET  -HAVE_META  -HAVE_RESIZETERM
> +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME
> -CRYPT_BACKEND_GPGME
> -EXACT_ADDRESS  -SUN_ATTACHMENT
> +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
> +HAVE_LANGINFO_YESEXPR
> +HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  -USE_HCACHE
> ISPELL="/usr/bin/ispell"
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/share/mutt"
> SYSCONFDIR="/usr/etc"
> EXECSHELL="/bin/sh"
> -MIXMASTER
> To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
> To report a bug, please visit http://bugs.mutt.org/.
> }}}

New description:

 {{{
 Package: mutt
 Version: 1.5.19
 Severity: normal

 -- Please type your report below this line

 The reverse_alias feature in mutt is partially broken since
 version 1.5.19. The email addresses are no longer matched case
 insensitive against the defined alias. Only for a direct case
 sensitive match the feature works, which makes no sense, as
 email addresses are not case sensitive.

 I tested this behavior with slang/ncurses and on linux/solaris2.8


 -- 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
 Using built-in specs.
 Target: i486-linux-gnu
 Configured with: ../src/configure -v --with-pkgversion='Ubuntu
 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
 --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-
 shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
 --enable-threads=posix --enable-nls --with-gxx-include-
 dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu
 --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-
 targets=all --enable-checking=release --build=i486-linux-gnu --host=i486
 -linux-gnu --target=i486-linux-gnu
 Thread model: posix
 gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)

 - CFLAGS
 -Wall -pedantic -Wno-long-long -g -O2

 -- Mutt Version Information

 Mutt 1.5.19 (2009-01-05)
 Copyright (C) 1996-2009 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.6.27-11-generic (i686)
 slang: 20103
 Compile options:
 -DOMAIN
 -DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL
 -USE_FLOCK
 -USE_POP  -USE_IMAP  -USE_SMTP
 -USE_SSL_OPENSSL  -USE_SSL_GNUTLS  -USE_SASL  -USE_GSS  -HAVE_GETADDRINFO
 +HAVE_REGCOMP  -USE_GNU_REGEX
 +HAVE_COLOR  -HAVE_START_COLOR  -HAVE_TYPEAHEAD  -HAVE_BKGDSET
 -HAVE_CURS_SET  -HAVE_META  -HAVE_RESIZETERM
 +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME
 -CRYPT_BACKEND_GPGME
 -EXACT_ADDRESS  -SUN_ATTACHMENT
 +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
 +HAVE_LANGINFO_YESEXPR
 +HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  -USE_HCACHE
 ISPELL="/usr/bin/ispell"
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="/var/mail"
 PKGDATADIR="/usr/share/mutt"
 SYSCONFDIR="/usr/etc"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
 To report a bug, please visit http://bugs.mutt.org/.
 }}}

--

Comment:

 Confirmed, changeset [77e25415a08a] is to blame which changes from case-
 insensitive list lookup to faster case-sensitive hash lookup.

 I'm not sure how to fix this. My current favorite is to extend the hash
 table to support case-insensitive keys (when the table is created,
 internally with callbacks).

 Ideas?

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