add the content of another email to new message

2016-08-16 Thread Jethro Tull
I'm using vim as editor in mutt. I would like to find a way to dump the content 
of another email or part to a new message while being composed. Of course 
without running a new instance of mutt.

Re: add the content of another email to new message

2016-08-23 Thread Jethro Tull
> From: Cameron Simpson [c...@zip.com.au]
> Sent: Tuesday, August 16, 2016 10:17 PM
> To: Jethro Tull
> Cc: mutt-users@mutt.org
> Subject: Re: add the content of another email to new message
> 
> On 16Aug2016 19:58, Jethro Tull  wrote:
> >I'm using vim as editor in mutt. I would like to find a way to dump the
> >content of another email or part to a new message while being composed. Of
> >course without running a new instance of mutt.
> 
> Why not by running a new instance of mutt?
> 
> Without that, you need some kind of tool that _vim_ can invoke to access
> message content. How are you intending to designate that message from inside
> vim?
> 
> Note that you can reply to more that one message from mutt itself, before you
> start composing: tag multiple messages, then  (or
>  or whatever). You'll get all their text quoting in the reply
> template.
> 
> Cheers,
> Cameron Simpson 

sometimes while composing I could spontaneously need to put all or part of
another email or many others.

So I could save and close the current composition, then from that point I would
need to browse my emails and edit the ones I want to select what I want and
dump the selection into the email I was composing before without a copy/paste
process which would complicate things if I need the content of many emails. 

The tricky thing I'm searching about is how to select the right file which
corresponds to the email I was composing. I could of course browse the files in
my maildir repo from within vim, but it doesn't look like a right way because,
first, the files in the maildir repo seem to be named randomly, second, what if
my emails were stored in an mbox format? It's a complicated thing because
edition is made from within vim and email browing is done with mutt.


Re: add the content of another email to new message

2016-12-07 Thread Jethro Tull
On Wed, 24 Aug, 2016, 14:09:13 +0200, bastian-muttu...@t6l.de wrote:
> On 24Aug16 20:38 +1000, c...@zip.com.au wrote:
> > On 23Aug2016 19:47, Jethro Tull  wrote:
> > > > On 16Aug2016 19:58, Jethro Tull  wrote:
> > > > >I'm using vim as editor in mutt. I would like to find a way to dump the
> > > > >content of another email or part to a new message while being 
> > > > >composed. Of
> > > > >course without running a new instance of mutt.
> > > > 
> > > > Why not by running a new instance of mutt?
> > > > 
> > > > Without that, you need some kind of tool that _vim_ can invoke to access
> > > > message content. How are you intending to designate that message from 
> > > > inside
> > > > vim? [...]
> 
> Some more thoughts on this:
> 
>   - If you figure out the filename of the email, from which you want to
> get some lines, then it could be a problem if that file has
> content-transfer-encoding = base64 or quopri and not 7bit. Similar
> issue might be content-type= text/html. And not to forget encrypted
> Mail.
anyway, basically hunting files within the maildir repo for such a purpose is
not a good idea at all. That's the MUA that has to provide such a facility.
> 
> So, I suggest to use mutt to read/edit email in vim, because mutt
> does some stuff to present the mail in a readable way.
> 
>   - Another solution to gather lines from other mails might be to use
> mutt and vim's registers. 
Right.
>
> Steps would be:
> 1. Postpone your mail (as described earlier)
> 2. Use mutt to find your source mails. In addition, mutt does all
>the content type/encoding handling when viewing/replying them.
> 3. Use named registers from vim and yank the precious content into
>them. 
This is actually the feature I needed. Postponing is something I knew, but I was
wondering how to copy successively parts from several emails without having to
paste in between. Without this feature even multiple instances of mutt would
have been tedious.
> 4. Repeat step 3 as much as needed, either with different ragisters
>or append to one register.
> 3. Open the postponed mail again and paste our registers. Tadaa ..
> 
> (For that to work, verify that registers are saved after exiting
> vim. see :help viminfo.)
> 
> 
> Cheers,
> -- 
> Bastian

thread colours

2017-01-01 Thread Jethro Tull
mutt version 1.6.1 
i'm trying to set mutt to give threads a specific colour. here's my
colours configuration for the index pane:

# Colours for items in the index
# collapsed thread with no New or Flagged
color  index   yellowblack "~v~(!~N)~(!~F)"

# collapsed thread with Flagged but no New
color  index   red   black "~v~(~F)~(!~N)"

# collapsed thread with New
color  index   green black "~v~(~N)"

color index brightcyanblack  ~N
color index magenta   black  ~O
color index brightyellow  black  ~F
color index black green  ~T
color index brightred black  ~D
#color index brightred black  ~(~U)

# colour definitions when on a mono screen
mono  index bold  ~n
mono  index bold  ~f
mono  index bold  ~t
mono  index bold  ~d

all colour settings except those related to eithet ~v or ~() are not working.
The one related to ~(~U), which is commented is colouring messages with either
"O" or "N" flags whether or not they are part of a thread. 
For all the settings that seem to not work I tested them even individually by
commenting all others related to colours.