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

Re: [Mutt] #1580: create-alias requires new-line at the end of



#1580: create-alias requires new-line at the end of config file

Old description:

> {{{
> Package: mutt
> Version: 1.5.4-1
> Severity: normal
>
> -- Please type your report below this line
>
> When you use <create-alias> to add an alias to your muttrc
> and the last character in your muttrc is NOT a new-line, then mutt
> will append the new alias without the needed new-line:
>
>    So my last line...
>
> '...
> set print_command = "a2ps -Email -o - | kprinter"'
>
>    becomes
>
> '...
> set print_command = "a2ps -Email -o - | kprinter"alias joeuser Joe User
> <joeuser@xxxxxxxxxxxxxx>
> '
>
> ... , which is obviously wrong.
>
> Regards,
> Dennis
>

> -- 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-3.3 (GCC) 3.3 (Debian)
> Copyright (C) 2003 Free Software Foundation, Inc.
> Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
> gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FŽÜR SPEZIELLE
> ZWECKE.
>
> - CFLAGS
> -Wall -pedantic -g -O2
>
> -- Mutt Version Information
>
> Mutt 1.5.4i (2003-03-19)
> Copyright (C) 1996-2002 Michael R. Elkins und andere.
> Mutt Žübernimmt KEINERLEI GEWŽÄHRLEISTUNG. Starten Sie `mutt -vv', um
> weitere Details darŽüber zu erfahren. Mutt ist freie Software.
> Sie kŽönnen es unter bestimmten Bedingungen weitergeben; starten Sie
> `mutt -vv' fŽür weitere Details.
>
> System: Linux 2.4.21 (i686) [using ncurses 5.3] [using libidn 0.1.14
> (compiled with 0.1.11)]
> Einstellungen bei der Compilierung:
> -DOMAIN
> -DEBUG
> -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE
> +USE_FCNTL  -USE_FLOCK
> +USE_POP  +USE_IMAP  +IMAP_EDIT_THREADS  -USE_GSS  -USE_SSL  +USE_GNUTLS
> +USE_SASL  -USE_SASL2
> +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  -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_LIBIDN  +HAVE_GETSID
> +HAVE_GETADDRINFO  +USE_CACHE
> ISPELL="/usr/bin/ispell"
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/share/mutt"
> SYSCONFDIR="/etc"
> EXECSHELL="/bin/sh"
> MIXMASTER="mixmaster"
> Um die Entwickler zu kontaktieren, schicken Sie bitte
> eine Nachricht (in englisch) an <mutt-dev@xxxxxxxx>.
> Um einen Bug zu melden, verwenden Sie bitte das Programm flea(1).
>
> patch-1.5.3.Md.gpg_status_fd
> patch-1.3.23.1.ametzler.pgp_good_sign
> patch-1.4.Md.gpg-agent
> patch-1.5.1.cd.edit_threads.9.2
> patch-1.5.3.Md.etc_mailname_gethostbyname
> patch-1.3.27.bse.xtitles.1
> Md.muttbug
> Md.use_debian_editor
> patch-1.4.admcd.gnutlsdlopen.53d
> patch-1.5.4.Z.hcache.8
> patch-1.4.admcd.gnutlsbuild.53d
> patch-1.4.admcd.gnutls.55d
> patch-1.3.24.ats.date_optional.1
> patch-1.5.3.rr.compressed.1
>

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

New description:

 When you use <create-alias> to add an alias to your muttrc
 and the last character in your muttrc is NOT a new-line, then mutt
 will append the new alias without the needed new-line:

    So my last line...

 '...
 set print_command = "a2ps -Email -o - | kprinter"'

    becomes

 '...
 set print_command = "a2ps -Email -o - | kprinter"alias joeuser Joe User
 <joeuser@xxxxxxxxxxxxxx>
 '

 ... , which is obviously wrong.

 Regards,
 Dennis

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/1580#comment:2>