From: Christian Lemburg <lemburg@aixonix.de>
Subject: Invoking gnus as mail agent from opera
Date: 29 May 2002 16:18:49 +0200 [thread overview]
Message-ID: <m37klnnik6.fsf@maki.aixonix.de> (raw)
Since I did not find anything on how to invoke gnus as mail agent from
opera (for mailto links), I decided to post my solution for the next
person having this problem.
Sketch of the idea: opera invokes a perl wrapper script that
interpolates the mailto address into a call to gnuclient with a small
lisp helper function. Gnus is assumed to be already running.
Pieces:
1) my-mailto-handler.el:
(defun my-mailto-handler (mail-address)
"Compose new mail, using MAIL-ADDRESS given"
(gnus-group-mail)
(message-goto-to)
(insert mail-address)
(message-goto-body))
2) gnus-mailto.pl:
#!/usr/bin/perl -w
# small perl script for invoking gnus from opera on mailto: Urls
# author: Christian Lemburg <lemburg@aixonix.de>
# version: $Id: gnus-mailto.pl,v 1.1 2002/05/29 11:40:00 lemburg Exp $
# --------------------------------------------------
# setup
# --------------------------------------------------
# command to invoke emacs
my $emacs_command = "gnuclient";
# function to handle mailto URL taking email address as only argument
my $mailto_handler_function = "my-mailto-handler";
# email address to send mail to - the mailto argument from opera
my $email_address = $ARGV[0];
# --------------------------------------------------
# action
# --------------------------------------------------
# like: gnuclient -eval '(my-mailto-handler "try@bla")'
system($emacs_command, "-eval", qq{($mailto_handler_function "$email_address")});
3) opera preferences setting in Applications - Email Client:
gnus-mailto.pl
--
Christian Lemburg, <lemburg@aixonix.de>, http://www.clemburg.com/
Experience is something you don't get until just after you need it.
-- Olivier
reply other threads:[~2002-05-29 14:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m37klnnik6.fsf@maki.aixonix.de \
--to=lemburg@aixonix.de \
/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).