help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] gnuclientw, Cygwin paths and mutt.


From: Peter Davis
Subject: Re: [h-e-w] gnuclientw, Cygwin paths and mutt.
Date: Sat, 30 Nov 2002 08:45:11 -0500
User-agent: Mutt/1.4i

On Sat, Nov 30, 2002 at 05:04:19PM +0800, Guy Worthington wrote:
> Earlier this month, there was a thread on using emacs as the editor
> for mutt.  I'm still having trouble setting it up.
> 
> I have a gnuserv operating to my satisfaction by slavishly following
> the post by David Vanderschel "Subject: gnuserv: Various Tips for
> Fully Exploiting this Functionality" (July 26 2000).
> 
> I have modified my ~/.muttrc by adding the following two lines
> 
> set editor="gnuclientw"
> set tmpdir="c:\/cygwin\/tmp"
> 
> the second line was a futile attempt at reconciling mutt's idea of
> tmpdir (/tmp) and gnuclientw's idea of what /tmp equated to (c:\tmp).
> 
> I have now eliminated the message in the *Messages* buffer "Use M-x
> make-directory to create a new directory", because gnuclientw wanted
> to make a temp file in c:\tmp, and I now have emacs creating a file
> `c:\cygwin\tmp\mutt-XXXXXX'.  Unfortunately it is a blank file.  It
> neither has headings such as (To: or Subject:) nor does it have the
> included message.
> 
> I am now stuck.


This has been working for me:

set editor = "/cygdrive/d/home/muttedit.sh"


Where muttedit.sh is:

#!/bin/sh
/cygdrive/d/bin/gnuclient -F c:/temp/`basename $*`
exit 0

Possibly you could skip the .sh file and just do this from mutt.  You
need to pass the parameter so emacs will open the temp file that mutt
creates.  The shell script is basically to change the argument name
from /cygdrive/c/temp/... to c:/temp/...

Also, you probably want to use gnuclient rather than gnuclientw, since
the "w" version runs asynchronously, so mutt thinks the message file
was unchanged and aborts the send.


-pd


-- 
--------
                             Peter Davis
               Funny stuff at http://www.pfdstudio.com
    List of resources for children's writers and illustrators at:
                  http://www.pfdstudio.com/cwrl.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]