================================================================
Dear Bug Team!
The package mail-extr with its major function mail-extract-address-components,
is extremely useful for parsing mail addresses.
However, it has a major shortcoming: it doesn't parse addresses with
full-names starting (or ending) with non-ascii characters correctly,
such as
(mail-extract-address-components "Olov Ă…gren <foo(a)bar.se>")
=> ("Olov" "foo(a)bar.se")
In principle it is easy to fix, by setting mail-extr-first-letters and
mail-extr-last-letters to include these funny non-ascii letters, but
the patch is inconvenient because of the use of defconst in mail-extr.el.
In order to change the parsing, I not only need to set the constants
*after* loading the package, but I also need to set all constants
which depend on them - which are also defconst's. (These are
mail-extr-bad-dot-pattern, mail-extr-name-pattern,
mail-extr-initial-pattern, and mail-extr-normal-name-pattern).
Please consider changing mail-extr.el to use defvar instead of
defconst. This would make life easier for non-Americans.
Best regards,
--
Bjorn Victor Bjorn.Victor(a)it.uu.se
Dept. of Information Technology tel: +46 18 471 3169
Uppsala University mobile: +46 70 425 0239
Box 337 fax: +46 18 511925
S-751 05 Uppsala, SWEDEN web:
http://user.it.uu.se/~victor
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux
ke.mandrakesoft.com 2.4.18-21mdksmp #1 SMP Thu Jul 4 15:18:52 CEST 2002
i686 unknown unknown GNU/Linux
../../configure 'i386-mandrake-linux' '--prefix=/usr'
'--exec-prefix=/usr' '--package-path=//usr/share/xemacs/'
'--datadir=//usr/share' '--mandir=//usr/share/man/man0'
'--infodir=//usr/share/info' '--libdir=//usr/lib'
'--bindir=//usr/bin' '--infopath=//usr/share/info' '--with-gpm=no'
'--with-sound=none' '--with-pop' '--mail-locking=flock'
'--with-clash-detection' '--with-scrollbars=lucid'
'--with-menubars=lucid' '--with-xpm' '--with-xface'
'--with-png' '--with-jpeg' '--with-tiff' '--dynamic=yes'
'--with-ncurses' '--without-ldap' '--without-postgresql'
'--with-gpm=no' '--with-clash-detection' '--debug=no'
'--error-checking=none' '--prefix=/usr' '--exec-prefix=/usr'
'--with-x11' '--with-tty=yes' '--with-dialogs=athena'
'--with-widgets=athena' '--with-athena=3d' '--with-file-coding'
XEmacs 21.4.12 "Portable Code" configured for `i386-mandrake-linux'.
Compilation / Installation:
Source code location: /home/warly/rpm/BUILD/xemacs-21.4.12
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -O2 -fomit-frame-pointer -pipe -march=i586
-mcpu=pentiumpro
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Databases:
Internationalization:
Compiling in support for file coding.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "flock" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.