citadel.git
15 years ago* remove old (replaced) code
Wilfried Göesgens [Mon, 24 Nov 2008 22:14:03 +0000 (22:14 +0000)]
* remove old (replaced) code
* name it Tokens consistantly...
* use the generic token escaping logic
* QP-Decode Mime Name

15 years ago* escape roomname properly
Wilfried Göesgens [Mon, 24 Nov 2008 00:11:49 +0000 (00:11 +0000)]
* escape roomname properly

15 years ago* add transitional beginboxx template and move some places to the new syntax
Wilfried Göesgens [Sun, 23 Nov 2008 23:21:18 +0000 (23:21 +0000)]
* add transitional beginboxx template and move some places to the new syntax
* finish preferences settings via templates
* add new settings to pre-select from/name/handle in case of email / posting into forums
* find some more missing error messages in the templating...

15 years ago* finish selectboxes in Mailedit dialogs
Wilfried Göesgens [Sun, 23 Nov 2008 18:22:20 +0000 (18:22 +0000)]
* finish selectboxes in Mailedit dialogs
* new templating mechanism: if prepended by : ; _ B the tokens can be loaded via preferences / gettext / bstr
* start implementing preferences screen with templates
* fix some tiny bugs

15 years agoAAAAAAAAAAARRRRRRRRGGGGGGGHHH TIME ZONES F%$&%^*%$^ING SUCK
Art Cancro [Fri, 21 Nov 2008 22:36:59 +0000 (22:36 +0000)]
AAAAAAAAAAARRRRRRRRGGGGGGGHHH TIME ZONES F%$&%^*%$^ING SUCK

15 years agoremoved some spurious debugs
Art Cancro [Fri, 21 Nov 2008 15:12:42 +0000 (15:12 +0000)]
removed some spurious debugs

15 years ago* map room-flags into conditionals
Wilfried Göesgens [Thu, 20 Nov 2008 23:40:23 +0000 (23:40 +0000)]
* map room-flags into conditionals
* more work on the central token escaping
* finetune BSTR tokens...
* finish message editing post/mail diversification
* add RFCA to our message the Reply button

15 years ago* make it const baby... not yet done.
Wilfried Göesgens [Thu, 20 Nov 2008 23:36:39 +0000 (23:36 +0000)]
* make it const baby... not yet done.

15 years agoSaving events from a web form now uses icaltime_from_timet_with_zone().
Art Cancro [Thu, 20 Nov 2008 22:33:24 +0000 (22:33 +0000)]
Saving events from a web form now uses icaltime_from_timet_with_zone().
This did not have the effect that I thought it would.  It's converting to UTC, which results in the correct time being used, but I wanted the timezone to be attached as a parameter so a reader would convert
it on the fly.

15 years agoFixed a serious problem with IMAP header fetch. memreadline() returns a pointer...
Art Cancro [Thu, 20 Nov 2008 21:09:55 +0000 (21:09 +0000)]
Fixed a serious problem with IMAP header fetch.  memreadline() returns a pointer to the *next* line, or null if we're at the end.  In the IMAP header parsing routine we were checking for null at the top of a while loop, where we should have been checking for null at the end of a do-while loop.  As a result, the last header line was being discarded under any circumstances.

15 years ago* catch more render bugs
Wilfried Göesgens [Thu, 20 Nov 2008 00:16:01 +0000 (00:16 +0000)]
* catch more render bugs
* implement local recipient display with hostname if we don't hae a RFCA header.

15 years ago* close all divs
Wilfried Göesgens [Wed, 19 Nov 2008 22:39:33 +0000 (22:39 +0000)]
* close all divs

15 years ago* rework who.c so it doesn't use svput() and friends but rather preregistered callbac...
Wilfried Göesgens [Wed, 19 Nov 2008 22:20:57 +0000 (22:20 +0000)]
* rework who.c so it doesn't use svput() and friends but rather preregistered callback hooks (like the other new stuff)
* more syntax error detections and warnings in the template engine...
* change trailing_js to be a static template hook too
* pre-evaluate conditionals too
* swap startup sequence so pre-evaluation actualy works (first register hooks, then parse templates)
* global function to be used by string tmplput hooks which evaluates escaping demanded by template tokens in a central place
* fix spelling in some mobile templates
* move SERV: template hooks into serv_func.c

