]> git.mikk.net Git - liburl/log
liburl
15 years agoPlug a couple memory leaks.
Chris Mikkelson [Sun, 14 Mar 2010 16:40:36 +0000 (16:40 +0000)]
Plug a couple memory leaks.

15 years agoAllow URL hostnames with "-" characters...
chris mikkelson [Sat, 13 Mar 2010 19:38:22 +0000 (13:38 -0600)]
Allow URL hostnames with "-" characters...

15 years agoText URL regexp correction.
chris mikkelson [Sat, 13 Mar 2010 19:26:56 +0000 (13:26 -0600)]
Text URL regexp correction.

15 years agoIncrease DFA workspace to previously-used (erroneous, but working)
chris mikkelson [Sat, 13 Mar 2010 19:26:17 +0000 (13:26 -0600)]
Increase DFA workspace to previously-used (erroneous, but working)
value.

15 years agoGuard against null/nulled result pointer in re_stream_exec()
chris mikkelson [Sat, 13 Mar 2010 19:06:40 +0000 (13:06 -0600)]
Guard against null/nulled result pointer in re_stream_exec()

15 years agoUse non-generic pointer type in text_finish.
chris mikkelson [Sat, 13 Mar 2010 19:05:28 +0000 (13:05 -0600)]
Use non-generic pointer type in text_finish.

15 years agoFix logic error in content-transfer-encoding parsing.
chris mikkelson [Sat, 13 Mar 2010 19:04:46 +0000 (13:04 -0600)]
Fix logic error in content-transfer-encoding parsing.

15 years agoFix usage of pcre_copy_substring -- return value of pcre_exec is not
chris mikkelson [Sat, 13 Mar 2010 18:03:33 +0000 (12:03 -0600)]
Fix usage of pcre_copy_substring -- return value of pcre_exec is not
usable as the stringcount if match is PCRE_ERROR_PARTIAL.

15 years agoRemoved dead/obsolete code from base64.c.
chris mikkelson [Sat, 13 Mar 2010 05:42:58 +0000 (23:42 -0600)]
Removed dead/obsolete code from base64.c.

15 years agoFix usage of pcre_dfa_exec and pcre_copy_substring.
chris mikkelson [Sat, 13 Mar 2010 04:41:18 +0000 (22:41 -0600)]
Fix usage of pcre_dfa_exec and pcre_copy_substring.

15 years agoInitialize "hdralloc" field of message_state structure.
chris mikkelson [Sat, 13 Mar 2010 04:40:25 +0000 (22:40 -0600)]
Initialize "hdralloc" field of message_state structure.

15 years agoRemoved obsolete decoders.h
chris mikkelson [Sat, 13 Mar 2010 01:44:07 +0000 (19:44 -0600)]
Removed obsolete decoders.h

15 years agoRewrite base64 processing loop, and handle errors.
chris mikkelson [Fri, 12 Mar 2010 22:18:01 +0000 (16:18 -0600)]
Rewrite base64 processing loop, and handle errors.

15 years agoConvert variables which may hold a -1 error return to signed.
chris mikkelson [Fri, 12 Mar 2010 21:26:10 +0000 (15:26 -0600)]
Convert variables which may hold a -1 error return to signed.

15 years agoMake module initiation cascade to modules which may be used. Guard
chris mikkelson [Thu, 11 Mar 2010 22:03:29 +0000 (16:03 -0600)]
Make module initiation cascade to modules which may be used.  Guard
initialization from multiple invocations.

15 years agoURL extraction fixes -- Add more robust text/plain URL regecxp,
chris mikkelson [Thu, 11 Mar 2010 21:34:56 +0000 (15:34 -0600)]
URL extraction fixes -- Add more robust text/plain URL regecxp,
use html-specific regexp for html module, and extract both
anchor (<a href=) and image (<img src=) URLs.

