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 f00385846e6b42b433a3fe40f7472d2d7437b598
parent d9d7ba3a885f6d567019a026a5ee82d3921425f6
Author: Tomas Hlavaty <tom@logand.com>
Date:   Sun, 31 Dec 2023 21:13:16 +0100

add counterpunch

Diffstat:
Memail-eww.el | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/email-eww.el b/email-eww.el @@ -220,6 +220,19 @@ (delete-region (point) (point-max)) (message-goto-body)) +(defun clean-up-counterpunch () + (forward-line 2) + (let ((start (point))) + (search-forward "Submit" nil t) + (beginning-of-line) + (forward-line 1) + (delete-region (point) start)) + (goto-char (point-max)) + (search-backward "New from" nil t) + (beginning-of-line) + (delete-region (point) (point-max)) + (message-goto-body)) + (defun email-eww () (interactive) (let ((content (buffer-string))