Art Cancro [Mon, 8 Dec 2008 22:16:14 +0000 (22:16 +0000)]
* Shuffled some code around in serv_calendar.c
We are preparing to add VTIMEZONE subcomponents to
meeting invitations when necessary. (Not done yet but it
compiles and the changes are harmless.)
Wilfried Göesgens [Mon, 8 Dec 2008 22:08:25 +0000 (22:08 +0000)]
* if we need the first urlpart, we musn't move it just left, but add another one at the end.
Wilfried Göesgens [Mon, 8 Dec 2008 21:16:49 +0000 (21:16 +0000)]
* fix messageselectomatic.
Art Cancro [Mon, 8 Dec 2008 17:10:44 +0000 (17:10 +0000)]
Created webcit-738-stable branch
Wilfried Göesgens [Sun, 7 Dec 2008 23:27:13 +0000 (23:27 +0000)]
* make readloop long-controlled
* move param-dependant code into callback hooks
* migrate all places to the new enums fed into readloop
Wilfried Göesgens [Sun, 7 Dec 2008 23:25:04 +0000 (23:25 +0000)]
* *grml* always tried to avoid this, but can't live without...
Wilfried Göesgens [Sun, 7 Dec 2008 11:34:05 +0000 (11:34 +0000)]
* follow api-change in several places
* new longint-vector replacer if you just want to blast some numbers in tiny templates
* urlpart replacers so you can easily reference the actual api-name in templates (actualy needs to be enabled by the registerer of the api callback)
* cleanup and templatize the bbview-selector bar
Wilfried Göesgens [Sun, 7 Dec 2008 11:30:15 +0000 (11:30 +0000)]
* follo hashiterator api-change
Wilfried Göesgens [Sun, 7 Dec 2008 11:29:43 +0000 (11:29 +0000)]
* Allow hashiterator to do bigger steps than 1 and to go reverse
-> API-Change
Art Cancro [Sat, 6 Dec 2008 18:39:06 +0000 (18:39 +0000)]
* Remove ALL calendar recipient crapola in
parentheses, not just the first one. Fixes bug 437.
Art Cancro [Sat, 6 Dec 2008 18:26:46 +0000 (18:26 +0000)]
* Eliminated the ical_add() function, because it
had been reduced down to one line of code and was
no longer making sense as a separate function.
Art Cancro [Fri, 5 Dec 2008 20:11:17 +0000 (20:11 +0000)]
* UPDATE YOUR LIBICAL FROM SVN NOW.
We are now making use of the new libical function icaltimezone_set_tzid_prefix()
which allows the application to customize the namespace of tzid's generated
from the host operating system's tzdata, for example:
/citadel.org/Tzdata/America/New_York
Matt [Fri, 5 Dec 2008 05:57:44 +0000 (05:57 +0000)]
Big brown paper bag: unbreak groupdav propfinds (my fault!)
Matt [Fri, 5 Dec 2008 00:36:52 +0000 (00:36 +0000)]
Fix HTTP Basic auth
Art Cancro [Wed, 3 Dec 2008 18:53:48 +0000 (18:53 +0000)]
* When encapsulating a VEVENT into a full VCALENDAR
component, all TZID's referenced in timestamps are now also
encapsulated into the VCALENDAR component, making the component
fully portable across time zones. The sun is shining, birds are
chirping, free ice cream is being distributed on streetcorners, and
things are just generally good all around. For now.
Art Cancro [Wed, 3 Dec 2008 03:42:13 +0000 (03:42 +0000)]
* Correctly set ;TZID= parameter on any date properties being
encapsulated. Store the timezone in an array so we know to attach
it later. TODO: populate the newly attached VTIMEZONE subcomponents.
Art Cancro [Tue, 2 Dec 2008 23:08:20 +0000 (23:08 +0000)]
* ical_encapsulate_subcomponent() now knows when it is responsible
for attaching a timezone parameter to a property. Next we have to
actually do so.
Wilfried Göesgens [Tue, 2 Dec 2008 22:46:27 +0000 (22:46 +0000)]
* load_seen is our only condition for tagging messages
* init startmsg
Wilfried Göesgens [Tue, 2 Dec 2008 21:47:10 +0000 (21:47 +0000)]
* fix self service account button
* fix important message handler
Art Cancro [Tue, 2 Dec 2008 21:38:52 +0000 (21:38 +0000)]
* Attach an icaltimezone pointer to any icaltimetype value
converted by icaltime_from_webform(). This will later
be detected so we can attach time zone data.
Art Cancro [Tue, 2 Dec 2008 20:17:09 +0000 (20:17 +0000)]
* Minor formatting change
Art Cancro [Tue, 2 Dec 2008 19:27:43 +0000 (19:27 +0000)]
* Simplified icaltime_from_webform()
Removed some unnecessary extra steps and variables
Wilfried Göesgens [Mon, 1 Dec 2008 22:55:13 +0000 (22:55 +0000)]
* sometimes switches need break statements.
Wilfried Göesgens [Mon, 1 Dec 2008 22:43:35 +0000 (22:43 +0000)]
* upsie, forgot to add that.
Art Cancro [Mon, 1 Dec 2008 21:40:26 +0000 (21:40 +0000)]
Log an error message when ical_encapsulate_subcomponent() is
called with a component that is already a top-level VCALENDAR
Wilfried Göesgens [Sun, 30 Nov 2008 23:12:01 +0000 (23:12 +0000)]
* zero-safe StrtoI/L
* add long hash adaptor
Wilfried Göesgens [Sun, 30 Nov 2008 23:10:52 +0000 (23:10 +0000)]
* abstract sorting algorithms. abstraction layer so far used in the message view.
* reorder subst.c so related functions are next to each other
* remove array from WC, its done through the hash...
Wilfried Göesgens [Sat, 29 Nov 2008 17:23:21 +0000 (17:23 +0000)]
* removed double blockquote
Wilfried Göesgens [Sat, 29 Nov 2008 17:07:41 +0000 (17:07 +0000)]
* increase number of messages to 10k as it was before. thanks matt for pointing this out.
* fix another memleak
Wilfried Göesgens [Sat, 29 Nov 2008 10:53:19 +0000 (10:53 +0000)]
* valgrind cleanup
Wilfried Göesgens [Sat, 29 Nov 2008 08:48:41 +0000 (08:48 +0000)]
* upsie, don't leak.
Wilfried Göesgens [Sat, 29 Nov 2008 08:47:23 +0000 (08:47 +0000)]
* br's in quotes so you can write before / after them
* parse contenttype header for sub-values like charset.
Wilfried Göesgens [Sat, 29 Nov 2008 08:45:48 +0000 (08:45 +0000)]
* new StrBuf Method: cut it at a given position
Wilfried Göesgens [Thu, 27 Nov 2008 00:01:20 +0000 (00:01 +0000)]
* rework login screen to utilize more modern templating
* add MESG() template hook
* (still somewhat unfinished, errormessages won't show up yet...)
Art Cancro [Wed, 26 Nov 2008 19:37:10 +0000 (19:37 +0000)]
* save_individual_event() is maintaining
the correct time on non-recurring events.
Art Cancro [Wed, 26 Nov 2008 19:27:54 +0000 (19:27 +0000)]
* save_individual_event() is maintaining
the correct time on non-recurring events.
Art Cancro [Wed, 26 Nov 2008 18:03:21 +0000 (18:03 +0000)]
* Decapsulate and dezonify calendar events as they are
being loaded into the event editor. TODO: convert back
to local time during save, otherwise we create the
shifting-hour DST problem for recurring events. We
might consider only converting to local time for
recurring events ... that's what Google Calendar does.
Art Cancro [Wed, 26 Nov 2008 17:01:12 +0000 (17:01 +0000)]
* HAHAHA WHEEEEEEEE BOING BOING BOING YOWZ0RS
Recurrence across a DST boundary finally works right.
Now to fix it everywhere else :(
Wilfried Göesgens [Tue, 25 Nov 2008 23:15:33 +0000 (23:15 +0000)]
* add missing hint to -Z
* standart escape-ability for message quoting
* remove unneded remaining code
* escape everything in the textarea
Art Cancro [Tue, 25 Nov 2008 22:30:11 +0000 (22:30 +0000)]
TIME ZONES ARRRGHGGHGHHHHHH
Wilfried Göesgens [Tue, 25 Nov 2008 19:40:35 +0000 (19:40 +0000)]
* conditionals mustn't have 0 as id; fix the ones who have and add another errormessage.
Art Cancro [Tue, 25 Nov 2008 19:40:00 +0000 (19:40 +0000)]
* Did a fairly significant reworking of the calendar
processing loop. We have to pass the entire chain through
to the callback function in order to gain just-in-time
dezonification and decapsulation. This will work; I saw
the recurrence stay within local time durin expansion. Right
now the expansion isn't happening at all, but I'll fix that
shortly.
Wilfried Göesgens [Tue, 25 Nov 2008 18:35:10 +0000 (18:35 +0000)]
* fix 64 bit incompatibility
Art Cancro [Tue, 25 Nov 2008 17:37:10 +0000 (17:37 +0000)]
* Update ical_dezonify() to use system tzdata
(or built-in tzdata if running on windows) to locate timezone
information, if a matching timezone was not found somewhere
within the supplied component.
Art Cancro [Mon, 24 Nov 2008 22:39:18 +0000 (22:39 +0000)]
KILL TIME ZONE AAAAAAGGGHH
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
Wilfried Göesgens [Mon, 24 Nov 2008 00:11:49 +0000 (00:11 +0000)]
* escape roomname properly
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...
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
Art Cancro [Fri, 21 Nov 2008 22:36:59 +0000 (22:36 +0000)]
AAAAAAAAAAARRRRRRRRGGGGGGGHHH TIME ZONES F%$&%^*%$^ING SUCK
Art Cancro [Fri, 21 Nov 2008 15:12:42 +0000 (15:12 +0000)]
removed some spurious debugs
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
Wilfried Göesgens [Thu, 20 Nov 2008 23:36:39 +0000 (23:36 +0000)]
* make it const baby... not yet done.
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.
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.
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.
Wilfried Göesgens [Wed, 19 Nov 2008 22:39:33 +0000 (22:39 +0000)]
* close all divs
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
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.
Wilfried Göesgens [Sat, 15 Nov 2008 13:09:57 +0000 (13:09 +0000)]
* finish message displaying.
Wilfried Göesgens [Fri, 14 Nov 2008 07:50:30 +0000 (07:50 +0000)]
* another try to fix this off by one
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
Art Cancro [Wed, 12 Nov 2008 16:59:28 +0000 (16:59 +0000)]
Removed time zone handling from webcit too.
Someone please kill me.
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.
Wilfried Göesgens [Tue, 11 Nov 2008 23:15:07 +0000 (23:15 +0000)]
* first trick to avoid double-rendering of mime-subparts
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
Wilfried Göesgens [Tue, 11 Nov 2008 00:17:35 +0000 (00:17 +0000)]
* render submessages.
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.
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.
Art Cancro [Mon, 10 Nov 2008 21:43:54 +0000 (21:43 +0000)]
Form-to-icalrecur logic for monthly recurring events
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)
Wilfried Göesgens [Sun, 9 Nov 2008 16:41:20 +0000 (16:41 +0000)]
* correct function call for wiki mode too.
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
Wilfried Göesgens [Sun, 9 Nov 2008 10:16:12 +0000 (10:16 +0000)]
* don't choke on empty html messages
Wilfried Göesgens [Sun, 9 Nov 2008 09:54:55 +0000 (09:54 +0000)]
* chop messages.c into handy pieces
Wilfried Göesgens [Sat, 8 Nov 2008 23:17:37 +0000 (23:17 +0000)]
* add ical and vcard rendering
Wilfried Göesgens [Sat, 8 Nov 2008 09:50:13 +0000 (09:50 +0000)]
* re-implement anonymous messages
Wilfried Göesgens [Fri, 7 Nov 2008 20:57:16 +0000 (20:57 +0000)]
* display attachments in messages as view/download links
Wilfried Göesgens [Fri, 7 Nov 2008 00:10:48 +0000 (00:10 +0000)]
* fix pointer magic
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
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.
Wilfried Göesgens [Wed, 5 Nov 2008 23:51:50 +0000 (23:51 +0000)]
* put the right pointer into the hash
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
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
Art Cancro [Wed, 5 Nov 2008 18:15:45 +0000 (18:15 +0000)]
annotated some places where code needs to be added
Art Cancro [Wed, 5 Nov 2008 17:01:46 +0000 (17:01 +0000)]
fixed a compiler warning
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
Art Cancro [Tue, 4 Nov 2008 21:22:18 +0000 (21:22 +0000)]
That didn't work.
Art Cancro [Tue, 4 Nov 2008 19:19:53 +0000 (19:19 +0000)]
Experimental rfc822 output helper that folds lines
Art Cancro [Tue, 4 Nov 2008 17:55:33 +0000 (17:55 +0000)]
ctdl_iconv_open() remove from citadel and switch to new api
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
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.
Wilfried Göesgens [Mon, 3 Nov 2008 22:14:24 +0000 (22:14 +0000)]
* remove duplicate function
* variformat renderer
* fix loop handling
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.
Wilfried Göesgens [Sun, 2 Nov 2008 23:14:27 +0000 (23:14 +0000)]
* plain mail renderer
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()
Wilfried Göesgens [Sun, 2 Nov 2008 09:51:11 +0000 (09:51 +0000)]
* put QP Decoder intoo its own file
* templatized message renderer
Matt [Fri, 31 Oct 2008 08:01:26 +0000 (08:01 +0000)]
Use AC_CHECK_HEADERS rather than __DARWIN__ macro to include xlocale.h
Matt [Fri, 31 Oct 2008 04:28:33 +0000 (04:28 +0000)]
add a few #defines to fix OS X
Art Cancro [Fri, 31 Oct 2008 02:19:32 +0000 (02:19 +0000)]
Working on the header crash sieve bug