15 years agoMerged text module initialization, updated regexps.
chris mikkelson [Thu, 11 Mar 2010 20:53:25 +0000 (14:53 -0600)]
Merged text module initialization, updated regexps.

15 years agoMerged html.c into text.c -- almost all code overlapped.
chris mikkelson [Thu, 11 Mar 2010 20:29:26 +0000 (14:29 -0600)]
Merged html.c into text.c -- almost all code overlapped.

15 years agoAdded callbacks with data to msgproc structure, and called them from
chris mikkelson [Thu, 11 Mar 2010 20:12:42 +0000 (14:12 -0600)]
Added callbacks with data to msgproc structure, and called them from
text and html modules.

15 years agoFix bounds-checking error in quoted-printable decoding loop.
chris mikkelson [Thu, 11 Mar 2010 19:41:54 +0000 (13:41 -0600)]
Fix bounds-checking error in quoted-printable decoding loop.

15 years ago(re)initialize sre->result in re_stream_start().
chris mikkelson [Thu, 11 Mar 2010 19:39:13 +0000 (13:39 -0600)]
(re)initialize sre->result in re_stream_start().

15 years agoMostly complete and working msgproc_message module.
chris mikkelson [Wed, 10 Mar 2010 05:11:27 +0000 (23:11 -0600)]
Mostly complete and working msgproc_message module.

15 years agoPreliminary implementation of message/rfc822 and multipart part processor.
chris mikkelson [Wed, 10 Mar 2010 04:14:04 +0000 (22:14 -0600)]
Preliminary implementation of message/rfc822 and multipart part processor.

15 years agoFix stack-garbage bug in quoted-printable decoder.
chris mikkelson [Thu, 11 Mar 2010 04:40:27 +0000 (22:40 -0600)]
Fix stack-garbage bug in quoted-printable decoder.

15 years agoSet default 'next module' for multipart module.
chris mikkelson [Thu, 11 Mar 2010 04:39:56 +0000 (22:39 -0600)]
Set default 'next module' for multipart module.

15 years agoConverted quoted-printable decoder to msgproc API.
chris mikkelson [Wed, 10 Mar 2010 04:46:41 +0000 (22:46 -0600)]
Converted quoted-printable decoder to msgproc API.

15 years agoFix free(NULL) condition.
chris mikkelson [Wed, 10 Mar 2010 01:12:02 +0000 (19:12 -0600)]
Fix free(NULL) condition.

15 years agoRemove debug prints, etc.
chris mikkelson [Wed, 10 Mar 2010 00:23:54 +0000 (18:23 -0600)]
Remove debug prints, etc.

15 years agoAdded dependencies to 'tags' target.
chris mikkelson [Wed, 10 Mar 2010 00:22:23 +0000 (18:22 -0600)]
Added dependencies to 'tags' target.

15 years agoMore robust test of "end of parts" boundary -- compile second
chris mikkelson [Tue, 9 Mar 2010 22:43:36 +0000 (16:43 -0600)]
More robust test of "end of parts" boundary -- compile second
regexp for end boundary, and check matched boundary line against
this.

15 years agoConvert multipart splitting to use stream regexps. Fix some
chris mikkelson [Tue, 9 Mar 2010 18:25:21 +0000 (12:25 -0600)]
Convert multipart splitting to use stream regexps.  Fix some
stream regexp logic bugs found in the process.

15 years agoAdded 'tags' target
chris mikkelson [Tue, 9 Mar 2010 22:01:47 +0000 (16:01 -0600)]
Added 'tags' target

15 years agoMake multipart module's next module type a module parameter.
chris mikkelson [Tue, 9 Mar 2010 01:01:36 +0000 (19:01 -0600)]
Make multipart module's next module type a module parameter.

15 years agoAdd multipart.o to library target.
chris mikkelson [Tue, 9 Mar 2010 00:51:59 +0000 (18:51 -0600)]
Add multipart.o to library target.

