Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Karl Kleinpaste <karl@charcoal.com>
Subject: Re: Gnus to handle news: and mailto: URLs from external sources?
Date: Wed, 12 Apr 2006 15:10:57 -0400	[thread overview]
Message-ID: <vxklkuay5ha.fsf@mesquite.charcoal.com> (raw)
In-Reply-To: <m2odz6bp6g.fsf@kurt.swanson>

Kurt Swanson <direct@reply.not.desired> writes:
> something to send to gnus via gnuserv.  Obviously I would like to
> handle all the extensions (for example "?subject=xxx" for mailto:) Has
> anyone attempted this before?  Any pointers?

This script serves me for basic command startup (in my gnome init) and
handling mailto: links in FF.  I have it as /usr/local/bin/gnus.

In gnome's Preferences->More Prefs->Preferred Applications, I set the
mail reader to "custom" with "gnus %s".  Embellish to taste.  Also see
the FF extension "mozex" for utterly generalized access to oodles of
stuff, including (famously) using gnuclient as an editor for HTML form
text boxes.

Gnus' handling of mailto: extensions is automatic.

#!/bin/sh
export PATH=/usr/local/bin:"$PATH"
if [ "$1" = "" ] ; then
    exec xemacs -geometry 90x40 -f gnus-init
else
    if gnuclient -batch -eval t >/dev/null 2>&1 ; then
	exec gnuclient -batch -eval "(progn (gnus-url-mailto \"$1\") (not-modified))"
    else
	exec xemacs -geometry 90x40 \
	    -eval "(progn (require 'gnus-art) (gnus-url-mailto \"$1\") (font-lock-mode 1) (not-modified))"
    fi
fi
exec xmessage -center No XEmacs or gnuclient
echo no xemacs, no gnuclient, no xmessage
exit 1

      parent reply	other threads:[~2006-04-12 19:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2odz6bp6g.fsf@kurt.swanson>
2006-04-12 19:02 ` David Kastrup
2006-04-12 19:07   ` Romain Francoise
2006-04-12 19:10 ` Karl Kleinpaste [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=vxklkuay5ha.fsf@mesquite.charcoal.com \
    --to=karl@charcoal.com \
    --cc=karl+usenet@charcoal.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).