unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5573: 23.1; Please add Injection-* headers to message-ignored-supersedes-headers
@ 2010-02-13  9:46 Teemu Likonen
  2010-09-30 21:15 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Teemu Likonen @ 2010-02-13  9:46 UTC (permalink / raw)
  To: 5573

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

This report is about Gnus and file lisp/gnus/message.el in particular.

There is a news server, namely eternal.september.org, which adds
Injection-Date and Injection-Info headers to messages. When superseding
such message the sending fails because the server does not want user to
fill those headers, the server wants to do it. Supersede works if user
removes those headers manually.

So, I suggest adding the headers to message-ignored-supersedes-headers
variable like the attached patch does.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: supersede-ignore-injection-headers.diff --]
[-- Type: text/x-diff, Size: 1146 bytes --]

diff --git i/lisp/gnus/message.el w/lisp/gnus/message.el
index 7194813..8992cef 100644
--- i/lisp/gnus/message.el
+++ w/lisp/gnus/message.el
@@ -276,7 +276,7 @@ included.  Organization and User-Agent are optional."
   :link '(custom-manual "(message)Mail Headers")
   :type 'regexp)
 
-(defcustom message-ignored-supersedes-headers "^Path:\\|^Date\\|^NNTP-Posting-Host:\\|^Xref:\\|^Lines:\\|^Received:\\|^X-From-Line:\\|^X-Trace:\\|^X-ID:\\|^X-Complaints-To:\\|Return-Path:\\|^Supersedes:\\|^NNTP-Posting-Date:\\|^X-Trace:\\|^X-Complaints-To:\\|^Cancel-Lock:\\|^Cancel-Key:\\|^X-Hashcash:\\|^X-Payment:\\|^Approved:"
+(defcustom message-ignored-supersedes-headers "^Path:\\|^Date\\|^NNTP-Posting-Host:\\|^Xref:\\|^Lines:\\|^Received:\\|^X-From-Line:\\|^X-Trace:\\|^X-ID:\\|^X-Complaints-To:\\|Return-Path:\\|^Supersedes:\\|^NNTP-Posting-Date:\\|^X-Trace:\\|^X-Complaints-To:\\|^Cancel-Lock:\\|^Cancel-Key:\\|^X-Hashcash:\\|^X-Payment:\\|^Approved:\\|^Injection-Date:\\|^Injection-Info:"
   "*Header lines matching this regexp will be deleted before posting.
 It's best to delete old Path and Date headers before posting to avoid
 any confusion."

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#5573: 23.1; Please add Injection-* headers to message-ignored-supersedes-headers
  2010-02-13  9:46 bug#5573: 23.1; Please add Injection-* headers to message-ignored-supersedes-headers Teemu Likonen
@ 2010-09-30 21:15 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-30 21:15 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: bug-gnu-emacs, 5573-close

Teemu Likonen <tlikonen@iki.fi> writes:

> There is a news server, namely eternal.september.org, which adds
> Injection-Date and Injection-Info headers to messages. When superseding
> such message the sending fails because the server does not want user to
> fill those headers, the server wants to do it. Supersede works if user
> removes those headers manually.
>
> So, I suggest adding the headers to message-ignored-supersedes-headers
> variable like the attached patch does.

Thanks you for the patch.  I've now applied it to the development
version of Gnus.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-30 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-13  9:46 bug#5573: 23.1; Please add Injection-* headers to message-ignored-supersedes-headers Teemu Likonen
2010-09-30 21:15 ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).