From: Teemu Likonen <tlikonen@iki.fi>
To: Emanuel Berg <embe8573@student.uu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: gnus-summary-cancel-article
Date: Thu, 04 Jul 2013 15:49:18 +0300 [thread overview]
Message-ID: <87ppuya3sh.fsf@mithlond.arda> (raw)
In-Reply-To: <87li5mfuac.fsf@VLAN-3434.student.uu.se> (Emanuel Berg's message of "Thu, 04 Jul 2013 13:18:03 +0200")
[-- Attachment #1: Type: text/plain, Size: 829 bytes --]
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))))))))
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2013-07-04 12:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-04 11:18 gnus-summary-cancel-article Emanuel Berg
2013-07-04 11:52 ` gnus-summary-cancel-article Tassilo Horn
2013-07-04 12:49 ` Teemu Likonen [this message]
[not found] ` <mailman.216.1372942181.12400.help-gnu-emacs@gnu.org>
2013-07-04 18:22 ` gnus-summary-cancel-article Emanuel Berg
2013-07-06 18:21 ` gnus-summary-cancel-article Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ppuya3sh.fsf@mithlond.arda \
--to=tlikonen@iki.fi \
--cc=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).