Discussion:
Reply with another email as attachment?
David Woodfall
2018-03-14 12:48:56 UTC
Permalink
I have recently been in a discussion with a tech support person about
some emails that I have been receiving and I was asked to attach one
of them to a test email that she sent me.

I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.

Is there a way of doing this?
Erik Christiansen
2018-03-14 13:37:36 UTC
Permalink
Post by David Woodfall
I have recently been in a discussion with a tech support person about
some emails that I have been receiving and I was asked to attach one
of them to a test email that she sent me.
I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.
Is there a way of doing this?
Yup, forward:
View the email to attach.
Hit 'f', and mutt will prompt: Forward as attachment? ([yes]/no):
Hit Enter, compose the accompanying email, with forward address, etc.

Erik
David Woodfall
2018-03-14 15:08:52 UTC
Permalink
Post by Erik Christiansen
Post by David Woodfall
I have recently been in a discussion with a tech support person about
some emails that I have been receiving and I was asked to attach one
of them to a test email that she sent me.
I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.
Is there a way of doing this?
View the email to attach.
Hit Enter, compose the accompanying email, with forward address, etc.
Erik
When I press 'f' I just get a 'To' prompt, then it goes straight to
the send window.
Tim Chase
2018-03-14 15:48:05 UTC
Permalink
Post by Erik Christiansen
View the email to attach.
Hit Enter, compose the accompanying email, with forward address, etc.
I just tried this (both with an individual message as well as tagging
multiple and using ";f" to forward the tagged messages) and they
ended up in-line by default. It looks like you might have to fiddle
with the mime_forward quad-option which defaults to "no", setting it
to an "ask*" option.

-tkc
Erik Christiansen
2018-03-15 11:15:14 UTC
Permalink
Post by Tim Chase
Post by Erik Christiansen
View the email to attach.
Hit Enter, compose the accompanying email, with forward address, etc.
I just tried this (both with an individual message as well as tagging
multiple and using ";f" to forward the tagged messages) and they
ended up in-line by default. It looks like you might have to fiddle
with the mime_forward quad-option which defaults to "no", setting it
to an "ask*" option.
Uh-oh, you're right. Dusting off my .muttrc, I see that I set
mime_forward to ask-yes.

Erik

Bastian
2018-03-14 13:22:26 UTC
Permalink
Post by David Woodfall
I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.
Is there a way of doing this?
a - attach-file - attach file(s) to this message
A - attach-message - attach message(s) to this message

I don't remember all the keybindings. I have to look up especially those
which are rarely used. I find it really helpful to hit '?' on the
current view to get the list of keybindings along with their
description. You can search within that list with '/'. In your case,
searching for 'attach' you'll find the command 'attach-message'. Maybe
this helps a bit.


Cheers,
--
Bastian
Yubin Ruan
2018-03-14 13:50:59 UTC
Permalink
Post by Bastian
Post by David Woodfall
I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.
Is there a way of doing this?
a - attach-file - attach file(s) to this message
A - attach-message - attach message(s) to this message
I don't remember all the keybindings. I have to look up especially those
which are rarely used. I find it really helpful to hit '?' on the
current view to get the list of keybindings along with their
description. You can search within that list with '/'. In your case,
searching for 'attach' you'll find the command 'attach-message'. Maybe
this helps a bit.
Whoop! This is much cleaner!

Yubin
David Woodfall
2018-03-14 15:14:50 UTC
Permalink
Post by Bastian
Post by David Woodfall
I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.
Is there a way of doing this?
a - attach-file - attach file(s) to this message
A - attach-message - attach message(s) to this message
I don't remember all the keybindings. I have to look up especially those
which are rarely used. I find it really helpful to hit '?' on the
current view to get the list of keybindings along with their
description. You can search within that list with '/'. In your case,
searching for 'attach' you'll find the command 'attach-message'. Maybe
this helps a bit.
Cheers,
--
Bastian
Thanks, 'A' does the trick.

Dave
Scott Kostyshak
2018-03-14 16:01:03 UTC
Permalink
Post by David Woodfall
I have recently been in a discussion with a tech support person about
some emails that I have been receiving and I was asked to attach one
of them to a test email that she sent me.
I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.
Is there a way of doing this?
I have no idea if the following is good advice or not, but I'll mention
it and let you investigate, unless the other method works well for you.

You can "bounce" an email with the "b" key. The advantage of this is
that I believe the recipient will see the email just as you saw it. i.e.
all of the headers will be the same. When you attach an email (as per
the other solution), I'm not sure the headers are preserved. The
disadvantage is that the email will look strange if the person is not
expecting it (because the To: header will be to you!), so you should
always warn the recipient (in my case, usually a tech team).

Best,

Scott
--
Scott Kostyshak
Assistant Professor of Economics
University of Florida
https://people.clas.ufl.edu/skostyshak/
David Woodfall
2018-03-14 17:52:32 UTC
Permalink
Post by Scott Kostyshak
Post by David Woodfall
I have recently been in a discussion with a tech support person about
some emails that I have been receiving and I was asked to attach one
of them to a test email that she sent me.
I couldn't find how to do that, apart from actually finding the file
and attaching it that way. When I pressed 'a' to attach and then '?'
for a list I had a list of my folders up, but mutt wouldn't let me enter
them and gave a 'couldn't attach <dirname>' error.
Is there a way of doing this?
I have no idea if the following is good advice or not, but I'll mention
it and let you investigate, unless the other method works well for you.
You can "bounce" an email with the "b" key. The advantage of this is
that I believe the recipient will see the email just as you saw it. i.e.
all of the headers will be the same. When you attach an email (as per
the other solution), I'm not sure the headers are preserved. The
disadvantage is that the email will look strange if the person is not
expecting it (because the To: header will be to you!), so you should
always warn the recipient (in my case, usually a tech team).
Best,
Scott
--
Scott Kostyshak
Assistant Professor of Economics
University of Florida
https://people.clas.ufl.edu/skostyshak/
In this case I had to attach one email to another and send it back to
the tech support person, so using the 'A' to attach is perfect.
Grant Edwards
2018-03-14 17:51:44 UTC
Permalink
Post by Scott Kostyshak
I have no idea if the following is good advice or not, but I'll mention
it and let you investigate, unless the other method works well for you.
You can "bounce" an email with the "b" key.
[...]

I've found that another disadvantage of bouncing e-mails to addresses
that aren't contained in the message headers is that some e-mail
systems will think they're spam and discard them. What I don't grok
is how an SMTP server would differentiate between a bounced message
and a bcc'd message.
--
Grant Edwards grant.b.edwards Yow! RHAPSODY in Glue!
at
gmail.com
Continue reading on narkive:
Loading...