mu icon indicating copy to clipboard operation
mu copied to clipboard

[mu4e bug] "This is a pseudo-article" error shown when toggling HTML view

Open david-alvarez-rosa opened this issue 3 years ago • 2 comments

Describe the bug

Toggling to HTML view by pressing h in mu4e-view that triggers (mu4e-view-toggle-html) function does not work, and a "This is a pseudo-article" is shown.

How to Reproduce

  1. Open any multi-part email (text and HTML)
  2. Press h to toggle HTML view (mu4e-view-toggle-html)
  3. View echo area, it will display a "This is a pseudo-article" error message

Environment

Bug discovered on macOS Monterey, GNU Emacs 28.2, mu (mail indexer/searcher) version 1.8.10.

Checklist

  • [X] you are running either the latest 1.6.x release, or a 1.8.x release (otherwise, please upgrade)
  • [X] you are running mu4e without any third-party extensions (otherwise, make sure you can reproduce without those)
  • [X] you have read all of the above

david-alvarez-rosa avatar Sep 18 '22 12:09 david-alvarez-rosa

Works for me -- can you attach a raw message where this happens?

djcb avatar Sep 19 '22 06:09 djcb

Yes sure, attaching one: email-example.txt, hope it helps.

And adding one screenshot of what I see after pressing h: Screenshot 2022-09-19 at 09 38 57

Let me know if I can help with anything else :) Thank you!

david-alvarez-rosa avatar Sep 19 '22 07:09 david-alvarez-rosa

Just wanted to add that this has never (several years) worked for me - I always get "This is a pseudo-article".

bergheim avatar Oct 28 '22 15:10 bergheim

Just wanted to add that this has never (several years) worked for me - I always get "This is a pseudo-article".

Same here...

dorneanu avatar Nov 11 '22 17:11 dorneanu

Just got this. All latest as of yesterday installed from homebrew on mac BigSur.

FrustrumCode avatar Nov 12 '22 16:11 FrustrumCode

FWIW, I've been having this issue since forever and seem to have solved it by switching to using plaintext by default with:

  (with-eval-after-load "mm-decode"
    (add-to-list 'mm-discouraged-alternatives "text/html")
    (add-to-list 'mm-discouraged-alternatives "text/richtext"))

Pressing h now toggles between html and plaintext nicely.

tausen avatar Feb 14 '23 16:02 tausen

There are some different problems here:

  • some messages simply don't have a plain-text part. The "pseudo-article" warning isn't very useful, so that's been improved in master
  • For many other messages, indeed the mm-discourage-alternative settings helps, which is why it's in the manual
  • For the particular message that @david-alvarez-rosa attached, even that is not enough, but you also have to add: (add-to-list 'mm-discouraged-alternatives "multipart/related"); that not improve some other messages, ymmv.

So:

(with-eval-after-load "mm-decode"
  (add-to-list 'mm-discouraged-alternatives "text/html")
  (add-to-list 'mm-discouraged-alternatives "text/richtext")
  (add-to-list 'mm-discouraged-alternatives "multipart/related"))

Any, thanks for the dicussion, closing this now.

djcb avatar Feb 17 '23 20:02 djcb

Thank you all. Checked today and it's working :)

david-alvarez-rosa avatar Feb 18 '23 15:02 david-alvarez-rosa