knowledge-database (beta)

Current group: comp.mail.mutt

including various other messages while composing a message

including various other messages while composing a message  
Jeffrey Rosenthal
 Re: including various other messages while composing a message  
Alan Connor
 Re: including various other messages while composing a message  
Alan Connor
 Re: including various other messages while composing a message  
Alan Connor
 Re: including various other messages while composing a message  
Gary Johnson
 Re: including various other messages while composing a message  
Sven Guckes
From:Jeffrey Rosenthal
Subject:including various other messages while composing a message
Date:20 Dec 2004 14:57:03 -0800
Hello, I am a mailx user but am seriously considering switching to mutt.
There is one operation that I perform constantly in mailx but can't see
how to do in mutt. This that while in the middle of composing a message,
I decide to include some portion(s) of various other message(s) in my inbox.
In mailx I can do this with "~f " (with no indenting) or
"~m " (with indenting).

Now, I do see that in mutt I can include ONE message when starting to
reply to it, or ONE message that I am "forwarding". Also I can use "A"
to ATTACH other messages but then I cannot edit and incorporate them.
Also I finally found on a web site that if I know in advance all the
messages that I wish to include from, then I can TAG them all and
then use ";r" to reply to (and include) all of them.

But what if, while in the middle of composing, I wish to include some
text from various other messages in my inbox? Aside from some sort of
awkward copy-and-paste, I don't see how to do this. What I'm looking for,
then, is something like the "A" command, but to include the message(s)
right in the body of my outgoing message text rather than as an
attachment. (Ideally there would be two such commands, one to indent
the included text and one not to.)

I'm new to mutt, so my apologies if this is known somewhere (I can't
find it). Thanks in advance for any help.

Regards, Jeffrey
From:Alan Connor
Subject:Re: including various other messages while composing a message
Date:Tue, 21 Dec 2004 17:59:05 GMT
On 20 Dec 2004 14:57:03 -0800, Jeffrey Rosenthal
wrote:

> Hello, I am a mailx user but am seriously considering switching
> to mutt. There is one operation that I perform constantly in
> mailx but can't see how to do in mutt. This that while in
> the middle of composing a message, I decide to include some
> portion(s) of various other message(s) in my inbox. In mailx I
> can do this with "~f " (with no indenting) or
> "~m " (with indenting).
>
> Now, I do see that in mutt I can include ONE message when
> starting to reply to it, or ONE message that I am "forwarding".
> Also I can use "A" to ATTACH other messages but then I cannot
> edit and incorporate them. Also I finally found on a web
> site that if I know in advance all the messages that I wish
> to include from, then I can TAG them all and then use ";r" to
> reply to (and include) all of them.
>
> But what if, while in the middle of composing, I wish to
> include some text from various other messages in my inbox?
> Aside from some sort of awkward copy-and-paste, I don't see
> how to do this. What I'm looking for, then, is something like
> the "A" command, but to include the message(s) right in the
> body of my outgoing message text rather than as an attachment.
> (Ideally there would be two such commands, one to indent the
> included text and one not to.)
>
> I'm new to mutt, so my apologies if this is known somewhere (I
> can't find it). Thanks in advance for any help.
>
> Regards, Jeffrey

I use screen and would have a wrapper script for mutt copy the
inbox to another file, open it in less in a seperate window, and
use less's search tool and screen's cut&paste capabilities to do
the job.

Be happy to supply the details if you want/need them. This isn't
something that mutt does, I'm afraid.

AC
From:Alan Connor
Subject:Re: including various other messages while composing a message
Date:Tue, 21 Dec 2004 18:41:08 GMT
On Tue, 21 Dec 2004 17:59:05 GMT, Alan Connor wrote:
>
>
> On 20 Dec 2004 14:57:03 -0800, Jeffrey Rosenthal
> wrote:
>
>> Hello, I am a mailx user but am seriously considering switching
>> to mutt. There is one operation that I perform constantly in
>> mailx but can't see how to do in mutt. This that while in
>> the middle of composing a message, I decide to include some
>> portion(s) of various other message(s) in my inbox. In mailx I
>> can do this with "~f " (with no indenting) or
>> "~m " (with indenting).
>>
>> Now, I do see that in mutt I can include ONE message when
>> starting to reply to it, or ONE message that I am "forwarding".
>> Also I can use "A" to ATTACH other messages but then I cannot
>> edit and incorporate them. Also I finally found on a web
>> site that if I know in advance all the messages that I wish
>> to include from, then I can TAG them all and then use ";r" to
>> reply to (and include) all of them.
>>
>> But what if, while in the middle of composing, I wish to
>> include some text from various other messages in my inbox?
>> Aside from some sort of awkward copy-and-paste, I don't see
>> how to do this. What I'm looking for, then, is something like
>> the "A" command, but to include the message(s) right in the
>> body of my outgoing message text rather than as an attachment.
>> (Ideally there would be two such commands, one to indent the
>> included text and one not to.)
>>
>> I'm new to mutt, so my apologies if this is known somewhere (I
>> can't find it). Thanks in advance for any help.
>>
>> Regards, Jeffrey
>
> I use screen and would have a wrapper script for mutt copy the
> inbox to another file, open it in less in a seperate window, and
> use less's search tool and screen's cut&paste capabilities to do
> the job.
>
> Be happy to supply the details if you want/need them. This isn't
> something that mutt does, I'm afraid.
>
> AC

