From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: gnus-summary-cancel-article Date: Thu, 04 Jul 2013 15:49:18 +0300 Message-ID: <87ppuya3sh.fsf@mithlond.arda> References: <87li5mfuac.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1372942194 27802 80.91.229.3 (4 Jul 2013 12:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2013 12:49:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 14:49:54 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uuiys-0005XA-TG for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 14:49:51 +0200 Original-Received: from localhost ([::1]:41319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuiys-0003lD-K3 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 08:49:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuiyf-0003kr-7c for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 08:49:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uuiya-0001Xe-I6 for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 08:49:37 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:32994 helo=kirsi1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuiya-0001XE-1S for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 08:49:32 -0400 Original-Received: from mithlond.arda (84.251.134.110) by kirsi1.inet.fi (8.5.140.03) id 51BB5BE3017E7890; Thu, 4 Jul 2013 15:49:22 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.80) (envelope-from ) id 1UuiyP-00012E-Lm; Thu, 04 Jul 2013 15:49:21 +0300 In-Reply-To: <87li5mfuac.fsf@VLAN-3434.student.uu.se> (Emanuel Berg's message of "Thu, 04 Jul 2013 13:18:03 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91935 Archived-At: --=-=-= Content-Type: text/plain Emanuel Berg [2013-07-04 13:18:03 +02:00] wrote: > gnus-summary-cancel-article > > but it said > > Couldn't send message via news: 441 Invalid Control Message My news server rejects Gnus's cancel messages unless I change the control message's "Subject" field from "cmsg cancel" to "cancel". I do this change automatically with message-cancel-hook (see below). Years ago I browsed news server's control message group and learnt how to make cancel messages work. (add-hook 'message-cancel-hook 'tl-message-cancel-hook) (defun tl-message-cancel-hook () (save-excursion (save-restriction (save-match-data (message-narrow-to-head) (let ((case-fold-search nil)) (when (re-search-forward "^Subject: \\(cmsg \\)cancel" nil t) (delete-region (match-beginning 1) (match-end 1)))))))) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJR1W9OAAoJEHGdadMkU5RQJ0YP/RvtAZdcZdAYIybnfJALyPGR O5Dsl36zvyUhulGTzyQIhkm4wBoKeqviyiQdfa3JkpmOkSV/NIACOiBoeOEEBmmt m64XO6LGQsxUCZzk0dqaVFscmB2b1MeKuDhzbPPcpGmF0CMcBQzB6veOfFvAraSB uted7rOf3db7Nh/q3ZLnRL+HRsF+HM1WLaV3AJZExNRicXBC92uNDMuQLCC2ISRU Pu8TTu2KVScR7gWBFo+S4MKZqpxEi/IobASiAFNQuagSj1Ae0uIAVUv3oyGVMqv+ BYE0CTdqf0asX8E9GxJzp6n4+2yAUhuT+sFZLdOctQAxjTExV8Qkxo/ofNwSkL/3 17EmWVT+qBDvY7j6VexvsUg8sBfCS9RDQryYKmZ3yx3YAdolYLI3mIOnVkhyEZom Xn+vgZqQDXj7ciznrguiqKPbk0SrizchXjCuZscmI5/HepGigjSWIOopEVCj+27L o55fpB3ZA/d+6tCbEWvPk0y16D5+6dGiFReeha4P3596qHTSmhRQWgGa11X0zeek 1HQmNoI1FopkyjXYQc51FFRzgKqRlrENUOYaTD6OcamBPvVhvlDoVZkcxulx2uG8 aXSAkg5MCaKHe7yY6zCEMq2MusGpesT1qQ+9uRgUqTkOSAihy24fsw5d0jPTPN5I 9i1CIYQfu05gB1O4fPrh =xWRE -----END PGP SIGNATURE----- --=-=-=--