Re: Save to a file problem (wrapped with =)

2008-09-25 Thread Lin Tan
  I have a very basic imap mutt setup to receive emails. 
 However, when I
  try to save an email to a file, lines longer than 72 characters are 
  wrapped with a = added at the end. I can view the long lines just 
  fine, but the saved file is wrapped.
 
 When messages are saved to a file (using the save-message 
 command), they're saved in mbox format, which is pretty close to the 
 raw message---and the RFCs strongly encourage that messages be wrapped 
 to 72 characters.
 
 I guess my point is: it's doing that on purpose... what exactly is it 
 that you're trying to achieve? There's probably a better way to 
 achieve it

Thank you so much for the explanation, Kyle.

I want to save the message as it is, being not wrapped. Is there a way to do 
that?

The reason is that I was trying to save a patch for the Linux kernel. If the 
patch if wrapped, then it can't be applied anymore.  BTW, is there a way to 
save just the message (excluding the from addr, subject, etc.)?

Thanks a lot.

Lin


Re: Save to a file problem (wrapped with =

2008-09-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday, September 25 at 10:39 AM, quoth Tan, Lin:
 I want to save the message as it is, being not wrapped. Is there a 
 way to do that?

Sure, several!

 The reason is that I was trying to save a patch for the Linux 
 kernel. If the patch if wrapped, then it can't be applied anymore.  
 BTW, is there a way to save just the message (excluding the from 
 addr, subject, etc.)?

Ahh, then the way you will want is to do it via the attachment menu 
(by default, press the 'v' key while a message is selected in the 
index or being viewed in the pager... think v is for View). From 
there, you can use the save-entry command (bound to 's' by default). 
That should allow you to save the text of a message (or, if the sender 
has been nice, the patch attachment) to a file in decoded (i.e. 
un-wrapped, non-raw) form.

~Kyle
- -- 
Whenever you have an efficient government, you have a dictatorship.
  -- Harry Truman, lecturing at Columbia University, April 28, 1959
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkjbs6YACgkQBkIOoMqOI17WpwCg6GbC2IQmAtHJXQtIfi5dGq9h
8AUAoP5UgpZiisw4nwoV8c8i90rxms1U
=Nlbd
-END PGP SIGNATURE-


Re: Save to a file problem (wrapped with =)

2008-09-25 Thread Mark Harrison
 I want to save the message as it is, being not wrapped. Is there a way to do 
 that?
You can use v to view the parts of a message and any attachments, then s to
save individual attachments (or the message) to a file. This also excludes the
message headers. These are using the default keybindings, so if you have
changed them, these instructions will be different for you.

HTH,

Mark

-- 
Mark Harrison
Systems Administrator
OmniTI Computer Consulting, Inc.


pgpagIOm47EAf.pgp
Description: PGP signature


Re: Save to a file problem (wrapped with =

2008-09-25 Thread Lin Tan




  I want to save the message as it is, being not wrapped. Is
 there a way
  to do that?
 
 Sure, several!
 
  The reason is that I was trying to save a patch for the
 Linux kernel. 
  If the patch if wrapped, then it can't be applied anymore.
  BTW, is there a way to save just the message (excluding the
 from addr,
  subject, etc.)?
 
 Ahh, then the way you will want is to do it via the attachment menu 
 (by default, press the 'v' key while a message is selected in the 
 index or being viewed in the pager... think v is for View). From 
 there, you can use the save-entry command (bound to 's' by default).
 That should allow you to save the text of a message (or, if the sender 
 has been nice, the patch attachment) to a file in decoded (i.e.
 un-wrapped, non-raw) form.
 

It works! Thanks a bunch, Kyle and Mark.
Haha, the kernel developers do NOT want patches to be sent as attachment. 


-- 
Lin



Save to a file problem (wrapped with =

2008-09-24 Thread Lin Tan
Hi,

I have a very basic imap mutt setup to receive emails. However, when I try to 
save an email to a file, lines longer than 72 characters are wrapped with a = 
added at the end. I can view the long lines just fine, but the saved file is 
wrapped. 

For example, I view it as:

-/* Try to allocate a new tape buffer skeleton. Caller must not hold 
os_scsi_tapes_lock */

But the saved file would look like:

-/* Try to allocate a new tape buffer skeleton. Caller must not hold os_scs= 
i_tapes_lock */

I suspected it might have something to do with my editor vi. So I set wc=0 to 
stop vim from wrapping around. But the problem still exists. 

Any help is high appreciated. Thanks!

Lin


Re: Save to a file problem (wrapped with =

2008-09-24 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday, September 24 at 11:18 PM, quoth Lin Tan:
 I have a very basic imap mutt setup to receive emails. However, when 
 I try to save an email to a file, lines longer than 72 characters 
 are wrapped with a = added at the end. I can view the long lines 
 just fine, but the saved file is wrapped.

When messages are saved to a file (using the save-message 
command), they're saved in mbox format, which is pretty close to the 
raw message---and the RFCs strongly encourage that messages be wrapped 
to 72 characters.

I guess my point is: it's doing that on purpose... what exactly is it 
that you're trying to achieve? There's probably a better way to 
achieve it.

~Kyle
- -- 
Time is an illusion. Lunchtime doubly so.
   -- Douglas Adams
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkjbGSMACgkQBkIOoMqOI14zdQCffv+QNJfdJQ0suD+6QgmITSQN
juEAnieNUkknasjsydhieBbabC4ovvXA
=EWoH
-END PGP SIGNATURE-