Guido Hennecke <[EMAIL PROTECTED]> wrote: > At 09.10.2000, Andreas Metzler wrote: >> Er ermoeglicht, dass inn2 nicht den lokalen Hostnamen sondern einen >> frei konfigurierbaren Wert (msgidhost in /etc/news/inn.conf) zur >> Erzeugung der M-ID verwendet. Bei inn 2.3.0 (oder erst bei der >> Developerversion?) geht das ohne Patch.
> Prima. Leider konnte ich diesen Patch nirgends finden. Koenntest Du eine > oder mehrere URLS mal hier posten? Hallo! Der Patch stammt iirc von http://www.qad.org/projects/diff_msgidhost-inn2.2.patch. Eventuell liegt er nicht mehr dort, und er ist kurz, daher haenge ich ihn einfach an - wenn das nicht ok ist, bitte ich darum, Beschwerden nur an mich per E-Mail zu senden. (Diese Version passt auf inn2_2.2.3-3, sollte sich aber auch ohne Fehler auf die inn2-Version aus potato anwenden lassen.) cu andreas ------------------------------------------------ ------------------------------------------------ diff -r -u inn2-2.2.3-orig/include/innconf.h inn2-2.2.3-new/include/innconf.h --- inn2-2.2.3-orig/include/innconf.h Wed Jul 19 01:54:07 2000 +++ inn2-2.2.3-new/include/innconf.h Sat Jul 29 17:37:24 2000 @@ -320,7 +320,10 @@ { _CONF_NNRPPERLAUTH, "", 2, 1 }, #define _CONF_NNRPDPOSTPORT "nnrpdpostport" #define CONF_VAR_NNRPDPOSTPORT 99 - { _CONF_NNRPDPOSTPORT, "", 2, 1 } + { _CONF_NNRPDPOSTPORT, "", 2, 1 }, +#define _CONF_MSGIDHOST "msgidhost" +#define CONF_VAR_MSGIDHOST 100 + { _CONF_MSGIDHOST, "", 1, 0 }, }; -#define MAX_CONF_VAR 100 +#define MAX_CONF_VAR 101 diff -r -u inn2-2.2.3-orig/include/libinn.h inn2-2.2.3-new/include/libinn.h --- inn2-2.2.3-orig/include/libinn.h Wed Jul 19 01:54:07 2000 +++ inn2-2.2.3-new/include/libinn.h Sat Jul 29 17:37:24 2000 @@ -73,6 +73,7 @@ char *server; /* NNTP server to post to */ char *pathhost; /* Host for the Path line */ + char *msgidhost; /* Host to use for the Msgid-FQDN */ char *pathalias; /* Prepended Host for the Path line */ char *organization; /* Data for the Organization line */ char *moderatormailer; /* Default host to mail moderated articles */ diff -r -u inn2-2.2.3-orig/lib/genid.c inn2-2.2.3-new/lib/genid.c --- inn2-2.2.3-orig/lib/genid.c Wed Jul 19 01:54:07 2000 +++ inn2-2.2.3-new/lib/genid.c Sat Jul 29 17:37:24 2000 @@ -28,8 +28,13 @@ return NULL; Radix32((unsigned long)Now.time - OFFSET, sec32); Radix32((unsigned long)getpid(), pid32); + if ( innconf->msgidhost != NULL ) + { + (void)sprintf(buff, "<[EMAIL PROTECTED]>", sec32, pid32, ++count, innconf->msgidhost); + } else { if ((p = GetFQDN()) == NULL) return NULL; (void)sprintf(buff, "<[EMAIL PROTECTED]>", sec32, pid32, ++count, p); + } return buff; } diff -r -u inn2-2.2.3-orig/lib/getconfig.c inn2-2.2.3-new/lib/getconfig.c --- inn2-2.2.3-orig/lib/getconfig.c Wed Jul 19 01:54:07 2000 +++ inn2-2.2.3-new/lib/getconfig.c Sat Jul 29 17:37:24 2000 @@ -162,6 +162,7 @@ SET_CONFIG(CONF_VAR_SERVER); } innconf->pathhost = NULL; + innconf->msgidhost = NULL; innconf->pathalias = NULL; innconf->organization = NULL; if ((p = getenv(_ENV_ORGANIZATION)) != NULL) { @@ -276,6 +277,7 @@ if (innconf->fromhost != NULL) DISPOSE(innconf->fromhost); if (innconf->server != NULL) DISPOSE(innconf->server); if (innconf->pathhost != NULL) DISPOSE(innconf->pathhost); + if (innconf->msgidhost != NULL) DISPOSE(innconf->msgidhost); if (innconf->pathalias != NULL) DISPOSE(innconf->pathalias); if (innconf->organization != NULL) DISPOSE(innconf->organization); if (innconf->moderatormailer != NULL) DISPOSE(innconf->moderatormailer); @@ -476,6 +478,11 @@ if (!bit) innconf->pathhost = COPY(p); SET_CONFIG(CONF_VAR_PATHHOST); } else + if (EQ(ConfigBuff,_CONF_MSGIDHOST)) { + TEST_CONFIG(CONF_VAR_MSGIDHOST, bit); + if (!bit) innconf->msgidhost = COPY(p); + SET_CONFIG(CONF_VAR_MSGIDHOST); + } else if (EQ(ConfigBuff,_CONF_PATHALIAS)) { TEST_CONFIG(CONF_VAR_PATHALIAS, bit); if (!bit) innconf->pathalias = COPY(p); diff -r -u inn2-2.2.3-orig/samples/inn.conf.in inn2-2.2.3-new/samples/inn.conf.in --- inn2-2.2.3-orig/samples/inn.conf.in Sat Jul 29 17:40:58 2000 +++ inn2-2.2.3-new/samples/inn.conf.in Sat Jul 29 17:40:09 2000 @@ -13,6 +13,7 @@ organization: A poorly-installed InterNetNews site server: localhost pathhost: unconfigured +msgidhost: @HOSTNAME@ moderatormailer: domain: fromhost: ----------------------------------------------------------- ----------------------------------------------------------- -- Andreas Metzler, Wien | [EMAIL PROTECTED] | --------------------------------------------------------- Um sich aus der Liste auszutragen schicken Sie bitte eine E-Mail an [EMAIL PROTECTED] die im Body "unsubscribe <deine_email_adresse>" enthaelt. Bei Problemen bitte eine Mail an: [EMAIL PROTECTED] --------------------------------------------------------- 779 eingetragene Mitglieder in dieser Liste.

