Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: floyd@barrow.com (Floyd L. Davidson)
Subject: Re: Sending mail via Gnus if Gnus is not running (?)
Date: Sun, 31 Oct 2004 19:22:57 -0900	[thread overview]
Message-ID: <87u0sa9p0e.fld@barrow.com> (raw)
In-Reply-To: <i7breiw75p.fsf@hilbert.math.albany.edu>

William F Hammond <hammond@csc.albany.edu> wrote:
>"Tassilo Horn" <heimdall@uni-koblenz.de> writes:
>
>>> I think that Gnus' facility for sending email (the one I get if I hit
>>> the m key) is much nicer than the Emacs default via M-x mail - I can
>>> attach files, non-ASCII characters like umlauts are taken care of, and
>>> so on. However, I'm wondering how to access this functionality while
>>> Gnus is not running. Is it possible to get this from outside of Gnus
>>> somehow?
>>
>> M-x gnus-msg-mail
>
>How can this function be used with GNU Emacs from a shell script?
>(Through google I found how it can be done via xemacs's "gnuclient";
>is there something like that?)

> From a shell script will be difficult if by that you mean a batch
mode script.  It could be done, but just the thought of writing the
code to do it makes my head spin...

But if you mean is it possible to call that functionality up for
interactive use, it is!  I use XEmacs, so my examples will be
for that, but it should work equally well with GNU's Emacs.

You of course must have the Gnus package installed and configured.
Then you can do

       xemacs -f gnus-msg-mail

And XEmacs will come up in a buffer just as if you had been in
XEmacs and executed M-x gnus-msg-mail.

If you have an xemacs server running (it has executed gnuserv-start),
you can do the same using gnuclient,

       gnuclient -f gnus-msg-mail

-- 
FloydL. Davidson           <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)                         floyd@barrow.com


      parent reply	other threads:[~2004-11-01  4:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11 16:25 Edi Weitz
     [not found] ` <873c0l6vli.fsf@inspiron.nicundtas.de>
     [not found]   ` <i7breiw75p.fsf@hilbert.math.albany.edu>
2004-11-01  4:22     ` Floyd L. Davidson [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=87u0sa9p0e.fld@barrow.com \
    --to=floyd@barrow.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).