[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Debian]:Re: inn 2.2



"Andreas  Metzler" <ametzler@lion.cc> writes:

> Gibt es inn 2.2 eigentlich auch als  Debian-package? Ich braeuchte diese
> Version, da es den INN-Message-ID-patch von nethammer.qad.org nur fuer
> diese version gibt.

Und?
Du mußt ja nicht _genau diesen_ Patch nehmen.

Beim 1.7.2er ist das noch trivialer.
Zuständig ist nur lib/genid.c

So sieht das abgeändert aus:
(ich hoffe, bei der Länge nimmt mir keiner Übel, das hier
reinzudrücken - ein diff zu machen, war mir zu aufwendig ;-)

----------------------------->8--------------------
/*  $Revision: 1.5 $
**
*/
#include <stdio.h>
#include <sys/types.h>
#include "configdata.h"
#include "clibrary.h"
#if	defined(DO_NEED_TIME)
#include <time.h>
#endif	/* defined(DO_NEED_TIME) */
#include <sys/time.h>
#include "libinn.h"


/* Scale time back a bit, for shorter Message-ID's. */
#define OFFSET	673416000L

char *
GenerateMessageID()
{
    static char		buff[SMBUF];
    static int		count;
    char		*p;
    char		sec32[10];
    char		pid32[10];
    TIMEINFO		Now;

    if (GetTimeInfo(&Now) < 0)
	return NULL;
    Radix32((unsigned long)Now.time - OFFSET, sec32);
    Radix32((unsigned long)getpid(), pid32);

    if ((p = GetConfigValue("messageid")))
       (void)sprintf(buff, "<%s$%s%d%s>", sec32, pid32, ++count, p);
    else {
      if ((p = GetFQDN()) == NULL)
      return NULL;
      (void)sprintf(buff, "<%s$%s$%d@%s>", sec32, pid32, ++count, p);
    }
    return buff;
}
------------------------------->8-------------------------------

In /etc/news/inn.conf kommt dann noch ein entsprechender Eintrag

messageid: -email@provider.tld

oder ähnlich.
Fertig.

cu,

marcus

-- 
"Only wimps use tape backup: _real_ men just upload their important stuff
on ftp, and let the rest of the world mirror it ;)"
(Linus Torvalds, about his failing hard drive on linux.cs.helsinki.fi)
eMail: bofh@bogomips.de
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     735


Reply to: