Skip to content

Commit

Permalink
mailcap: Add entry for text/plain
Browse files Browse the repository at this point in the history
In NixOS 20.09, alot was updated to version 0.9.1.

Since alot 0.9.1 it is possible to specify a mailcap for text/plain.
This was delegating it to xdg-open, which in turns delegates it to
nvim. which probably tried to take control of the tty and crashed alot
(see pazz/alot#1544). This adds an explicit
entry for text/plain.

Mind that the order in which alot matches this file seems to be important.
This is probably a bug, but fixed here as a workaround.

Signed-off-by: Roosembert Palacios <[email protected]>
  • Loading branch information
roosemberth committed Sep 25, 2020
1 parent d96a842 commit 08e4b02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/mailcap
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ application/*; xdg-open "%s"
audio/*; xdg-open "%s"
video/*; xdg-open "%s"
image/*; xdg-open "%s"
text/*; xdg-open "%s"
text/html; w3m -dump -o -document_charset=%{charset} "%s"; nametemplate=%s.html; copiousoutput
text/plain; fmt -w 100 -s %s
text/*; xdg-open "%s"

0 comments on commit 08e4b02

Please sign in to comment.