It would be useful to automatically de-HTML e-mails, but this is not a task for dovecot. Even more useful would be to deprecate HTML in e-mails. -------- Original Message -------- On Jan 20, 2021, 13:58, @lbutlr wrote:> On 20 Jan 2021, at 04:33, Piotr Auksztulewicz <dcml at hasiok.net> wrote: >> On Wed, Jan 20, 2021 at 04:27:11AM -0700, @lbutlr wrote: >>> set imap_pass = "lasH-hds[er$asd" # Not a real password >> >> Use single quotes around the password. Double quotes make $asd to be >> interpreted as shell variable and replaced with (most likely) empty >> string, so you get a shortened passwort in effect. > > This worked, thank you. > > Also? grrrrr. Who though expansion inside a password string was a clever idea and can I introduce them to a clue bat? :p > >> PS. Also a mutt lover :-) > > With the amount of HTML mail out there I really don't understand how people are able to use it anymore. Now, if I could get a 'stip html down to plain text' side function to work? > > script execution error (#127): sh: line 3: fortune: command not found-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20210125/6a3d4643/attachment-0001.html>
On 25/01/2021 09:08, Rupert Gallagher wrote:> It would be useful to automatically de-HTML e-mails, but this is not a > task for dovecot. Even more useful would be to deprecate HTML in e-mails.Why would it be useful to deprecate HTML in emails? Presumably you're arguing for an alternative, more restricted markup language such as Enriched Text[1], Markdown[2]? Mutt already supports Enriched Text, but is probably the most popular MUA which does. I'm not aware of an MUA that natively renders Markdown bodies - most of the tutorials I see about that involve composing the message in Markdown and then converting it to HTML for sending - but to be honest, at this point the effort is a bit late. Realistically, how are you going to render that Markdown text in a Graphical MUA? Either you're going to write a custom control which renders the markup as styled text (that is, converts **bold** to a bold-face font etc) or you're just going to run the Markdown through a Markdown->HTML converter and pass it to a Web Browser component (both the converter and the renderer are "solved problems" so guess which solution developers would choose), in which case, what's the point of going "around the houses"? [1] https://en.wikipedia.org/wiki/Enriched_text [2] https://en.wikipedia.org/wiki/Markdown> > > > -------- Original Message -------- > On Jan 20, 2021, 13:58, @lbutlr < kremels at kreme.com> wrote: > > > On 20 Jan 2021, at 04:33, Piotr Auksztulewicz <dcml at hasiok.net> wrote: > > On Wed, Jan 20, 2021 at 04:27:11AM -0700, @lbutlr wrote: > >> set imap_pass = "lasH-hds[er$asd" # Not a real password > > > > Use single quotes around the password. Double quotes make $asd to be > > interpreted as shell variable and replaced with (most likely) empty > > string, so you get a shortened passwort in effect. > > This worked, thank you. > > Also? grrrrr. Who though expansion inside a password string was a > clever idea and can I introduce them to a clue bat? :p > > > PS. Also a mutt lover :-) > > With the amount of HTML mail out there I really don't understand > how people are able to use it anymore. Now, if I could get a 'stip > html down to plain text' side function to work? > > script execution error (#127): sh: line 3: fortune: command not found >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20210125/3e9b8bd1/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20210125/3e9b8bd1/attachment.sig>
On 25 Jan 2021, at 02:08, Rupert Gallagher <ruga at protonmail.com> wrote:> It would be useful to automatically de-HTML e-mails, but this is not a task for dovecot. Even more useful would be to deprecate HTML in e-mails.Well, that is never going to happen. I have tried, but failed,. To write a sieve and script to strip HTML parts of messages and if the message is only HTML to pipe it through w3m and add the html portion as an emo attachment (in case it has links that need clicking, like on some 'confirm you exist' emails. So far, that has failed and dovecote/sieve doesn't give enough logging when scripts fail (script works when run manually, fails when run from sieve, but no information on why it failed). For not I have given up. I get a LOT of mail that is pointlessly HTMLized (including on this list) and would very much like to strip it down to plain text, but so far the best option appears to use a text-based mail client to access those messages. What I may do is simply put all the HTML mail into a special jail (er, I mean mailbox) so that I don't encounter it accidentally. Honestly, I do not main HTML per se, it is when the HTML specifies font size, colors, background colors, and other garbage like that that I despise it. A well formed HTML message is is fine, but those are very rare. -- Vampires have risen from the dead, the grave and the crypt, but have never managed it from the cat. --Witches Abroad
On Mon, Jan 25, 2021 at 08:52:14AM -0700, @lbutlr wrote:> I have tried, but failed,. To write a sieve and script to strip HTML parts of messages and if the message is only HTML to pipe it through w3m and add the html portion as an emo attachment (in case it has links that need clicking, like on some 'confirm you exist' emails.I truly hate those. Most often they now require Javascript, too. I use ssh and neomutt. I'm going to write a macro to take the html attachment and put it in a website directory. I've been doing it the long hard manual way. I hate forced javascript. No excuse but sloppiness to have that on a confirm you exist page. In any case, this is just nice to vent a little steam out. I don't think we can do much except chastise users of mailing lists. Sounds like a good macro to send a polite form letter reply to evildoers.> Honestly, I do not main HTML per se, it is when the HTML specifies font size, colors, background colors, and other garbage like that that I despise it. A well formed HTML message is is fine, but those are very rare.+1 Thanks for the great software and long hard work to find the most miniscule hidden bugs! Chris Bennett