Gnus development mailing list
 help / color / mirror / Atom feed
From: Peter Davis <pfd@pfdstudio.com>
To: ding@gnus.org
Subject: Re: Article mode for raw email message?
Date: Tue, 13 Jan 2015 10:22:28 -0500	[thread overview]
Message-ID: <20150113152227.GB33607@pdavismbp15.iscinternal.com> (raw)
In-Reply-To: <m2ppal5e1f.fsf@PFDStudio-Air.home>

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 <http://mark.aufflick.com/o/886457>) 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



      parent reply	other threads:[~2015-01-13 15:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11 19:10 Peter Davis
2015-01-11 19:34 ` Dave Goldberg
2015-01-12 12:20   ` Peter Davis
2015-01-11 19:51 ` Adam Sjøgren
2015-01-12 12:22   ` Peter Davis
2015-01-12 14:23     ` Adam Sjøgren
2015-01-12 14:34       ` Peter Davis
2015-01-12 17:43         ` Adam Sjøgren
2015-01-13 15:22 ` Peter Davis [this message]

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=20150113152227.GB33607@pdavismbp15.iscinternal.com \
    --to=pfd@pfdstudio.com \
    --cc=ding@gnus.org \
    /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).