15 years agoAdded MSGPROC_TEST module type for testing purposes. Each test case
chris mikkelson [Tue, 9 Mar 2010 00:50:22 +0000 (18:50 -0600)]
Added MSGPROC_TEST module type for testing purposes.  Each test case
will need to define their own test module.

15 years agoCorrect recursion in msgproc_finish, and add recursion to msgproc_start.
chris mikkelson [Sun, 28 Feb 2010 15:48:14 +0000 (09:48 -0600)]
Correct recursion in msgproc_finish, and add recursion to msgproc_start.

15 years agoCheck that module methods are supplied before attempting to call them.
chris mikkelson [Sun, 28 Feb 2010 05:22:58 +0000 (23:22 -0600)]
Check that module methods are supplied before attempting to call them.

15 years agoAdded Makefile.
chris mikkelson [Sun, 28 Feb 2010 00:55:47 +0000 (18:55 -0600)]
Added Makefile.

15 years agogitignore file added.
chris mikkelson [Sun, 28 Feb 2010 00:55:29 +0000 (18:55 -0600)]
gitignore file added.

15 years agoFixed type mismatches, missing includes, etc.
chris mikkelson [Sun, 28 Feb 2010 00:45:03 +0000 (18:45 -0600)]
Fixed type mismatches, missing includes, etc.

16 years agoUse correct element names for linkage. Should just use sys/queue.h
chris mikkelson [Thu, 5 Feb 2009 19:17:13 +0000 (13:17 -0600)]
Use correct element names for linkage.  Should just use sys/queue.h
and be done with it...

16 years agoAdded code to split multipart media into parts. At a boundary, data
chris mikkelson [Thu, 29 Jan 2009 03:53:02 +0000 (21:53 -0600)]
Added code to split multipart media into parts.  At a boundary, data
is flushed downstream, the downstream processors are terminated, and
if more parts are expected, a new downstream processor is started.

Downstream processor is the "part" type, which looks for headers
to decide content type / encoding.

16 years agoRecursively call msgproc_finish on downstream msgprocs. The
chris mikkelson [Thu, 29 Jan 2009 03:23:14 +0000 (21:23 -0600)]
Recursively call msgproc_finish on downstream msgprocs.  The
finish routine of the module is responsible for freeing the module
with msgproc_free.

16 years agoImplemented new module (msgproc_module) and module instance (msgproc)
chris mikkelson [Tue, 27 Jan 2009 04:49:54 +0000 (22:49 -0600)]
Implemented new module (msgproc_module) and module instance (msgproc)
interface.  This allows each processing module to consume/advertise only
one global symbol, as opposed to 4-5 previously.

The HTML, text, and base64 modules have been moved from the old interface
to the new.  Base64 has furthermore become self-contained.

When the quoted-printable code is module-ified, the decoders.h file
can go away.

parser.h and parser.c were removed as they were specific to the old interface,
used to collect the growing number of public symbols for each module.

16 years agoCorrected return codes of regexp result functions.
chris mikkelson [Mon, 26 Jan 2009 05:46:47 +0000 (23:46 -0600)]
Corrected return codes of regexp result functions.

16 years agocallback needs arguments...
chris mikkelson [Mon, 26 Jan 2009 05:45:42 +0000 (23:45 -0600)]
callback needs arguments...

16 years agoMoved html and text parsers into separate files, and fleshed
chris mikkelson [Mon, 26 Jan 2009 05:44:14 +0000 (23:44 -0600)]
Moved html and text parsers into separate files, and fleshed
out their implementation in the process.  Other parsers will also
be in their own files, eventually.

16 years agoBeginnings of a URL extraction library for e-mail messages.
chris mikkelson [Mon, 26 Jan 2009 04:39:11 +0000 (22:39 -0600)]
Beginnings of a URL extraction library for e-mail messages.

General plumbing is complete, as are the stream-based regexp
matcher, base64, and quoted-printable decoder.

Next steps are basic header parsing (regexp-based?), MIME
boundary extraction and matching.