Re: A question on forwarding

2002-09-06 Thread Gary Johnson

On Thu, Sep 05, 2002 at 08:25:40PM -0700, David Ellement wrote:
 On 020905, at 18:41:18, Gary Johnson wrote
  On Thu, Sep 05, 2002 at 05:57:24PM -0400, Michael Herman wrote:
   Is there a way to forward e-mails in-line but any attachments are
   attached to the forward?  
   
   For example, If I receive an e-mail with a spreadsheet and I would
   like to forward it, the text of the original e-mail would be in-line
   with my e-mail but the spreadsheet would be an attachment.
  
  To forward messages that way, you need to go to the attachment menu
  ('v'), tag all the attachments ('t'), then forward them all using ';f'.
 
 It doesn't seem like this does quite what Michael asked, if I understand
 him correctly.  He seems to want the in-line part of the original
 message included his forwarded message, with the attachments appearing
 as attachments to his message.

That's what I understood him to mean, and what I thought my solution
did.  I've since done some more experimenting and I've discovered that
this doesn't work in all cases; it just happened to work in all the
cases I had previously tried.

 Mutt only seems to allow all in-line or
 all mime forwarding.

This seems to depend on the Content-Type of the attachment and whether
mutt is configured to decode that attachment type in-line when the
message is viewed in the pager.  For example, if I forward a message
with a text/plain body and an image/gif attachment using the technique
I described previously, the body appears in the body of the forwarding
message and the image is attached as desired.  However, if I forward a
message with the same body but with an application/excel attachment,
mutt includes both parts in the body of the forwarding message since my
mailcap has a rule for converting Excel attachments to text and my
muttrc includes auto_view application/excel.  The only way I could
find to forward the Excel file as an attachment while forwarding the
body in-line was to remove the auto_view application/excel from my
muttrc.

   With mime_forward set, if I tag the in-line part
 of message along with attachments before forwarding, the in-line part
 appears a another attachment, rather than within my message part; if I
 don't tag the in-line part, it doesn't appear at all.

That's what I observe as well.

 Have I missed something?

No, not unless I missed it, too.  I just hadn't realized that my
solution didn't work in general.  I can't think of any workaround for
this, either, short of restarting mutt with the auto_view commands
commented out.

Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |



Re: A question on forwarding

2002-09-06 Thread David Ellement

On 020906, at 02:11:08, Gary Johnson wrote
 [...]  However, if I forward a
 message with the same body but with an application/excel attachment,
 mutt includes both parts in the body of the forwarding message since my
 mailcap has a rule for converting Excel attachments to text and my
 muttrc includes auto_view application/excel.

Okay, I was testing using pdf attachments, and I have an auto_view line
for pdf files.


 [...]  The only way I could
 find to forward the Excel file as an attachment while forwarding the
 body in-line was to remove the auto_view application/excel from my
 muttrc.

Is there any reason for auto_view to be active in the attachments menu?

-- 
David Ellement



Re: A question on forwarding

2002-09-06 Thread John P Verel


On 09/05/02 18:41 -0700, Gary Johnson wrote:
 
 To forward messages that way, you need to go to the attachment menu
 ('v'), tag all the attachments ('t'), then forward them all using ';f'.

Doesn't esc e simply do what is wanted?  I tried it with an excel
spreadsheet and it seems to work just fine.

John



A question on forwarding

2002-09-05 Thread Michael Herman

Is there a way to forward e-mails in-line but any attachments are
attached to the forward?  

For example, If I receive an e-mail with a spreadsheet and I would
like to forward it, the text of the original e-mail would be in-line
with my e-mail but the spreadsheet would be an attachment.

Thanks.

-- 
Michael Herman
Director, Solution Delivery Technology
ClientLogic
Work (615) 301-7140
Fax (615) 301-7340



Re: A question on forwarding - (mime_)forward_*

2002-09-05 Thread Sven Guckes

* Michael Herman [EMAIL PROTECTED] [2002-09-05 22:13]:
 Is there a way to forward e-mails in-line but
 any attachments are attached to the forward?

 For example, If I receive an e-mail with a
 spreadsheet and I would like to forward it, the text
 of the original e-mail would be in-line with my
 e-mail but the spreadsheet would be an attachment.

  6.3.52.  forward_decode -- Type: boolean -- Default: yes
  Controls the decoding of complex MIME messages into text/plain when
  forwarding a message.  The message header is also RFC2047 decoded.
  This variable is only used, if $mime_forward is unset,
  otherwise $mime_forward_decode is used instead.

  6.3.54.  forward_quote -- Type: boolean -- Default: no
  When set forwarded messages included in the main body of the message
  (when $mime_forward is unset) will be quoted using $indent_string.

  6.3.103 mime_forward
  6.3.104 mime_forward_decode
  6.3.105 mime_forward_rest

please try these variables yourself.
i'm sure you'll find the answer...

Sven  [02:37am.. my oh my..]



Re: A question on forwarding

2002-09-05 Thread Gary Johnson

On Thu, Sep 05, 2002 at 05:57:24PM -0400, Michael Herman wrote:
 Is there a way to forward e-mails in-line but any attachments are
 attached to the forward?  
 
 For example, If I receive an e-mail with a spreadsheet and I would
 like to forward it, the text of the original e-mail would be in-line
 with my e-mail but the spreadsheet would be an attachment.

To forward messages that way, you need to go to the attachment menu
('v'), tag all the attachments ('t'), then forward them all using ';f'.
You don't want to forward them MIME encapsulated, so if you see this
prompt,

Forward MIME encapsulated? ([n]/y):

answer 'n'.  I see this prompt because I have set mime_forward=ask-no
in my muttrc.  Since the default for this variable is unset or no, you
may not even encounter the question.

HTH,
Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |



Re: A question on forwarding

2002-09-05 Thread David Ellement

On 020905, at 18:41:18, Gary Johnson wrote
 On Thu, Sep 05, 2002 at 05:57:24PM -0400, Michael Herman wrote:
  Is there a way to forward e-mails in-line but any attachments are
  attached to the forward?  
  
  For example, If I receive an e-mail with a spreadsheet and I would
  like to forward it, the text of the original e-mail would be in-line
  with my e-mail but the spreadsheet would be an attachment.
 
 To forward messages that way, you need to go to the attachment menu
 ('v'), tag all the attachments ('t'), then forward them all using ';f'.

It doesn't seem like this does quite what Michael asked, if I understand
him correctly.  He seems to want the in-line part of the original
message included his forwarded message, with the attachments appearing
as attachments to his message.  Mutt only seems to allow all in-line or
all mime forwarding.  With mime_forward set, if I tag the in-line part
of message along with attachments before forwarding, the in-line part
appears a another attachment, rather than within my message part; if I
don't tag the in-line part, it doesn't appear at all.

Have I missed something?

-- 
David Ellement