[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] [2.0][PATCH] log objectionable Message-ID in
on 7/15/02 12:21 AM, Ralf Wildenhues at wildenhu@xxxxxxxxxxxxxxx wrote:
> * Jeff Grossman wrote on Mon, Jul 15, 2002 at 06:09:42AM CEST:
>>
>> Thanks for the patch, but I am running 2.0b8_ma10pre3.3.
>
> Against current snapshot (released shortly after your post):
>
> --- leafnode-2.0-snapshot-20020715a/nntpd.orig.c Mon Jul 15 09:07:06 2002
> +++ leafnode-2.0-snapshot-20020715a/nntpd.c Mon Jul 15 09:13:16 2002
> @@ -1509,6 +1509,7 @@
> if (havemessageid) {
> struct stat st;
>
> + ln_log(LNLOG_SDEBUG, LNLOG_CARTICLE, "debug Message-ID: %s", mid);
> if (!validate_messageid(mid)) {
> nntpprintf("441 Invalid Message-ID: header, article not posted");
> log_unlink(inname, 0);
>
>
>
> Against 2.0b8_ma10pre3.3:
>
> --- leafnode-2.0b8_ma10pre3.3/nntpd.orig.c Mon Jul 15 09:14:31 2002
> +++ leafnode-2.0b8_ma10pre3.3/nntpd.c Mon Jul 15 09:13:21 2002
> @@ -1486,6 +1486,7 @@
> if (havemessageid) {
> struct stat st;
>
> + ln_log(LNLOG_SDEBUG, LNLOG_CARTICLE, "debug Message-ID: %s", mid);
> if (!validate_messageid(mid)) {
> nntpprintf("441 Invalid Message-ID: header, article not posted");
> log_unlink(inname);
>
>
> Note that these patches only output the Message-ID to the syslog if they
> were provided by the news reader (leafnode suggests a Message-ID), and
> with level LOG_DEBUG. Note that if you pipe this post directly into
> patch, one of the hunks _will_ fail ;-)
>
> Regards,
> Ralf
Thank you. I will give it a try later tonight when I get home. One quick
question. I don't use patch much, what is the command to patch the above?
Thanks,
Jeff
--
Jeff Grossman (jeff@xxxxxxxxxxxxx)
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list