On Wed, 25 Jul 2001, John Arundel wrote:

> On 2001-07-25 at 15:05:58, Jens Paulus warbled:
> > 1.) Editing an email with vim/mutt, I sometimes wish to insert/quote
> > text from another email that I'm not currently replying to.

> If there is a smart way to do this in mutt, I don't know it. I normally
> just:

> * Exit the editor
> * Postpone the mail with Shift-P
> * Go find the mail I want to quote
> * Hit 'reply' to quote the text
> * Select the text in xterm (or with screen's copy function)
> * Recall the postponed mail
> * Paste in

There is a perl module called Mail::Folder that has subroutines
for reading from mbox and maildir folders. You have to specify
the number of the message in the folder. This makes it easy, if
you know some perl, to write a little perl script that you could
use in vim, like:
        :r !readmsg.pl Inbox 4
But the old elm readmsg had the capability of pattern searching,
as well.

Another approach would be to write a vim function. You would have
to divide up a mbox folder file on the basis of /^From / lines,
for example.

I have to investigate the perl Mail::Folder approach.


-- 
Greg Matheson                    Rather than do things right,
Chinmin College,                 Do the right thing. 
Taiwan                           

Reply via email to