citadel.git
12 months agotools.c: bugfixes to trim functions (Phil Slack)
Art Cancro [Thu, 4 May 2023 22:14:10 +0000 (18:14 -0400)]
tools.c: bugfixes to trim functions (Phil Slack)

libcitadel/lib/tools.c
  stripout()
    Strips too many characters.  Causes incorrect From address on inbound and probably other places.
       stripout(“Foobar<foobar@foobar.com>”) = Fooba.  Should be Foobar
    Mangles multiple boundaries. Should strip using outer boundaries.
      stripout(“ABC()(DEF)()GHI”) = ABC()(DEFGHI.  Should return ABCGHI.
  stripallbut()
    Handle outer boundaries like stripout()
      stripallbut(“ABC()(DEF)()GHI”) returns unchanged.  Should return )(DEF)(
    Code does a stderr flush.  Not sure why, but left it in.
  string_trimlen()
    Removed function.  Not used anywhere in the code and less efficient than string_trim()

12 months agosysdep.c: cprintf() truncation fix (Phil Slack)
Art Cancro [Thu, 4 May 2023 22:11:24 +0000 (18:11 -0400)]
sysdep.c: cprintf() truncation fix (Phil Slack)

Original code (sysdep.c) assumed a return code of -1 from vsnprintf()
was a truncation.  Actually, it is an output error and the code still
tried to output it.  A return of the buffer size or larger means it was
truncated.  Changed the processing to handle return values properly.

12 months agoput_visit() no longer needs a separate function to generate its index.
Art Cancro [Tue, 2 May 2023 22:29:48 +0000 (18:29 -0400)]
put_visit() no longer needs a separate function to generate its index.

it is simply the first (sizeof(long)*3) bytes of the structure.

12 months agoserv_inboxrules.c: applied patch by Allen (awrdgrs) to make X-Spam-Status work
Art Cancro [Tue, 2 May 2023 03:31:53 +0000 (23:31 -0400)]
serv_inboxrules.c: applied patch by Allen (awrdgrs) to make X-Spam-Status work

12 months agoApply patches sent by Harlow Solutions -- for WebCit
Art Cancro [Tue, 2 May 2023 02:42:14 +0000 (22:42 -0400)]
Apply patches sent by Harlow Solutions -- for WebCit

Fix missing parenthesis in Edit Bio and Wiki empty page
Fix multiple pages and code to start/end <div> sections properly.
In the Summary page, add line breaks to the “About this server” widget to make it more readable.
In contact view (msg_display) fix missing address label title (invalid variable used) and use variables for other labels instead of hard coding.
When displaying Contact address, remove blank lines if P.O. Box or street fields are blank.
subst.c: Expand ITEM format X to allow appending text after a non-blank ITEM value.  Used to add line breaks only on non-blank lines, etc.
download.c and static.c: Fix invalid reference to blank gif because the output function added the request line from original image to the link which is invalid.

12 months agoctdl3264: write to target database
Art Cancro [Mon, 1 May 2023 21:08:34 +0000 (17:08 -0400)]
ctdl3264: write to target database

12 months agoctdl3264: src_dbenv and dst_dbenv are no longer global vars
Art Cancro [Mon, 1 May 2023 20:36:04 +0000 (16:36 -0400)]
ctdl3264: src_dbenv and dst_dbenv are no longer global vars

12 months agoctdl3264: open_dbenv() and close_dbenv() move away from global vars
Art Cancro [Mon, 1 May 2023 20:17:36 +0000 (16:17 -0400)]
ctdl3264: open_dbenv() and close_dbenv() move away from global vars

12 months agoWe are no longer using the EXTAUTH table.
Art Cancro [Thu, 27 Apr 2023 21:54:19 +0000 (17:54 -0400)]
We are no longer using the EXTAUTH table.

Perhaps in the future it will return in some other form.
LDAP auth still uses the uid, so we're searching for that the old way.

12 months agodo-release.sh: change citadel.h to citadel_defs.h
Art Cancro [Thu, 27 Apr 2023 20:48:52 +0000 (16:48 -0400)]
do-release.sh: change citadel.h to citadel_defs.h

12 months agoBegin removing the EXTAUTH database
Art Cancro [Thu, 27 Apr 2023 20:47:20 +0000 (16:47 -0400)]
Begin removing the EXTAUTH database

12 months agoRevert "citserver: remove openid support"
Art Cancro [Wed, 19 Apr 2023 17:32:48 +0000 (13:32 -0400)]
Revert "citserver: remove openid support"

This reverts commit 5e8be0dcc60ca8c0b70ca5fd3107d778db24387b.

12 months agocitserver: remove openid support
Art Cancro [Wed, 19 Apr 2023 17:29:39 +0000 (13:29 -0400)]
citserver: remove openid support

12 months agozero out extauth in ctdl3264
Art Cancro [Wed, 19 Apr 2023 16:56:37 +0000 (12:56 -0400)]
zero out extauth in ctdl3264

12 months agoconvert config records
Art Cancro [Wed, 19 Apr 2023 16:41:55 +0000 (12:41 -0400)]
convert config records

12 months agoconvert usersbynumber
Art Cancro [Wed, 19 Apr 2023 16:31:37 +0000 (12:31 -0400)]
convert usersbynumber

12 months agoeuid index convert
Art Cancro [Tue, 18 Apr 2023 23:02:52 +0000 (19:02 -0400)]
euid index convert

12 months agoPlease excuse my friend, he isn't null terminated
Art Cancro [Mon, 17 Apr 2023 20:35:42 +0000 (16:35 -0400)]
Please excuse my friend, he isn't null terminated

12 months agonice pretty banners
Art Cancro [Mon, 17 Apr 2023 19:50:22 +0000 (15:50 -0400)]
nice pretty banners

12 months agofulltext uses same key and data format as msglists
Art Cancro [Mon, 17 Apr 2023 18:48:41 +0000 (14:48 -0400)]
fulltext uses same key and data format as msglists

12 months agolog messages match and don't repeat for compressed
Art Cancro [Mon, 17 Apr 2023 18:29:05 +0000 (14:29 -0400)]
log messages match and don't repeat for compressed

12 months agoserv_fulltext.c: style update
Art Cancro [Mon, 17 Apr 2023 15:51:39 +0000 (11:51 -0400)]
serv_fulltext.c: style update

12 months agoctdl3264: straightened out the compression stuff
Art Cancro [Mon, 17 Apr 2023 15:41:07 +0000 (11:41 -0400)]
ctdl3264: straightened out the compression stuff

12 months agoconvert bigmsgs
Art Cancro [Fri, 14 Apr 2023 19:21:32 +0000 (15:21 -0400)]
convert bigmsgs

12 months agoIBM i , aka System/38 , really is dead , no matter how much they deny it.
Art Cancro [Fri, 14 Apr 2023 15:36:19 +0000 (11:36 -0400)]
IBM i , aka System/38 , really is dead , no matter how much they deny it.

12 months agoconvert directory entries
Art Cancro [Thu, 13 Apr 2023 23:55:01 +0000 (19:55 -0400)]
convert directory entries

12 months agostuff and things
Art Cancro [Thu, 13 Apr 2023 19:06:34 +0000 (15:06 -0400)]
stuff and things

12 months agovisit translation complete but we still need to compress it
Art Cancro [Thu, 13 Apr 2023 15:39:32 +0000 (11:39 -0400)]
visit translation complete but we still need to compress it

12 months agoThe data format used by GenerateRelationshipIndex() is now codified in the headers
Art Cancro [Thu, 13 Apr 2023 15:24:05 +0000 (11:24 -0400)]
The data format used by GenerateRelationshipIndex() is now codified in the headers

12 months agouncompress when necessary
Art Cancro [Wed, 12 Apr 2023 19:56:05 +0000 (15:56 -0400)]
uncompress when necessary

12 months agodie in a car fire
Art Cancro [Wed, 12 Apr 2023 18:06:35 +0000 (14:06 -0400)]
die in a car fire

12 months agomakefile tweaks
Art Cancro [Wed, 12 Apr 2023 15:53:15 +0000 (11:53 -0400)]
makefile tweaks

12 months agodetect compressed records
Art Cancro [Wed, 12 Apr 2023 15:37:32 +0000 (11:37 -0400)]
detect compressed records

12 months agocopying msglists done
Art Cancro [Wed, 12 Apr 2023 15:12:56 +0000 (11:12 -0400)]
copying msglists done

12 months agoDon't log or rewrite records with zero length keys.
Art Cancro [Wed, 12 Apr 2023 14:52:43 +0000 (10:52 -0400)]
Don't log or rewrite records with zero length keys.

12 months agoconvert floor records
Art Cancro [Tue, 11 Apr 2023 19:29:58 +0000 (15:29 -0400)]
convert floor records

12 months agoconvert next table
Art Cancro [Tue, 11 Apr 2023 14:05:33 +0000 (10:05 -0400)]
convert next table

12 months agofinished user import
Art Cancro [Mon, 10 Apr 2023 21:11:03 +0000 (17:11 -0400)]
finished user import

12 months agoI am a C programmer. I am better than you.
Art Cancro [Mon, 10 Apr 2023 18:58:11 +0000 (14:58 -0400)]
I am a C programmer.  I am better than you.

12 months agoDBT in , DBT out
Art Cancro [Mon, 10 Apr 2023 18:50:06 +0000 (14:50 -0400)]
DBT in , DBT out

12 months agomake a note where we need to decompress
Art Cancro [Mon, 10 Apr 2023 15:53:06 +0000 (11:53 -0400)]
make a note where we need to decompress

12 months agofiguring out db calling syntax...
Art Cancro [Mon, 10 Apr 2023 15:48:15 +0000 (11:48 -0400)]
figuring out db calling syntax...

12 months agoAdded skeleton out_key and out_data
Art Cancro [Mon, 10 Apr 2023 15:42:25 +0000 (11:42 -0400)]
Added skeleton out_key and out_data

12 months agoChanged convert function calling syntax and variable names
Art Cancro [Mon, 10 Apr 2023 15:39:55 +0000 (11:39 -0400)]
Changed convert function calling syntax and variable names

13 months agoparse metadata
Art Cancro [Fri, 7 Apr 2023 17:54:41 +0000 (13:54 -0400)]
parse metadata

13 months agolearn about metadata 32
Art Cancro [Fri, 7 Apr 2023 17:45:44 +0000 (13:45 -0400)]
learn about metadata 32

13 months agoAbort if source database is not 32-bit.
Art Cancro [Fri, 7 Apr 2023 17:29:34 +0000 (13:29 -0400)]
Abort if source database is not 32-bit.

We detect this in the very first table (msgmain) by bailing out if
we see any key with a length other than 4 bytes.

13 months agoIf the msgnum is negative, we are looking at METADATA
Art Cancro [Wed, 5 Apr 2023 14:27:10 +0000 (10:27 -0400)]
If the msgnum is negative, we are looking at METADATA

13 months agomore work on ctdl3264
Art Cancro [Fri, 31 Mar 2023 17:43:25 +0000 (13:43 -0400)]
more work on ctdl3264

13 months agoctdl3264: sooper seekrit command line flag to make it not fail
Art Cancro [Fri, 31 Mar 2023 14:52:16 +0000 (10:52 -0400)]
ctdl3264: sooper seekrit command line flag to make it not fail

13 months agoctdl3264: prepare for new things
Art Cancro [Fri, 31 Mar 2023 01:23:14 +0000 (21:23 -0400)]
ctdl3264: prepare for new things

13 months agoctdl3264: tweaked a few things
Art Cancro [Fri, 31 Mar 2023 01:12:00 +0000 (21:12 -0400)]
ctdl3264: tweaked a few things

13 months agotraverse the tables
Art Cancro [Thu, 30 Mar 2023 21:49:18 +0000 (17:49 -0400)]
traverse the tables

13 months agoctdl3264: open and close one table at a time
Art Cancro [Thu, 30 Mar 2023 19:23:55 +0000 (15:23 -0400)]
ctdl3264: open and close one table at a time

13 months ago`ctdl3264` is back and it's DRY
Art Cancro [Thu, 30 Mar 2023 15:23:03 +0000 (11:23 -0400)]
`ctdl3264` is back and it's DRY

13 months agoRestored `ctdl3264` but disabled it.
Art Cancro [Wed, 29 Mar 2023 18:47:45 +0000 (14:47 -0400)]
Restored `ctdl3264` but disabled it.

We may want to try this again.

13 months agoMore refinements to .ctdl-middle usage
Art Cancro [Tue, 28 Mar 2023 04:21:36 +0000 (00:21 -0400)]
More refinements to .ctdl-middle usage

13 months agoBanished the DarkSlateGrey color in dead-space screen regions.
Art Cancro [Mon, 27 Mar 2023 22:03:44 +0000 (18:03 -0400)]
Banished the DarkSlateGrey color in dead-space screen regions.

13 months agoSlimmed down some of the border elements.
Art Cancro [Mon, 27 Mar 2023 21:57:35 +0000 (17:57 -0400)]
Slimmed down some of the border elements.

User interface is NOT healthy at any weight.

13 months agocolor change
Art Cancro [Mon, 27 Mar 2023 21:42:39 +0000 (17:42 -0400)]
color change

13 months agoChanged the algorithm for quick queue runs to prevent weirdness
Art Cancro [Sun, 19 Mar 2023 01:06:40 +0000 (21:06 -0400)]
Changed the algorithm for quick queue runs to prevent weirdness

13 months agoDon't send the rendered list to the console anymore.
Art Cancro [Mon, 13 Mar 2023 17:52:54 +0000 (13:52 -0400)]
Don't send the rendered list to the console anymore.

13 months agoActivate mouse-up events on rooms in the mail folder list.
Art Cancro [Mon, 13 Mar 2023 17:50:57 +0000 (13:50 -0400)]
Activate mouse-up events on rooms in the mail folder list.

This will be used for drag-and-drop.

13 months agoMailbox view: delete operation moves message to trash, unless we are already in the...
Art Cancro [Mon, 13 Mar 2023 17:32:56 +0000 (13:32 -0400)]
Mailbox view: delete operation moves message to trash, unless we are already in the trash

13 months agoLearn from the Citadel Server whether a room is the user's trash folder.
Art Cancro [Mon, 13 Mar 2023 17:30:08 +0000 (13:30 -0400)]
Learn from the Citadel Server whether a room is the user's trash folder.

13 months agoWhen a message is deleted in a mailbox room, move it to Trash instead of deleting
Art Cancro [Mon, 13 Mar 2023 17:20:17 +0000 (13:20 -0400)]
When a message is deleted in a mailbox room, move it to Trash instead of deleting

13 months agoImplemented RFC4918 MOVE and COPY methods for individual messages.
Art Cancro [Mon, 13 Mar 2023 04:24:51 +0000 (00:24 -0400)]
Implemented RFC4918 MOVE and COPY methods for individual messages.

We need these to be able to move messages between rooms, so of course
it makes sense to use HTTP methods that are already standardized.

13 months agoImplemented an algorithm that can correctly divide by zero.
Art Cancro [Sun, 12 Mar 2023 22:57:20 +0000 (18:57 -0400)]
Implemented an algorithm that can correctly divide by zero.

13 months agodav_move_or_copy_message() skeleton
Art Cancro [Sat, 11 Mar 2023 23:01:01 +0000 (18:01 -0500)]
dav_move_or_copy_message() skeleton

14 months agoInbox rules 'matches' operator now uses regular expressions.
Art Cancro [Fri, 10 Mar 2023 00:12:06 +0000 (19:12 -0500)]
Inbox rules 'matches' operator now uses regular expressions.

14 months agoserv_inboxrules.c: compound fields such as From now work with substring match
Art Cancro [Thu, 9 Mar 2023 23:16:18 +0000 (18:16 -0500)]
serv_inboxrules.c: compound fields such as From now work with substring match

14 months agoserv_inboxrules.c: style update
Art Cancro [Thu, 9 Mar 2023 22:36:13 +0000 (17:36 -0500)]
serv_inboxrules.c: style update

14 months agorooms.c: style update
Art Cancro [Tue, 7 Mar 2023 16:04:22 +0000 (11:04 -0500)]
rooms.c: style update

14 months agolicense.txt: updated year
Art Cancro [Tue, 7 Mar 2023 15:50:32 +0000 (10:50 -0500)]
license.txt: updated year

14 months agoserv_instmsg.c: style update
Art Cancro [Tue, 7 Mar 2023 15:49:28 +0000 (10:49 -0500)]
serv_instmsg.c: style update

14 months agoserv_image.c: style update
Art Cancro [Tue, 7 Mar 2023 15:42:37 +0000 (10:42 -0500)]
serv_image.c: style update

14 months agoRelease version 974 generated by do-release.sh v974
Art Cancro [Sun, 5 Mar 2023 20:57:41 +0000 (15:57 -0500)]
Release version 974 generated by do-release.sh

14 months agoBe a little less enthusiastic about calling abort()
Art Cancro [Sun, 5 Mar 2023 20:57:21 +0000 (15:57 -0500)]
Be a little less enthusiastic about calling abort()

14 months agoPreparing to implement MOVE and COPY methods
Art Cancro [Sun, 5 Mar 2023 16:33:02 +0000 (11:33 -0500)]
Preparing to implement MOVE and COPY methods

14 months agoNew class "ctdl-fatal-error" for big show-stopping banners.
Art Cancro [Sun, 5 Mar 2023 15:59:32 +0000 (10:59 -0500)]
New class "ctdl-fatal-error" for big show-stopping banners.

The infamous "this program cannot connect to the Citadel Server" error
uses this.

14 months agoMore aggressive zeroing of visit records so they compress better
Art Cancro [Sat, 4 Mar 2023 17:59:42 +0000 (12:59 -0500)]
More aggressive zeroing of visit records so they compress better

14 months agomore diagnostics
Art Cancro [Sun, 26 Feb 2023 21:11:30 +0000 (16:11 -0500)]
more diagnostics

14 months agoRelease version 973 generated by do-release.sh v973
Art Cancro [Sun, 26 Feb 2023 19:22:40 +0000 (14:22 -0500)]
Release version 973 generated by do-release.sh

14 months agoNew command RBDI to ReBuild the Directory Index.
Art Cancro [Sun, 26 Feb 2023 19:22:21 +0000 (14:22 -0500)]
New command RBDI to ReBuild the Directory Index.

Seems to be needed after a migrate.

14 months agoRemoved ctdl3264 experiment.
Art Cancro [Sat, 25 Feb 2023 17:19:08 +0000 (12:19 -0500)]
Removed ctdl3264 experiment.

Dammit.  How did I get this far before realizing that there is no point in
doing this.  The message base may be free of any packed binary data, but it
is INDEXED by a packed long integer.  This means we'd have to rewrite the
entire thing anyway, and at that point there isn't any time savings over
just doing a ctdlmigrate.

So I am abandoning this effort and I'm just going to have to take my
system offline for an entire weekend to do the migration to 64-bit.  It is
long overdue.

14 months agoctdl3264: open and close databases
Art Cancro [Wed, 22 Feb 2023 05:14:07 +0000 (00:14 -0500)]
ctdl3264: open and close databases

14 months agowtf
Art Cancro [Sat, 18 Feb 2023 17:28:44 +0000 (12:28 -0500)]
wtf

14 months agoadd total to purged use table records
Art Cancro [Wed, 15 Feb 2023 00:11:03 +0000 (19:11 -0500)]
add total to purged use table records

why is this table so big?

14 months agomore convert
Art Cancro [Tue, 14 Feb 2023 15:24:44 +0000 (10:24 -0500)]
more convert

14 months ago"visit" is now "struct visit" again.
Art Cancro [Tue, 14 Feb 2023 15:15:59 +0000 (10:15 -0500)]
"visit" is now "struct visit" again.

14 months agocleaned up 32
Art Cancro [Tue, 14 Feb 2023 15:01:32 +0000 (10:01 -0500)]
cleaned up 32

14 months agoreorganize the comments meow
Art Cancro [Tue, 14 Feb 2023 14:49:05 +0000 (09:49 -0500)]
reorganize the comments meow

14 months agoupdated .gitignore
Art Cancro [Tue, 14 Feb 2023 14:36:51 +0000 (09:36 -0500)]
updated .gitignore

14 months agoExperimental utility ctdl3264 for database conversion (not finished)
Art Cancro [Tue, 14 Feb 2023 14:36:05 +0000 (09:36 -0500)]
Experimental utility ctdl3264 for database conversion (not finished)

14 months agomoved more defs from server.h to citadel_defs.h
Art Cancro [Sun, 12 Feb 2023 22:04:27 +0000 (17:04 -0500)]
moved more defs from server.h to citadel_defs.h

14 months agomove stuff around
Art Cancro [Sun, 12 Feb 2023 00:09:26 +0000 (19:09 -0500)]
move stuff around

14 months agocitadel.h is now citadel_defs.h
Art Cancro [Sun, 12 Feb 2023 00:05:59 +0000 (19:05 -0500)]
citadel.h is now citadel_defs.h

14 months agoMoved from citadel.h to server.h
Art Cancro [Sat, 11 Feb 2023 23:42:59 +0000 (18:42 -0500)]
Moved  from citadel.h to server.h

14 months agoMoved from citadel.h to server.h
Art Cancro [Sat, 11 Feb 2023 23:41:55 +0000 (18:41 -0500)]
Moved  from citadel.h to server.h

14 months agoRemoved references to as opposed to
Art Cancro [Sat, 11 Feb 2023 23:31:06 +0000 (18:31 -0500)]
Removed references to  as opposed to