<<< Date Index >>>     <<< Thread Index >>>

[PATCH] generalized CTE <edit-encoding> deQPifier



Hello /dev/mutt,

    Mutt has in compose menu an <edit-encoding> function bound to ^E to
change the MIME Content-Transfer-Encoding between 7 or 8bits, binary, QP
or base64. That's for outgoing mails.

    Now such function could be interesting in other menus to
non-permanently change display decoding of some munged mails, like some
undeclared QP from Gnats, some QP or base64 from Pipermail archives, or
other sources of header stripping. Much in same way as <edit-type> is
available everywhere to temporarily correct type or charset of a
mislabelled mail.

    The attached patch-1.5.11.ab.generalized_edit_encoding.1 generalizes
<edit-encoding> to index, pager, and attachment menus. It is there bound
to ESC ^E, while still ^E only in compose. The prompt uses M_CLEAR mode
(first char typed wipes content), and an info message in printed when a
change is made. Code and doc. Doc totally untested (lacking tools).

    Note code is only roughly tested, so reviews and feedback are
welcome, and inclusion should wait a little. I had especially
difficulties with redraws. And am not sure if send2-hooks are really
needed after <edit-encoding> in compose. Also is there an easy way to
build a specific prompt completion mode for the 5 possible strings?


    Example usage: Look in mutt-dev my BTS followup with accents
<E1E4O6P-0005Kf-T9@xxxxxxxxxxxxxxxxxxxx>. Munged by QP. Type ESC ^E and
enter "quoted-printable" at the prompt. Mutt prints
"Content-Transfer-Encoding changed from 7bit to quoted-printable." and
presto: Mickaël gets his proper umlaut, and my cuted lines get their
good shape.


Bye!    Alain.
-- 
quoted-printable?
See the archives for more discussion on why this should,
like hydrogen for dirigibles, be relegated to the past.
        PCC DTG on MU. © August 2004.

Attachment: patch-1.5.11.ab.generalized_edit_encoding.1.gz
Description: application/gunzip