From: steve@miranova.com (Steven L. Baur)
Subject: Re: Found no mail! [sgnus 0.17]
Date: 03 Dec 1995 19:52:27 -0800 [thread overview]
Message-ID: <m2enullc3o.fsf@diana.miranova.com> (raw)
In-Reply-To: larsi@ifi.uio.no's message of 03 Dec 1995 17:50:56 -0800
>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:
Lars> steve@miranova.com (Steven L. Baur) writes:
>> If you don't set mail-use-rfc822 to t ...(Emacs can barf)
Lars> How odd. But when does Gnus use functions that have this...
Lars> interesting (yuck) feature?
The one that bit me was gnus-summary-save-in-mail, but anything which
calls rmail-output. The only other function I see doing it is
gnus-author-copy-saver.
Lars> And... why does this happen?
As near as I can tell it strips exactly one level of quotes out at
the most nested level. This works quite well unless someone is
taking full advantage of RFC822 syntax ...
Lars> The documentation to that variable doesn't say anything
Lars> specific about when it's used:
I just did a grep on mail-use-rfc822 in the emacs lisp directories,
and I've changed my mind. It is a Gnus bug. The variable itself is
only read in mail-utils.el, in the function mail-strip-quoted-names,
which is used to build From_ lines.
It is set to t temporarily in rmail.el in rmail-make-in-reply-to-field.
It is also set to t in a pair of (let)s in vm-reply.el and vm-summary.el.
[From vm-reply.el]
(let ((mail-use-rfc822 t))
(and to (setq to (mail-strip-quoted-names to)))
(and cc (setq cc (mail-strip-quoted-names cc)))))
I think you *should* protect all calls to rmail-output in gnus in the
same fashion. (Patch appended).
Lars> mail-use-rfc822's value is nil
Lars> Documentation: *If non-nil, use a full, hairy RFC822 parser
Lars> on mail addresses. Otherwise, (the default) use a smaller,
Lars> somewhat faster, and often correct parser.
It works exactly as advertised.
I vote for correctness since the consequences are so unpleasant.
Patch follows:
===================================================================
RCS file: RCS/ChangeLog,v
retrieving revision 1.8
diff -u -r1.8 ChangeLog
--- 1.8 1995/12/03 20:10:13
+++ ChangeLog 1995/12/04 03:42:21
@@ -1,5 +1,10 @@
Sun Dec 3 11:44:08 1995 Steven L. Baur <steve@miranova.com>
+ * gnus-msg.el (gnus-inews-do-fcc): Protect call to rmail-output by
+ temporarily setting mail-use-rfc822 to t.
+
+ * gnus.el (gnus-summary-save-in-mail): Ditto.
+
* gnus.el (gnus-slave-no-server): New Function.
(gnus-no-server): Add optional slave parameter.
===================================================================
RCS file: RCS/gnus.el,v
retrieving revision 1.9
diff -u -r1.9 gnus.el
--- 1.9 1995/12/03 20:44:46
+++ gnus.el 1995/12/04 03:41:34
@@ -11670,7 +11670,8 @@
(widen)
(if (and (file-readable-p filename) (mail-file-babyl-p filename))
(gnus-output-to-rmail filename)
- (rmail-output filename 1 t t)))))
+ (let ((mail-use-rfc822 t))
+ (rmail-output filename 1 t t))))))
;; Remember the directory name to save articles.
(setq gnus-newsgroup-last-mail filename)))
===================================================================
RCS file: RCS/gnus-msg.el,v
retrieving revision 1.6
diff -u -r1.6 gnus-msg.el
--- 1.6 1995/12/04 03:37:10
+++ gnus-msg.el 1995/12/04 03:39:19
@@ -1286,7 +1286,8 @@
(funcall gnus-author-copy-saver file)
(if (and (file-readable-p file) (mail-file-babyl-p file))
(gnus-output-to-rmail file)
- (rmail-output file 1 t t)))))))))
+ (let ((mail-use-rfc822 t))
+ (rmail-output file 1 t t))))))))))
(defun gnus-inews-path ()
"Return uucp path."
--
steve@miranova.com baur
next prev parent reply other threads:[~1995-12-04 3:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-12-03 5:22 Steven L. Baur
1995-12-03 7:29 ` Steven L. Baur
1995-12-03 22:25 ` Erik Selberg
[not found] ` <m2ivjxllq9.fsf@diana.miranova.com>
[not found] ` <199512040241.SAA20522@meitner.cs.washington.edu>
[not found] ` <m2bupo39qu.fsf@diana.miranova.com>
1995-12-04 20:06 ` Erik Selberg
1995-12-04 21:09 ` Symbolic Links for mailboxes in Gnus Steven L. Baur
1995-12-04 23:47 ` Erik Selberg
1995-12-04 1:50 ` Found no mail! [sgnus 0.17] Lars Magne Ingebrigtsen
1995-12-04 3:52 ` Steven L. Baur [this message]
1995-12-04 16:26 ` General sgnus 0.17 problems [Was: Found no mail! [sgnus 0.17]] Sten Drescher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2enullc3o.fsf@diana.miranova.com \
--to=steve@miranova.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).