BOUNCE htdig: Admin request


owner-htdig@sdsu.edu
Thu, 17 Dec 1998 12:27:40 -0800 (PST)


>From andrew@contigo.com Thu Dec 17 12:27:37 1998
Received: from ns1.dcomm.com ([209.36.63.225])
        by sdsu.edu (8.8.7/8.8.7) with ESMTP id MAA00552
        for <htdig@sdsu.edu>; Thu, 17 Dec 1998 12:27:13 -0800 (PST)
From: tom@dcomm.com
Received: from localhost (tom@localhost) by ns1.dcomm.com (8.8.5/8.7.3) with SMTP id QAA14380; Thu, 17 Dec 1998 16:06:59 -0500
Date: Thu, 17 Dec 1998 16:06:58 -0500 (EST)
To: Geoff Hutchison <ghutchis@wso.williams.edu>
cc: htdig@sdsu.edu
Subject: Re: htdig: max length of titles ?
In-Reply-To: <l03130310b29ed824a517@[137.165.32.66]>
Message-ID: <Pine.LNX.3.93.981217160513.14278A-100000@ns1.dcomm.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Thanks for your help. works great now..

        if (strlen(title) >= 128)
                title[128]='\0';

Tom

On Thu, 17 Dec 1998, Geoff Hutchison wrote:

> At 10:40 PM -0500 12/16/98, Tom wrote:
> >I'd like to keep the title down to 5-8 words if i could or a certain
> >number of bytes or characters..
>
> If you don't mind patching the code, it's pretty easy. You'd go into
> htdig/Retriever.cc and look for the "Retriever::got_title" method. Then you
> put in a test for the length of the title and insert a null in the
> appropriate place if it's too long.
>
> I'd supply a short patch, but I should get back to work.
> Good luck!
>
> -Geoff Hutchison
> Williams Students Online
> http://wso.williams.edu/
>
>
> ----------------------------------------------------------------------
> To unsubscribe from the htdig mailing list, send a message to
> htdig-request@sdsu.edu containing the single word "unsubscribe" in
> the body of the message.
>



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:29:53 PST