- Sep 01, 2004
-
-
rswindell authored
Using BOOL macros instead of int's and numeric constants.
-
rswindell authored
message (in memory) as already hashed with smb_hashmsg(), preventing redundant hashing by smb_addmsghdr(). Using SMB_SUCCESS instead of 0. Fixed a case where smb_addmsghdr() could return without calling smb_unlocksmbhdr() if the header was an invalid header length (too large). smb_addmsghdr() now hashes the header fields if the message has not already been hashed with smb_hashmsg() before allocating header blocks and will return a failure (SMB_DUPE_MSG) with detail in smb.last_error if a duplicate hash was found - new feature of smb_hashmsg().
-
rswindell authored
message (in memory) as already hashed with smb_hashmsg(), preventing redundant hashing by smb_addmsghdr().
-
rswindell authored
-
rswindell authored
-
rswindell authored
smb_addmsghdr() calls smb_hashmsg() again (with update=TRUE).
-
rswindell authored
-
rswindell authored
-
- Aug 31, 2004
-
-
rswindell authored
-
rswindell authored
-
rswindell authored
Created convenience functions and macros for fast message index or header look-ups based on hashed header fields (i.e. message-IDs).
-
deuce authored
Include ciolib.h for that... this means I need to do the __COLORS and BLINK dnace... should something be done about that?
-
deuce authored
-
deuce authored
-
deuce authored
on platforms that don't implement it (ie: Linux/FreeBSD) but since there's no official release for those, it doesn't matter yet. Using project files instead of make files until I figure out a nice way of having then co-exist with the Borland makefiles.
-
- Aug 30, 2004
-
-
rswindell authored
-
rswindell authored
(mark) to indicate whether to mark all found hashes (or stop on first found).
-
rswindell authored
mark found hashes and only write the not-found hashes to disk, rather than not writing *any* hashes (when any match) because the message is a "dupe". When update is false, the behavior is the same as before.
-
rswindell authored
(using smb_close_fp).
-
rswindell authored
-
rswindell authored
-
rswindell authored
Created smb_hashstr() to create hashes of ASCIIZ data.
-
rswindell authored
-
rswindell authored
-
rswindell authored
Don't set binary _fmode for Win32 (we want carriage returns in the log file).
-
rswindell authored
-
rswindell authored
-
rswindell authored
hash values are found in the smb.hash file (new feature). Prints note about using 'fixsmb' to repair/update message bases upon error(s).
-
rswindell authored
-
rswindell authored
-
rswindell authored
-
rswindell authored
New smb.hash file uses multiple hashing methods (CRC-16, CRC-32 and MD5) to calculate hashes of various "distinguishing marks" (e.g. message ID and body text) to create a permanent history of message "fingerprints" that can be used for duplicate message detection or fast location of messages based on one of these "distinguishing marks". For example, reading each message header in a message base to find a message with a specific message-ID (i.e. how get_msg_by_id() currently works) significantly slows down message importing with auto-thread linkage (a newly added feature). This hash file will be used to speed this up considerably as well as improve duplicate message detection. This feature is supported with the following new smblib functions: smb_findhash, smb_hashmsg, smb_hash, smb_msghashes, and smb_addhashes. smb_addmsghdr() currently calls smb_hashmsg(), but this will probably change with yet another new function call (smb_addmsg?) which will have access to the body text (a very useful hash for duplicate message detection). Existing SMB message bases will not have an existing .hash file (chksmb will "missing hash" errors), but fixsmb can be used to create the .hash file for existing message bases. Other than the chksmb errors, there are no real problems with missing hashes, accept for the potential for failed auto-thread linkage when importing replies to existing messages. Over time, this will fix itself as new messages are imported and their hashes are stored automatically. Projects using smblib now must link with crc16.c, crc32.c, and md5.c. Other changes: Created GETMSGTXT_TAIL_ONLY convenience macro. smb_open/close_ha/da functions are now just macros to the new smb_open_fp and smb_close_fp functions. These functions were 99% redundant. New macros smb_open/close_hash also point to smb_open/close_fp. More use of SAFEPRINTF macros and safe_snprintf().
-
rswindell authored
-
rswindell authored
FREE_AND_NULL, FREE_LIST, and FREE_LIST_ITEMS.
-
deuce authored
states.
-
deuce authored
-
deuce authored
-
deuce authored
or otherwise usefull at this time.
-
- Aug 29, 2004
-
-
rswindell authored
Added comments regarding binarydecoder.ini file format.
-
- Aug 28, 2004
-
-
rswindell authored
-