Re: BUG REPORT tin 1.7.10 release 20050929 ("Tahay") [UNIX]

Urs Janßen <[email protected]>
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Tue, Dec 20, 2005 at 04:05:37PM +0100, Vincent Lefevre wrote:
> On 2005-12-20 14:43:33 +0100, Urs Janßen wrote:
> > On Mon, Dec 19, 2005 at 05:15:33PM +0100, Vincent Lefevre wrote:
> > > When superseding an article, the "Organization:" header is not kept.
> > > This can be seen as soon as the editor is started.
> > 
> > IMHO this is no bug, a supersede is a new article replacing an old one.
> > (and the organization header is not always full controlable by the user:
> > some server do overwrite it).
> 
> Well, here are some additional details. The fact that "Organization:"
> was set in the original article but not in the superseding article is
> really a bug (I superseded my own article, on the same machine, so it
> should have had the same "Organization:" value).
> 
> So, if this is a new article, why isn't .tin/attributes taken into
> account for the "Organization:" header? The bug may be there.


--- post.c	2005-07-20 14:36:18.000000000 +0200
+++ post.c	2005-12-23 18:22:18.945845827 +0100
@@ -3666,6 +3666,15 @@
 		if (*my_distribution)
 			msg_add_header("Distribution", my_distribution);
 
+	} else {
+		if (note_h.org)
+			msg_add_header("Organization", note_h.org);
+		else {
+			if (group->attribute->organization != NULL)
+				msg_add_header("Organization", random_organization(group->attribute->organization));
+			else if (*default_organization)
+				msg_add_header("Organization", random_organization(default_organization));
+		}
 	}
 
 	/*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.