Thread View: news.software.nntp
1 messages
1 total messages
Started by Jan Hrdonka
Thu, 14 Aug 1997 00:00
diff.org.hdr patch
Author: Jan Hrdonka
Date: Thu, 14 Aug 1997 00:00
Date: Thu, 14 Aug 1997 00:00
36 lines
1477 bytes
1477 bytes
If anyone is interested, here is simple nnrpd patch, which allows
you to choose a different Organization: header for NNTP clients.
Regards,
H.
# nnrp.access config file has to have 5th field - Organization string;
# a NNTP client can set Organization: header itself; if it doesn't
# and 5th field mentioned above is empty, a string from inn.conf will
# be used; if 5th field isn't empty, it's string will be used
*** nnrpd.c.old
--- nnrpd.c
***************
*** 320 ***
! char *fields[5];
--- 320 ---
! char *fields[6];
***************
*** 345 ***
! if (i != 4)
--- 345 ---
! if (i != 5)
***************
*** 370,371 ***
(void)strcpy(accesslist, fields[4]);
found = TRUE;
--- 370,373 ---
(void)strcpy(accesslist, fields[4]);
+ if (*fields[5] != '\0')
+ setenv(_ENV_ORGANIZATION, fields[5], 1);
found = TRUE;
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads