From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85482 Path: news.gmane.org!not-for-mail From: Peter Davis Newsgroups: gmane.emacs.gnus.general Subject: Re: Article mode for raw email message? Date: Tue, 13 Jan 2015 10:22:28 -0500 Message-ID: <20150113152227.GB33607@pdavismbp15.iscinternal.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1421162642 6397 80.91.229.3 (13 Jan 2015 15:24:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 15:24:02 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33724@lists.math.uh.edu Tue Jan 13 16:23:57 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YB3K0-0007kw-Py for ding-account@gmane.org; Tue, 13 Jan 2015 16:23:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1YB3Ip-000379-I8; Tue, 13 Jan 2015 09:22:43 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YB3Im-00036v-DO for ding@lists.math.uh.edu; Tue, 13 Jan 2015 09:22:40 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YB3Ii-0006X1-7y for ding@lists.math.uh.edu; Tue, 13 Jan 2015 09:22:37 -0600 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YB3Ie-0003T5-Nm for ding@gnus.org; Tue, 13 Jan 2015 16:22:33 +0100 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 957E7202B8 for ; Tue, 13 Jan 2015 10:22:29 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 13 Jan 2015 10:22:29 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:date:from:to:subject :message-id:references:mime-version:content-type:in-reply-to; s= smtpout; bh=VSwTZJFZ7fOxSsajq6nSPo4n9/Y=; b=G4R+qTbitta4lyBPMcp8 ACIv9baX1vl+ZdwsBgUvIzwz8yAuopJpIXiuFVa6ga4QM4Fmv8Z7bAokA1lJYKhg 1TmCHoBRyKrS9dl7U3P96DZVshTAx3hhNkw6Qp543NvH/WiVHgSK3QSYPuPqa5e6 OnaW323hBE+UJpx4NPUY2cE= X-Sasl-enc: 4Xxwf17wAdMrg2s9gWD8BAFXvkQ0Z7bbJ6PlZNC7IYOR 1421162549 Original-Received: from pdavismbp15.iscinternal.com (unknown [38.112.155.163]) by mail.messagingengine.com (Postfix) with ESMTPA id 5C600C00012; Tue, 13 Jan 2015 10:22:29 -0500 (EST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85482 Archived-At: On Sun, Jan 11, 2015 at 02:10:36PM -0500, Peter Davis wrote: > > I'm trying to open a raw email message file in Article mode, hoping that > it will look like it does in gnus ... headers hidden, text highlighting, > clickable links, etc. > > Unfortunately, though, it's not working. When I open the file and then > explicitly select article mode, I still just see the raw text of the > file. > > I did run gnus and then exit, so gnus-article-mode was defined. > > Is there a way to do this? To follow up a bit, it turns out the perl script I'm using to "pipe" mail messages (courtesy of Mark Aufflick ) to emacsclient does this: system(qq{$emacsclient -n --eval '(with-current-buffer "$buffer_name" (goto-char (point-max)) (insert "} . $acc . qq{"))'}) It's essentially passing in the entire buffer contents as a string. So it seems to me it should be possible to define a function to process that string as the contents of a mail message and open it in Article mode. Then I guess --eval could invoke that function with the buffer name and content string as arguments. (As I said, I'm not a lisp maven, so forgive me if I'm stating the obvious.) Now I just have to figure out how to write that function. Thanks, -pd -- ---- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com