15 years agoSanitize out backslashes in upload filenames
Art Cancro [Mon, 17 Nov 2008 19:31:56 +0000 (19:31 +0000)]
Sanitize out backslashes in upload filenames
the same way we handle forward slashes.

15 years ago* finish message displaying.
Wilfried Göesgens [Sat, 15 Nov 2008 13:09:57 +0000 (13:09 +0000)]
* finish message displaying.

15 years ago* another try to fix this off by one
Wilfried Göesgens [Fri, 14 Nov 2008 07:50:30 +0000 (07:50 +0000)]
* another try to fix this off by one

15 years ago* add lowercase converter function
Wilfried Göesgens [Thu, 13 Nov 2008 19:22:50 +0000 (19:22 +0000)]
* add lowercase converter function
* fix off by one in increase buffer function

15 years agoRemoved time zone handling from webcit too.
Art Cancro [Wed, 12 Nov 2008 16:59:28 +0000 (16:59 +0000)]
Removed time zone handling from webcit too.
Someone please kill me.

15 years agoBack end calendar handlers in citserver no longer convert
Art Cancro [Wed, 12 Nov 2008 16:50:07 +0000 (16:50 +0000)]
Back end calendar handlers in citserver no longer convert
everything to UTC.  Please do not put this code into production for the next 200 or 300 years
because that's how long it's going to take to debug.

15 years ago* first trick to avoid double-rendering of mime-subparts
Wilfried Göesgens [Tue, 11 Nov 2008 23:15:07 +0000 (23:15 +0000)]
* first trick to avoid double-rendering of mime-subparts

15 years ago* change syntax of read_message
Wilfried Göesgens [Tue, 11 Nov 2008 22:17:33 +0000 (22:17 +0000)]
* change syntax of read_message
* hide wholist queries.
* add citing/forwarding

15 years ago* render submessages.
Wilfried Göesgens [Tue, 11 Nov 2008 00:17:35 +0000 (00:17 +0000)]
* render submessages.

15 years agoForm-to-icalrecur logic for both types of yearly events.
Art Cancro [Mon, 10 Nov 2008 22:39:08 +0000 (22:39 +0000)]
Form-to-icalrecur logic for both types of yearly events.
The recurrence editor is now feature complete.  Unfortunately we are
already seeing the nightmare of time zones causing problems with
events recurring on the wrong day.  Let the dystopic nightmare of
timezone debugging begin.

15 years agoForm-to-icalrecur logic for yearly events,
Art Cancro [Mon, 10 Nov 2008 22:10:43 +0000 (22:10 +0000)]
Form-to-icalrecur logic for yearly events,
select by date or by month/week/day.  By date is complete.

15 years agoForm-to-icalrecur logic for monthly recurring events
Art Cancro [Mon, 10 Nov 2008 21:43:54 +0000 (21:43 +0000)]
Form-to-icalrecur logic for monthly recurring events

15 years ago* migrate message creation to templates (citing still missing)
Wilfried Göesgens [Mon, 10 Nov 2008 00:21:19 +0000 (00:21 +0000)]
* migrate message creation to templates (citing still missing)
* log errors if sv doesn't have a token demanded
* move CSSLOCAL from svput to registerns, as its static (ok, it will learn about a new CSS just after a restart, but thats consistent with our other stuff)

15 years ago* correct function call for wiki mode too.
Wilfried Göesgens [Sun, 9 Nov 2008 16:41:20 +0000 (16:41 +0000)]
* correct function call for wiki mode too.

15 years ago* fix (ab) qp decode test
Wilfried Göesgens [Sun, 9 Nov 2008 12:22:05 +0000 (12:22 +0000)]
* fix (ab) qp decode test
* don't choke on NULL once more

15 years ago* don't choke on empty html messages
Wilfried Göesgens [Sun, 9 Nov 2008 10:16:12 +0000 (10:16 +0000)]
* don't choke on empty html messages

15 years ago* chop messages.c into handy pieces
Wilfried Göesgens [Sun, 9 Nov 2008 09:54:55 +0000 (09:54 +0000)]
* chop messages.c into handy pieces

