From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: rfc2047-decode-region Date: Mon, 02 Jan 2012 22:18:12 +0900 Message-ID: <87mxa61bvv.fsf@uwakimon.sk.tsukuba.ac.jp> References: <83wr9drqyx.fsf@gnu.org> <87obuoewk3.fsf@uwakimon.sk.tsukuba.ac.jp> <83mxa8stev.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: dough.gmane.org 1325510311 8250 80.91.229.12 (2 Jan 2012 13:18:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jan 2012 13:18:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 02 14:18:27 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RhhmV-0005iu-8q for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2012 14:18:27 +0100 Original-Received: from localhost ([::1]:52946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhhmU-0003Nf-Ol for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2012 08:18:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhhmR-0003Na-U6 for emacs-devel@gnu.org; Mon, 02 Jan 2012 08:18:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RhhmR-0006XF-1A for emacs-devel@gnu.org; Mon, 02 Jan 2012 08:18:23 -0500 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:52467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhhmP-0006Wg-0N; Mon, 02 Jan 2012 08:18:21 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id 15A919706B2; Mon, 2 Jan 2012 22:18:13 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 025331A3174; Mon, 2 Jan 2012 22:18:12 +0900 (JST) In-Reply-To: <83mxa8stev.fsf@gnu.org> X-Mailer: VM undefined under 21.5 (beta31) "ginger" 2dbefd79b3d3 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.224 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147175 Archived-At: Eli Zaretskii writes: > > It's all in RFC 5322. Doesn't everybody know that by heart? ;-) > > I didn't find a place that would explain how to compute 5322 from > 2047. I didn't either; that's why you need to know the RFC by heart. Seems a reasonable requirement for participation in a project which chooses its infrastructure based on email controllability! :-) > Thanks. I needed it to decode a region of the "rmail view buffer", > where we display a single message, which includes all the displayed > headers, including From, To, CC, Subject, etc. So from your > explanations I understand that the ADDRESS-MIME argument can stay nil > in that case, correct? Yes, if I were you I'd set it to nil. Setting it to t makes some *extremely* rare addresses (eg <"an\ RFC\-legit\ address"@gnu.org>, and that is *not* a joke, it's the kind of example that ADDRESS-MIME is intended for) look nicer. But it probably would do really confusing things to program strings in unstructured fields (eg, Lisp regexps in the Subject field), and I think those are much more likely than mailboxes whose names contain special characters.