Hmmmm. After reading Sven's article, and re-reading yours, I
think it would be better to open the copied inbox in another
instance of mutt in a seperate window, calling mutt with the -F
option to specify a different rc file.

That way you can have the inbox copied to another directory
identified as "set folder=$HOME" in the new muttrc, avoiding
any problems with lockfiles.

(perhaps just re-setting the MAIL environment variable in the
script would do the job)

1. fetchmail finishes downloading the mail

2. the inbox is copied to the secondary "folder" as ~/newinbox

3. screen -t Mutt2 mutt -F ~/.muttrc2 -f +newinbox

4. when mutt is closed, the window Mutt2 closes too

5. rm newinbox


AC
From:Alan Connor
Subject:Re: including various other messages while composing a message
Date:Tue, 21 Dec 2004 19:19:18 GMT
On Tue, 21 Dec 2004 18:41:08 GMT, Alan Connor wrote:
>



> Hmmmm. After reading Sven's article, and re-reading yours, I
> think it would be better to open the copied inbox in another
> instance of mutt in a seperate window, calling mutt with the -F
> option to specify a different rc file.
>
> That way you can have the inbox copied to another directory
> identified as "set folder=$HOME" in the new muttrc, avoiding
> any problems with lockfiles.
>
> (perhaps just re-setting the MAIL environment variable in the
> script would do the job)
>
> 1. fetchmail finishes downloading the mail
>
> 2. the inbox is copied to the secondary "folder" as ~/newinbox
>
> 3. screen -t Mutt2 mutt -F ~/.muttrc2 -f +newinbox
>
> 4. when mutt is closed, the window Mutt2 closes too
>
> 5. rm newinbox
>
>
> AC
>

I'll be. This works like a charm:

#!/bin/sh

fetchmail && cp ~/Mail/inbox ~/newinbox

screen -t Mutt1 -f +inbox

MAIL=$HOME

screen -t Mutt2 mutt -f +newinbox

rm ~/newinbox

exit 0


Run the script and your mail is fetched with two instances of
mutt opening in two different windows.

The first, Mutt1, is the regular one, and the second has the
copy of the inbox.

Screen allows you to cut&paste between windows....

When you close either mutt, the windows close too, and the
inbox copy is rmed just before the script exits.


AC
From:Gary Johnson
Subject:Re: including various other messages while composing a message
Date:Tue, 21 Dec 2004 00:35:08 +0000 (UTC)
Jeffrey Rosenthal wrote:
> Hello, I am a mailx user but am seriously considering switching to mutt.
> There is one operation that I perform constantly in mailx but can't see
> how to do in mutt. This that while in the middle of composing a message,
> I decide to include some portion(s) of various other message(s) in my inbox.
> In mailx I can do this with "~f " (with no indenting) or
> "~m " (with indenting).

> But what if, while in the middle of composing, I wish to include some
> text from various other messages in my inbox? Aside from some sort of
> awkward copy-and-paste, I don't see how to do this. What I'm looking for,
> then, is something like the "A" command, but to include the message(s)
> right in the body of my outgoing message text rather than as an
> attachment. (Ideally there would be two such commands, one to indent
> the included text and one not to.)

I also was a mailx user before switching to mutt. You're right that
such a feature would be really nice, but unfortunately mutt doesn't
have it. I use vim as my editor within mutt, so what I usually do
when I want to include text from another message is to open the
entire mailbox in a split window (e.g., ":split $MAIL"), find the
message I want, and copy-and-paste using vim's yank and paste
commands.

Vim's mail.vim filetype plugin includes a "\q" command that you can
use to easily quote the copied text.

HTH,
Gary
From:Sven Guckes
Subject:Re: including various other messages while composing a message
Date:21 Dec 2004 06:46:56 GMT
* Jeffrey Rosenthal [2004-12-20]:
> I am a mailx user but am seriously considering switching to mutt.
> There is one operation that I perform constantly in mailx but can't see
> how to do in mutt. This that while in the middle of composing a message,
> I decide to include some portion(s) of various other message(s) in my inbox.

editor alert!

> Now, I do see that in mutt I can include ONE message when starting to
> reply to it, or ONE message that I am "forwarding". Also I can use "A"
> to ATTACH other messages but then I cannot edit and incorporate them.
> Also I finally found on a web site that if I know in advance
> all the messages that I wish to include from, then I can TAG
> them all and then use ";r" to reply to (and include) all of them.
>
> But what if, while in the middle of composing, I wish to include some
> text from various other messages in my inbox?

another workaround: postpone the message, tag the messages you
want and save them to a temporary folder, recall the message, and
use your editor to open the temporary folder for whatever you want.
if you can open another terminal then you can do these operations
with another instance of mutt, so you won't have to postpone+recall.

> What I'm looking for, then, is something like the "A" command, but to
> include the message(s) right in the body of my outgoing message text
> rather than as an attachment. (Ideally there would be two such
> commands, one to indent the included text and one not to.)

composing the message is up to the editor - really.
with vim you can (de)indent text with '>' ('<').

three ways to do this:
(1) select a few lines by starting off with 'V' and
then move around to the last line, '>' to indent.
(2) select the current paragraph with "vip" and
a following '>' indents it by "shiftwidth".
(3) start with '>' ("i want to indent some text")
and with "ip" you'll say "inner paragraph" - done.

vim's power is in the combinations of commnands.
other editors do it differently (and yet the same).

this has switched to an editor issue now,
so.. [comp.mail.mutt -> comp.editors ]

Sven
   

Copyright © 2006 knowledge-database   -   All rights reserved