15 years ago* add ical and vcard rendering
Wilfried Göesgens [Sat, 8 Nov 2008 23:17:37 +0000 (23:17 +0000)]
* add ical and vcard rendering

15 years ago* re-implement anonymous messages
Wilfried Göesgens [Sat, 8 Nov 2008 09:50:13 +0000 (09:50 +0000)]
* re-implement anonymous messages

15 years ago* display attachments in messages as view/download links
Wilfried Göesgens [Fri, 7 Nov 2008 20:57:16 +0000 (20:57 +0000)]
* display attachments in messages as view/download links

15 years ago* fix pointer magic
Wilfried Göesgens [Fri, 7 Nov 2008 00:10:48 +0000 (00:10 +0000)]
* fix pointer magic

15 years ago* put filename reference into token, so we can put in errormessages where we wouldn...
Wilfried Göesgens [Thu, 6 Nov 2008 21:12:25 +0000 (21:12 +0000)]
* put filename reference into token, so we can put in errormessages where we wouldn't have it otherwise.
* split horizon context in iterators; expect one context, provide another into the subiterators
* first work on mime iterators

15 years ago* upgrade hash retriever function, it now takes the usual cloud of parameters as...
Wilfried Göesgens [Thu, 6 Nov 2008 19:28:19 +0000 (19:28 +0000)]
* upgrade hash retriever function, it now takes the usual cloud of parameters as all the others.

15 years ago* put the right pointer into the hash
Wilfried Göesgens [Wed, 5 Nov 2008 23:51:50 +0000 (23:51 +0000)]
* put the right pointer into the hash

15 years ago* detect the QP-coding type 'B' and 'Q' case insensitive
Wilfried Göesgens [Wed, 5 Nov 2008 23:51:17 +0000 (23:51 +0000)]
* detect the QP-coding type  'B' and 'Q' case insensitive
* start detecting non-qp encoded string parts

15 years ago* fix freeing.. well, most of it
Wilfried Göesgens [Wed, 5 Nov 2008 22:07:28 +0000 (22:07 +0000)]
* fix freeing.. well, most of it
* fix iconverting if operating on a buffer in html2html
* strip contenttype attributes before looking up the renderer

15 years agoannotated some places where code needs to be added
Art Cancro [Wed, 5 Nov 2008 18:15:45 +0000 (18:15 +0000)]
annotated some places where code needs to be added

15 years agofixed a compiler warning
Art Cancro [Wed, 5 Nov 2008 17:01:46 +0000 (17:01 +0000)]
fixed a compiler warning

