From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29419 Path: main.gmane.org!not-for-mail From: Andrew J Cosgriff Newsgroups: gmane.emacs.gnus.general Subject: Re: Mailto: links Date: 07 Mar 2000 15:31:44 +1100 Sender: owner-ding@hpc.uh.edu Message-ID: <1yvh2zs8nj.fsf@earthling.aia.aig.com.au> References: <1y8zzvto9i.fsf@earthling.aia.aig.com.au> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035166092 2676 80.91.224.250 (21 Oct 2002 02:08:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:08:12 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 208A2D051E for ; Mon, 6 Mar 2000 23:34:21 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id WAB03851; Mon, 6 Mar 2000 22:32:27 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 06 Mar 2000 22:32:04 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id WAA13914 for ; Mon, 6 Mar 2000 22:31:50 -0600 (CST) Original-Received: from mail.aia-a.com.au (unknown [203.17.41.35]) by mailhost.sclp.com (Postfix) with ESMTP id 5D837D051F for ; Mon, 6 Mar 2000 23:31:50 -0500 (EST) Original-Received: from battery.aia.aig.com.au (battery.aia.aig.com.au [192.168.1.134]) by mail.aia-a.com.au (8.9.3/8.9.1) with ESMTP id PAA14318 for ; Tue, 7 Mar 2000 15:30:48 +1100 (EST) Original-Received: from earthling.aia.aig.com.au (earthling.aia.aig.com.au [192.168.1.214]) by battery.aia.aig.com.au (8.9.1b+Sun/8.9.1) with ESMTP id PAA27702 for ; Tue, 7 Mar 2000 15:31:09 +1100 (EST) Original-Received: by earthling.aia.aig.com.au (Postfix, from userid 1225) id 5FB3F101F; Tue, 7 Mar 2000 15:31:44 +1100 (EST) Original-To: ding@gnus.org X-Face: PBPJ+.AE`FBN4$}HrwwEhJ)x?-5$MQ%Z)svNR@Q\WG6[GDr,}a@8ULwGWBsk,Pqxm!Z- X-URI: X-Now-Playing: Got Sold on Heaven (Snout, Circle High and Wide) X-Emacs-Acronym: Eradication of Memory Accomplished with Complete Simplicity In-Reply-To: Andrew J Cosgriff's message of "Tue, 07 Mar 2000 04:14:35 GMT" Original-Lines: 33 User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.2 (Iris) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29419 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29419 --=-=-= Andrew J Cosgriff wrote : > Harry Putnam wrote : > > > Is it possible to set netscape in such a way as to call gnus when > > clicking a "mailto" link? > > Yeah. Grab muttzilla[1] and give it a whirl - there's a VM interface > in there. I keep meaning to get around to making it work with Gnus, > but it consistently manages to fall off my stack. > > If anybody's already done so, post it here ! :) > > > Footnotes: > [1] http://www3.telus.net/brian_winters/mutt/ Blah. Here you go. I call it "gnus-mail" and if you chuck the script in /usr/local/lib/muttzilla and put mailargs=gnus-mail in your .muttzillarc it oughta work. I couldn't be bothered worrying about handling CC or BCC, 'cause it's not like I see them every day in a mailto: header, so... --=-=-= Content-Disposition: attachment; filename=gnus-mail Content-Description: muttzilla script for using Gnus message mode #! /bin/sh # # Script for spawning gnus' message composition under xemacs through # muttzilla. # # by Andrew J Cosgriff # based on the VM one # by Claus Brunzema # most code stolen from muttzilla's mzmail.sh # If you already have an xemacs with gnuserv running, this script # first tries to start message mode using that xemacs. Otherwise a # new xemacs is started. So, if you don't want a new xemacs for every # mail, put something like (gnuserv-start) in your .emacs. # Arguments to the script: # 1 to # 2 cc # 3 bcc # 4 subject # 5 body file # 6 org MZTO=$1 MZCC=$2 MZBCC=$3 MZSUB=$4 MZBOD=$5 MZORG=$6 ARGS="-eval '(progn (message-mail " if [ -n "$MZTO" ] ; then ARGS="$ARGS \"$MZTO\"" fi if [ -n "$MZSUB" ] ; then ARGS="\"$MZSUB\" " fi # # I'm too lazy to deal with CC and BCC now (ajc) # #if [ -n "$MZCC" ] ; then # ARGS="$ARGS (mail-cc) (insert \"$MZCC\") " #fi #if [ -n "$MZBCC" ] ; then # ARGS="$ARGS (mail-bcc) (insert \"$MZBCC\") " #fi ### body and org still missing ... ARGS="$ARGS ))'" if (gnuclient -batch -eval '(progn)' 2>&1 >/dev/null) ; then eval gnuclient $ARGS else eval xemacs $ARGS fi # This is an ugly hack, and to be honest I'm not even sure it does # what I think it does, but I hadn't really forseen that you might # want to spawn one of two programs depending on the results of some # test. I'm sure I'll hear from some enterprising VM users who will # let me know a better way. exit 0 --=-=-= Enjoy, Andrew -- Andrew J Cosgriff shaken and stirred --=-=-=--