[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strip signature on reply without standard separator [solved]

From: Satoshi Yoshida
Subject: Re: Strip signature on reply without standard separator [solved]
Date: Thu, 25 Aug 2022 12:04:34 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Emanuel Berg <> writes:

> Satoshi Yoshida wrote:
>> (add-hook 'mu-cite-post-cite-hook
>>        (lambda nil
> Most people would put it (lambda () ... )

I understand.

> If you quote a lambda it is just a list with data:
> '(a b c)
> '(lambda not an anonymous function)
> Eval and you will see, there's no difference in
> principle. Lists.

Thank you for your assistance.


Install mu-cite. It's easy from MELPA. And add this to .emacs

(autoload 'mu-cite-original "mu-cite" nil t)
;; for all but message-mode
;(add-hook 'mail-citation-hook (function mu-cite-original))
;; for message-mode only
(setq message-cite-function (function mu-cite-original))

Add this to .gnus.el or .emacs

(setq mu-cite-prefix-format '("> "))
(setq mu-cite-cited-prefix-regexp "\\(^[^ \t\n<>]+>+[ \t]*\\)")
(setq mu-cite-top-format '(from " writes:\n\n"))
(add-hook 'mu-cite-post-cite-hook
          (lambda ()
                (goto-char (point-min))
                (replace-regexp "^> >" ">>")
                (goto-char (point-min))
                (replace-regexp "^> -- .*\n\\(>.*\n\\)*" "")
                (goto-char (point-min))
                (replace-regexp "^\\(>[ \t]+\n\\)+> \\(best\
\\( regards\\| wishes\\)?\\|cheers\\|\\(good\\)?bye\\|good luck\
\\|\\(kind \\|warm\\(est\\)? \\)?regards\\|respectfully\\|\
\\(yours \\)?sincerely\\( yours\\)?\\|thank you\\( very much\\)?\
\\|\\(many \\)?thanks\\( in advance\\| very much\\)?\\),[ \t]*\n\
\\(>.*\n\\)*" "")
                (goto-char (point-min))
                (replace-regexp "^\\(>[ \t]+\n\\)+> [ \t]*\
\\(-+[ \t]*\\)?[a-zA-Z]+[ \t]*\n\\(>[ \t]+\n\\)*\n-- " "\n-- ")
                (goto-char (point-min))
                (replace-regexp "^\\(>[> \t]+\n\\)+\n-- " "\n-- "))
              (goto-line 1)


Satoshi Yoshida

reply via email to

[Prev in Thread] Current Thread [Next in Thread]