<<< Date Index >>>     <<< Thread Index >>>

Re: Background mail composition



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Oct 14, 2003 at 04:46:16PM +0200, Mads Laursen wrote:
> 
> The attached scripts attempt to do something like what you are asking
> for. They are not that good, they were mostly written to see if it
> could be done, but the basic idea is this: Copy the message to a
> temporary mailbox, invoke a new mutt on that mailbox, and have the new
> mutt do something clever, while the original mutt continues doing
> whatever it was doing.

I love the idea, but I think it's better implemented with pipe_command.
The only thing I can't see how to do is quitting automatically after
finishing composition.

Put the attached script in your ~/.Mutt/ directory and add these lines
(or something like) to your .muttrc:

macro   index   m       "<shell-escape>screen -X screen mutt ''<enter>"
macro   index   r       "<pipe-message>$HOME/.Mutt/compose.sh reply<enter>"
macro   index   L       "<pipe-message>$HOME/.Mutt/compose.sh list-reply<enter>"

(Note that you can easily do group-reply etc. by changing the function
name passed to the script)

> 
> Please note that no issues of security or stability have been
> considered, and the scripts might very well seriously mess up your
> system. 
> 
> source std_disclaimer.rc
> 
> 
> Feel free to hack it into something nice, share it with the world, or
> whatever.
> 

Likewise.

        - Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: The following is method of proving my identity.  For more information, 
see http://www.gnupg.org.  E-mail {andrew-go-away at ccl.bham.ac.uk} if you 
don't want this.

iD8DBQE/jEdaUjUCivGf+MsRAo+SAKCcsG0tGeViLhdbxCthhpFFoszUMwCgoaxU
286l8bKcTfOf2s1YV9uY1Kg=
=beC1
-----END PGP SIGNATURE-----

Attachment: compose.sh
Description: Bourne shell script