[patch/rfc] prefer plain over html in multipart/alternative



Hi all!

When opening a multipart/alternative message, as default balsa displays 
(if available) a text/html part (which afaik is the correct behaviour 
according to the rfc's). As I really dislike html mails, I wrote a small 
patch (against the balsa2 cvs, see below) which adds an option to force 
displaying the plain part instead.

If the option is checked, balsa looks for both text/html and text/plain 
parts. If a plain part is available, it will be displayed. Otherwise, 
either the html (if available; e.g. Nutscrape and Outlook may be 
configured to send no plain part) or the complete part (for broken mua's 
which send rtf/doc/...) will be displayed.

Mails which are completely html are not affected.

Any comments?

Cheers, Albrecht.


Some details about the patch:
* balsa/src/balsa-app.h: add a new gboolean config variable
* balsa/src/balsa-message.c: modify scanning of multipart/alternative 
messages
* balsa/src/pref-manager.c: add a check button in Mail Options->Incoming
* balsa/src/save-restore.c: save & restore the config variable

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
        Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________

Multipart-Alternative.patch.gz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]