bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail-fetch-field and gnus-treat-hide-boring-headers problem


From: Klaus Zeitler
Subject: mail-fetch-field and gnus-treat-hide-boring-headers problem
Date: Fri, 14 Feb 2003 15:25:54 +0100 (MET)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (sparc-sun-solaris2.8, Motif Version 2.1.0)
 of 2002-06-24 on sfsw81
configured using `configure  --with-gcc 
--prefix=/vol/freeware/SunOS-5.8/emacs/21.2 
--sharedstatedir=/vol/freeware/SunOS-5.8/emacs/21.2/share 
--with-x-toolkit=motif --x-includes=/usr/openwin/include:/usr/local/gnu/include 
--x-libraries=/usr/openwin/lib:/usr/local/gnu/lib --with-pop'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

when headers like e.g. reply-to are hidden in gnus
(with gnus-treat-hide-boring-headers set to 'head),
mail-fetch-field returns a garbage mail address.

e.g. here's the start of the Gnus article buffer of an email
with the header line 'Reply-to: rms@gnu.org' being hidden i.e. invisible

--- snip ---
From: Richard Stallman <rms@gnu.org>
Subject: Re: my Emacs is broken
To: kzeitler@lucent.com
Date: Wed, 06 Nov 2002 23:48:56 -0500
Reply-to: rms@gnu.org

        Richard> That is peculiar.  If SIGIO works, then x_sync ought to
--- snip ---


for this email calling (mail-fetch-field "reply-to") returns
(if mail is not narrowed to the header):
"       Richard> That is peculiar.  If SIGIO works, ..."

and it returns (with mail narrowed to header):
"Reply-to: rms@gnu.org
"

instead of the expected: "rms@gnu.org"

I know the doc string says:
"The buffer is expected to be narrowed to just the header of the message."
but it normally works also without narrowing. And with a hidden header it
doesn't work properly in either case.


mail-fetch-field uses re-search-forward and then
buffer-substring-no-properties to extract the addresses.
Don't know how this is supposed to work for invisible text.

Maybe the problem is caused by the way gnus makes text invisible
or this is a bug in mail-fetch-field.


Klaus



Recent input:
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<report-emacs-bug>

Recent messages:
(emacs -q --no-site-file)
Loading disp-table...done
Loading tool-bar...done
Loading image...done
Loading tooltip...done
For information about the GNU Project and its goals, type C-h C-p.
Loading emacsbug...done
call-interactively: Text is read-only




reply via email to

[Prev in Thread] Current Thread [Next in Thread]