email-eww

Emacs library to send region or eww buffer by email
git clone https://logand.com/git/email-eww.git/
Log | Files | Refs

commit 6b8fb31afd945b7dccf8f1db28bccbda5905f7f2
parent 1f80ef57d2fc43448405866f6d350b01a3222fb8
Author: Tomas Hlavaty <tom@logand.com>
Date:   Sun, 31 Dec 2023 21:15:04 +0100

update email-eww with various clean ups

Diffstat:
Memail-eww.el | 30++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/email-eww.el b/email-eww.el @@ -301,11 +301,37 @@ (insert content) (message-goto-body) (delete-trailing-whitespace) + (message-goto-body) (cond - ((search "news.ycombinator.com" url) + ((string-match "news.ycombinator.com" url) (clean-up-ycombinator)) - ((search "reddit.com" url) + ((string-match "reddit.com" url) (clean-up-reddit)) + ((string-match "faz.net" url) + (clean-up-faz)) + ((string-match "mmnews.de" url) + (clean-up-mmnews)) + ((string-match "voanews.com" url) + (clean-up-voanews)) + ((string-match "guardian.com" url) + (clean-up-guardian)) + ((string-match "wikipedia.org" url) + (clean-up-wikipedia)) + ((or (string-match "stackoverflow.com" url) + (string-match "stackexchange.com" url)) + (clean-up-stackoverflow)) + ((string-match "schneier.com" url) + (clean-up-schneier)) + ((string-match "counterpunch.org" url) + (clean-up-counterpunch)) + ((string-match "wallstreetonparade.com" url) + (clean-up-wallstreetonparade)) + ((string-match "cnn.com" url) + (clean-up-cnn)) + ((string-match "commondreams.org" url) + (clean-up-commondreams)) + ((string-match "wsws.org" url) + (clean-up-wsws)) ) (goto-char (point-max)) (delete-blank-lines)