From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6911 invoked from network); 24 Aug 2022 02:30:56 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2022 02:30:56 -0000 Received: from localhost ([::1]:37968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQgAQ-0004Ab-4a for ml@inbox.vuxu.org; Tue, 23 Aug 2022 22:30:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQgAJ-000499-Dv for info-gnus-english@gnu.org; Tue, 23 Aug 2022 22:30:47 -0400 Received: from pv50p00im-ztdg10012101.me.com ([17.58.6.49]:60030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQgAH-0004CV-9w for info-gnus-english@gnu.org; Tue, 23 Aug 2022 22:30:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1661308239; bh=7rT2AxoPjsmbZWxLq9PdPCsPeJMuq5oqkYtZDT51k/c=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ItUNgAFR98rD3a4uAMXGTXVdrSMI9ZdWzzFjh4y9aq0CUJTIKf0wqvAakXqidbl+E 75yl7nNDomwzR5/ad3Ym2Je3P4Eg27qvRccSOdQ8JAgPwP+Op6Jgp5x6oz7pKaBYdO 52/6Cp/JVqCdgxH8LEunmESQXo2eD48a1v/OZnyYjGkeWU3nvPbty509FvB8wTe9Hl sTZt1kwRk++y3FT1DXI/SN/ye+wHgQdMmeQqVU3EoZ9GviTT75H63G65gHNXqdqblE NYqhUf30tbGdHidzQQVaXzmE7UUHEotgOBg6HGqDXUzQI7gLcS8tQKTnh1+2MZ977X 5gJbMyblATT/g== Received: from arch (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10012101.me.com (Postfix) with ESMTPSA id BE4E07405CE for ; Wed, 24 Aug 2022 02:30:37 +0000 (UTC) From: Satoshi Yoshida To: info-gnus-english@gnu.org Subject: Re: Strip signature on reply without standard separator References: <87y1vykpl2.fsf@icloud.com> <87zggbz3ho.fsf@icloud.com> X-Operating-System: Linux version 5.19.3-arch1-1 Arch Linux x86_64 Date: Wed, 24 Aug 2022 11:30:36 +0900 In-Reply-To: <87zggbz3ho.fsf@icloud.com> (Satoshi Yoshida's message of "Thu, 11 Aug 2022 15:41:23 +0900") Message-ID: <87bksaz837.fsf@icloud.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: RonTGbvT3pQECwZLObCj1BaB5B1u6Yqr X-Proofpoint-ORIG-GUID: RonTGbvT3pQECwZLObCj1BaB5B1u6Yqr X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.572,17.11.64.514.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F01:2022-06-21=5F01,2020-02-14=5F11,2022-02-23?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=6 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=6 mlxlogscore=120 spamscore=6 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208240007 Received-SPF: pass client-ip=17.58.6.49; envelope-from=dynamisxar@icloud.com; helo=pv50p00im-ztdg10012101.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Satoshi Yoshida writes: > I solved it by customizing mu-cite.el from melpa in reference to > http://roguelife.org/~tsumura/emacs/mu-cite.html > https://pc11.5ch.net/test/read.cgi/unix/1114097161/ [...] > But I have a concern. When I compose a message, > a blank line occurs on biginning of buffer. I can't block it. Fixed. (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 () (save-excursion (save-excursion (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) (delete-blank-lines)))) -- Satoshi Yoshida