[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
NewsCache regular expression Patch
From: Straub Herbert ####@####.#### Date: 27 Nov 2003 13:23:46 -0000 Message-Id: <3365692EA1026A498A5DB41801AE2DB5CCE3D0@xcwrk2.xund.magwien.gv.at> Hallo Konstantin, i have tested your patch with NewsCache-1.1.90 and i think it is working. Some minor details are unclear: 1) why you comment out the memset function call in util.c machgroup(...)? 2) Compiler Warning c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../NVClasses-0.9.1 -Wall -g -c util.cc util.cc: In function `int matchgroup(const char*, const char*)': util.cc:78: warning: unused variable `size_t match_num' 3) In your first mail your example Configuration should be: Server news.prov.net nntp { > Retries 3 > Read .*,!porno,!adult,!sex,!^alt,!picture,!erotic > PostTo .* > GroupTimeout 150 .* instead of * (man 7 regex). Is this right? I try to use instead of rules[15][255] the STL vector implementation with the goal: eleminating the boundary limit. Second i try to implement your new feature to the Read, Post, List access block in the client section. Optionally with a sflag in the newscache.conf if the Thomas Gschwind or your new regex matching algorithm should be used. This could be take some time. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re[6]: NewsCache Regular Expression Patch
From: Konstantin Nikonenko ####@####.#### Date: 10 Dec 2003 07:37:41 -0000 Message-Id: <57754232398.20031210091006@d-sto.com> Hello Herbert, I found core, and gdb say next (gdb) where #0 0x08057a44 in std::string* std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, std::string*>(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, std::string*, __false_type) () #1 0x08058745 in std::string* std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, std::string*>(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, std::string*, __false_type) () #2 0x0805a3ce in std::string* std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, std::string*>(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, std::string*, __false_type) () #3 0x0804bfa2 in std::string::append(char const*, unsigned) () are u have any ideas? -- Cheers, Konstantin Nikonenko http://www.kot.dp.ua/ Spetztekhosnastka JSC http://www.d-sto.com/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |