Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Gnus to handle news: and mailto: URLs from external sources?
       [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
  1 sibling, 1 reply; 3+ messages in thread
From: David Kastrup @ 2006-04-12 19:02 UTC (permalink / raw)


Kurt Swanson <direct@reply.not.desired> writes:

> I've been a heavy Gnus user for years[*] (some of the ancient ones may
> remember me), as well as a big fan of gnuserv, which allows one to
> call emacs from command lines, scripts, etc.  I.e. I have *one* emacs
> (process) and gnus started immediately upon logging in, and they run
> perpetually until reboot.
>
> I recently discovered I could mangle firefox into running an external
> program for any URIs I wanted (news:, mailto:, magnet:, screw-you:,
> etc.)  Of interest here are the first two.  Thus I can script
> 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?
>
> [*] I swear to "god" I have not, and will not use outlook,
>     thunderbird, webmail or any other crap out there.

Well, just configure something like
/usr/bin/emacsclient -ne (browse-url"%r")
as your mailer command (be sure to use spaces only where I wrote them).

And
/usr/bin/emacsclient %t
as your textarea command

You can probably do this by typing the URL
about:config
into Firefox.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gnus to handle news: and mailto: URLs from external sources?
  2006-04-12 19:02 ` Gnus to handle news: and mailto: URLs from external sources? David Kastrup
@ 2006-04-12 19:07   ` Romain Francoise
  0 siblings, 0 replies; 3+ messages in thread
From: Romain Francoise @ 2006-04-12 19:07 UTC (permalink / raw)


David Kastrup <dak@gnu.org> writes:

> /usr/bin/emacsclient -ne (browse-url"%r")

(Note that the -e option is new in Emacs 22.)

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gnus to handle news: and mailto: URLs from external sources?
       [not found] <m2odz6bp6g.fsf@kurt.swanson>
  2006-04-12 19:02 ` Gnus to handle news: and mailto: URLs from external sources? David Kastrup
@ 2006-04-12 19:10 ` Karl Kleinpaste
  1 sibling, 0 replies; 3+ messages in thread
From: Karl Kleinpaste @ 2006-04-12 19:10 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-12 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m2odz6bp6g.fsf@kurt.swanson>
2006-04-12 19:02 ` Gnus to handle news: and mailto: URLs from external sources? David Kastrup
2006-04-12 19:07   ` Romain Francoise
2006-04-12 19:10 ` Karl Kleinpaste

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).