On Saturday, March 3, 2007 at 15:50:11 +0100, Claus Fischer wrote:

> they want a decrypt and save, but not a decrypt then lose headers then
> save :-)

    Don't mix "code" and "crypt". The function <decrypt-save> does a
nearly verbatim move, where only PGP and S/MIME encrypted parts get
decrypted. Headers are kept complete, regardless of $weed. IIUC that's
what you needed from the beginning.


    The scheme is: <save-message>, <decode-save>, and <decrypt-save>
(and their <*-copy-*> counterparts) have different main purposes, and so
it's normal they behave differently.

 - <save-message> main purpose is to move mails from one mailbox to
another mailbox. So it's natural it's a verbatim move: No decode, no
decrypt, no charset transcode, no header weed. Not a single change,
whatever settings.

 - <decode-save> main purpose is to render a text file usable with any
even non-mail tools outside Mutt (perhaps to edit it, print, process in
any way...). So it's natural MIME encodings are decoded, charset
converted to $charset, HTML rendered, unused multipart/alts removed,
bin attachments removed, headers weeded on demand in a configurable way,
encrypted parts decrypted, etc... Resulting text file is subject to
every "rendering" setting in Mutt or helper apps: auto_view, hdr_order,
alternative_order, ignore, $weed, $charset, $display_filter,
charset-hook, and so on.

 - <decrypt-save> main purpose is to move mails from one mailbox to
another, removing only the crypto-protection that was used during mail
transport. Note this assumes crypto-protection is needless locally,
which is not the case for everyone. It's a nearly verbatim move, where
only PGP and S/MIME encrypted parts get decrypted.


> people will want a decode-save that does not lose headers

    Easy changing value of $weed:

| macro index,pager <F42>\
|       "<enter-command> unset weed<Enter><decode-save>"\
|       "non-weedy decode-save"

    And no, unfortunately, there is no way to automatically reset $weed
to its previous state.


Bye!    Alain.
-- 
Mutt compressed folders tip for stable archive timestamp:
| open-hook \\.gz$ "gzip -cd '%f' > '%t' ; ret=$? ; touch --no-create 
--reference='%f' '%t' ; exit \$ret"
| close-hook \\.gz$ "gzip -c '%t' > '%f' ; ret=$? ; touch --no-create 
--reference='%t' '%f' ; exit \$ret"
| append-hook \\.gz$ "gzip -c '%t' >> '%f'"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to