15 years ago/* If the last item in a list of recipients was truncated to a partial address,
Art Cancro [Wed, 5 Nov 2008 16:26:41 +0000 (16:26 +0000)]
/* If the last item in a list of recipients was truncated to a partial address,
 * remove it completely in order to avoid choking libSieve

15 years agoThat didn't work.
Art Cancro [Tue, 4 Nov 2008 21:22:18 +0000 (21:22 +0000)]
That didn't work.

15 years agoExperimental rfc822 output helper that folds lines
Art Cancro [Tue, 4 Nov 2008 19:19:53 +0000 (19:19 +0000)]
Experimental rfc822 output helper that folds lines

15 years agoctdl_iconv_open() remove from citadel and switch to new api
Art Cancro [Tue, 4 Nov 2008 17:55:33 +0000 (17:55 +0000)]
ctdl_iconv_open() remove from citadel and switch to new api

15 years ago* while decoding messages, guess the charset in this sequence:
Wilfried Göesgens [Mon, 3 Nov 2008 23:22:32 +0000 (23:22 +0000)]
* while decoding messages, guess the charset in this sequence:
  * mime header of this message
  * the last charset found while decoding QP header lines
  * the users default charset

15 years ago* if we decode a RFC 822 Message, output the charset we found, so the user can use...
Wilfried Göesgens [Mon, 3 Nov 2008 23:20:50 +0000 (23:20 +0000)]
* if we decode a RFC 822 Message, output the charset we found, so the user can use it later.

15 years ago* remove duplicate function
Wilfried Göesgens [Mon, 3 Nov 2008 22:14:24 +0000 (22:14 +0000)]
* remove duplicate function
* variformat renderer
* fix loop handling

15 years ago* skip all blank lines (even if thep have '>'s in them)
Wilfried Göesgens [Mon, 3 Nov 2008 07:40:49 +0000 (07:40 +0000)]
* skip all blank lines (even if thep have '>'s in them)
* close all <blockquote> remaining open at the end of the message.

15 years ago* plain mail renderer
Wilfried Göesgens [Sun, 2 Nov 2008 23:14:27 +0000 (23:14 +0000)]
* plain mail renderer

15 years ago* reference free handler (Don't free payload ;-)
Wilfried Göesgens [Sun, 2 Nov 2008 23:12:59 +0000 (23:12 +0000)]
* reference free handler (Don't free payload ;-)
* Blob to line chopper: StrBufSipLine()
* buffer iconv wrapper: StrBufConvert()

15 years ago* put QP Decoder intoo its own file
Wilfried Göesgens [Sun, 2 Nov 2008 09:51:11 +0000 (09:51 +0000)]
* put QP Decoder intoo its own file
* templatized message renderer

15 years agoUse AC_CHECK_HEADERS rather than __DARWIN__ macro to include xlocale.h
Matt [Fri, 31 Oct 2008 08:01:26 +0000 (08:01 +0000)]
Use AC_CHECK_HEADERS rather than __DARWIN__ macro to include xlocale.h

15 years agoadd a few #defines to fix OS X
Matt [Fri, 31 Oct 2008 04:28:33 +0000 (04:28 +0000)]
add a few #defines to fix OS X

15 years agoWorking on the header crash sieve bug
Art Cancro [Fri, 31 Oct 2008 02:19:32 +0000 (02:19 +0000)]
Working on the header crash sieve bug

15 years agoRemove the 'Organization:' field from RFC822 output.
Art Cancro [Fri, 31 Oct 2008 02:00:38 +0000 (02:00 +0000)]
Remove the 'Organization:' field from RFC822 output.
It isn't a defined field.  (Seems to be borrowed from usenet.)

15 years ago* fix pre-conditions; since we load & keep the config in the session, we don't need...
Wilfried Göesgens [Thu, 30 Oct 2008 19:23:10 +0000 (19:23 +0000)]
* fix pre-conditions; since we load & keep the config in the session, we don't need the context prerequisite here. Thanks to Samjam for reporting.

15 years agoupdated instructions, noting libsieve and gettext
Matt [Tue, 28 Oct 2008 01:10:59 +0000 (01:10 +0000)]
updated instructions, noting libsieve and gettext

15 years ago* fix browser LANG header evaluation; strbuf migration wasn't complete.
Wilfried Göesgens [Thu, 23 Oct 2008 21:49:21 +0000 (21:49 +0000)]
* fix browser LANG header evaluation; strbuf migration wasn't complete.

15 years ago* handle the two other cases of user modificaion.
Wilfried Göesgens [Thu, 23 Oct 2008 21:18:59 +0000 (21:18 +0000)]
* handle the two other cases of user modificaion.

15 years agomore work on the recurrence editor
Art Cancro [Tue, 21 Oct 2008 21:41:13 +0000 (21:41 +0000)]
more work on the recurrence editor

15 years agomore work on the recurrence editor
Art Cancro [Tue, 21 Oct 2008 16:53:49 +0000 (16:53 +0000)]
more work on the recurrence editor

15 years agomore work on the recurrence editor
Art Cancro [Tue, 21 Oct 2008 16:40:55 +0000 (16:40 +0000)]
more work on the recurrence editor

15 years agorecurrence editor
Art Cancro [Mon, 20 Oct 2008 21:05:33 +0000 (21:05 +0000)]
recurrence editor

15 years ago* directrix1: "Enable host based authentication mode" config option show the right...
Wilfried Göesgens [Sat, 18 Oct 2008 18:29:22 +0000 (18:29 +0000)]
* directrix1: "Enable host based authentication mode" config option show the right value (its showing the inverted value now).

15 years agoaaaaaaaaaaaaaaaaahhhhh more recurrence editor
Art Cancro [Fri, 17 Oct 2008 02:07:54 +0000 (02:07 +0000)]
aaaaaaaaaaaaaaaaahhhhh more recurrence editor

15 years agoTrust the compiler to do short-circuit evaluation.
Art Cancro [Thu, 16 Oct 2008 16:26:33 +0000 (16:26 +0000)]
Trust the compiler to do short-circuit evaluation.

15 years agoTrust the compiler to do short-circuit evaluation.
Art Cancro [Thu, 16 Oct 2008 16:18:30 +0000 (16:18 +0000)]
Trust the compiler to do short-circuit evaluation.

15 years agorecurrence editor stuff
Art Cancro [Thu, 16 Oct 2008 03:09:55 +0000 (03:09 +0000)]
recurrence editor stuff

15 years agorecurrence editor stuff
Art Cancro [Thu, 16 Oct 2008 03:03:29 +0000 (03:03 +0000)]
recurrence editor stuff

15 years agorecurrence editor stuff
Art Cancro [Thu, 16 Oct 2008 02:29:07 +0000 (02:29 +0000)]
recurrence editor stuff

15 years agoAfter calling html_to_ascii() on RSS fields, call
Art Cancro [Wed, 15 Oct 2008 21:22:35 +0000 (21:22 +0000)]
After calling html_to_ascii() on RSS fields, call
striplt() again to strip trailing newline

15 years agoImproved the logic used to determine when a calendar
Art Cancro [Wed, 15 Oct 2008 15:17:19 +0000 (15:17 +0000)]
Improved the logic used to determine when a calendar
month view needs to display 42 boxes instead of 35.  Some months
were displaying a spurious fifth row containing only the next
month or, even worse, a row with a single box for the last day
of the month.

15 years agomore recurring events editor tedium
Art Cancro [Wed, 15 Oct 2008 03:15:39 +0000 (03:15 +0000)]
more recurring events editor tedium

15 years ago* StrBufTrim; port of striplt to strbuf; since the rest of the world calls this Trim...
Wilfried Göesgens [Tue, 14 Oct 2008 22:15:45 +0000 (22:15 +0000)]
* StrBufTrim; port of striplt to strbuf; since the rest of the world calls this Trim(), lets do so too.

15 years agoMore recurrence editor stuff
Art Cancro [Tue, 14 Oct 2008 21:47:17 +0000 (21:47 +0000)]
More recurrence editor stuff

15 years agoMore recurrence editor stuff
Art Cancro [Tue, 14 Oct 2008 21:39:00 +0000 (21:39 +0000)]
More recurrence editor stuff

15 years agoMore work on the recurrence editor.
Art Cancro [Tue, 14 Oct 2008 02:59:13 +0000 (02:59 +0000)]
More work on the recurrence editor.

15 years agoCleaned up some of the comments ... removed vestiges of last year's doxygen experiment
Art Cancro [Tue, 14 Oct 2008 02:27:40 +0000 (02:27 +0000)]
Cleaned up some of the comments ... removed vestiges of last year's doxygen experiment

15 years ago* reworked strbuf RFC822 decoder; its working source -> target now.
Wilfried Göesgens [Sun, 12 Oct 2008 20:56:03 +0000 (20:56 +0000)]
* reworked strbuf RFC822 decoder; its working source -> target now.

15 years ago* DTX: I found a bug in the template that you configure the 'Initial Access Level...
Wilfried Göesgens [Sat, 11 Oct 2008 19:56:36 +0000 (19:56 +0000)]
* DTX: I found a bug in the template that you configure the 'Initial Access Level' and 'Access Level Required to Create Rooms'.

15 years agoRemoved a trace message
Art Cancro [Sat, 11 Oct 2008 04:35:54 +0000 (04:35 +0000)]
Removed a trace message

15 years agoSlight improvement to previous commit. We're still storing
Art Cancro [Sat, 11 Oct 2008 04:33:43 +0000 (04:33 +0000)]
Slight improvement to previous commit.  We're still storing
base calendar events in memory that are out of scope, but we're no longer
storing recurrences that are out of scope.

15 years agoBig change to calendar view functions. We now declare
Art Cancro [Sat, 11 Oct 2008 04:20:03 +0000 (04:20 +0000)]
Big change to calendar view functions.  We now declare
lower and upper bounds before loading calendar items into memory, so that the rendering code
doesn't have to go through thousands of recurrences that span way into the future.  Right now
it only uses this data to know when to stop iterating recurrences, but it could be fine tuned
even more to totally not store calendar items that are out of scope.

15 years agoFixed the mini-calendar month buttons
Art Cancro [Fri, 10 Oct 2008 19:46:04 +0000 (19:46 +0000)]
Fixed the mini-calendar month buttons
and moved the javascript function into the trailing block

15 years agoMoved some calendar view javascript out to the trailing block.
Art Cancro [Fri, 10 Oct 2008 19:22:08 +0000 (19:22 +0000)]
Moved some calendar view javascript out to the trailing block.
Also noticed that the previous/next month buttons in the mini
calendar are now broken.  We need to fix this.

15 years agoWrote a few more lines of code
Art Cancro [Fri, 10 Oct 2008 17:12:05 +0000 (17:12 +0000)]
Wrote a few more lines of code
of the recurrence editor.

15 years agorecurrence editor
Art Cancro [Thu, 9 Oct 2008 21:15:30 +0000 (21:15 +0000)]
recurrence editor

15 years agoApplied dtx's patch which adds the option to flag spam
Art Cancro [Thu, 9 Oct 2008 14:08:27 +0000 (14:08 +0000)]
Applied dtx's patch which adds the option to flag spam
with an extra header instead of rejecting it.

15 years ago* added Edwards files for clamav configuration
Wilfried Göesgens [Tue, 7 Oct 2008 23:35:05 +0000 (23:35 +0000)]
* added Edwards files for clamav configuration

15 years agoCleaned up some bad html
Art Cancro [Mon, 6 Oct 2008 14:48:43 +0000 (14:48 +0000)]
Cleaned up some bad html

15 years agoCleaned up some bad html
Art Cancro [Mon, 6 Oct 2008 14:05:22 +0000 (14:05 +0000)]
Cleaned up some bad html

15 years ago* reorder zlib detection
Wilfried Göesgens [Sun, 5 Oct 2008 19:42:49 +0000 (19:42 +0000)]
* reorder zlib detection

15 years ago* add autoheader for zlib and iconv detection
Wilfried Göesgens [Sun, 5 Oct 2008 15:42:29 +0000 (15:42 +0000)]
* add autoheader for zlib and iconv detection
* upsie. gzip code was never enabled...
* add raw iron stuf for de-qp strbuffer.

15 years ago* configure zlib too, since libcitadel will link it for strbuf
Wilfried Göesgens [Sun, 5 Oct 2008 15:10:47 +0000 (15:10 +0000)]
* configure zlib too, since libcitadel will link it for strbuf
* shuffle library detection so we don't get into troubles
* add empty UI_SILENT to all setup switches, so that its clear we do nothing here

15 years agoadd begin_burst to "citadel version too low" failure
Matt [Sun, 5 Oct 2008 11:54:14 +0000 (11:54 +0000)]
add begin_burst to "citadel version too low" failure

15 years agoCleaned up some templated HTML:
Art Cancro [Sun, 5 Oct 2008 05:23:52 +0000 (05:23 +0000)]
Cleaned up some templated HTML:
* Double percent (such as width=25%%) is a C format string escape.
  Changed those to a single percent (such as width=25%).
* Removed 'px' from table cellpadding and cellspacing attributes.
  Evidently this is illegal as it's always to be specified in pixels.
* Appended some </div> tags with comments denoting which div we think
  we're closing.  There may be a few mismatched ones.

15 years agoOops, put serv_virus.c in the wrong directory. Fixed.
Art Cancro [Sun, 5 Oct 2008 01:22:23 +0000 (01:22 +0000)]
Oops, put serv_virus.c in the wrong directory.  Fixed.

15 years agoApplied the patch to add dtx's ClamAV integration module.
Art Cancro [Sun, 5 Oct 2008 01:20:16 +0000 (01:20 +0000)]
Applied the patch to add dtx's ClamAV integration module.

15 years agodebugging some messy html
Art Cancro [Fri, 3 Oct 2008 18:26:17 +0000 (18:26 +0000)]
debugging some messy html