]>
code.citadel.org Git - citadel.git/log
Wilfried Goesgens [Sun, 8 May 2011 11:58:27 +0000 (11:58 +0000)]
Add backtrace debugging facility that doesn't add linebreaks
Wilfried Goesgens [Sun, 8 May 2011 11:53:34 +0000 (11:53 +0000)]
libevent needs to link the mathlib, so we add -lm
Wilfried Goesgens [Tue, 3 May 2011 20:11:46 +0000 (20:11 +0000)]
ups, .lo not .o
Wilfried Goesgens [Tue, 3 May 2011 19:55:11 +0000 (19:55 +0000)]
add prerelease so we don't get deinstalled all the time..
Wilfried Goesgens [Tue, 3 May 2011 19:53:26 +0000 (19:53 +0000)]
fix problem with po missing \n
Wilfried Goesgens [Tue, 3 May 2011 19:52:05 +0000 (19:52 +0000)]
Work on integrating libcurl <-> libev
Wilfried Goesgens [Tue, 3 May 2011 19:49:23 +0000 (19:49 +0000)]
Fix possible endless loop conditions
Wilfried Goesgens [Thu, 28 Apr 2011 19:20:52 +0000 (19:20 +0000)]
Various cleanups of abort conditions
- if the timeout/connectionfail/... calls tell us to abort, shutdown the client
- unregister all event structs
Wilfried Goesgens [Thu, 28 Apr 2011 19:10:56 +0000 (19:10 +0000)]
Name of MX in error messages
- set it after successfull MX lookup
- put in that we don't have an mx record if its NULL instead of 'no name'
Wilfried Goesgens [Thu, 28 Apr 2011 19:09:53 +0000 (19:09 +0000)]
fix gcc warning about it not knowing which pointer indirection is const...
Wilfried Goesgens [Tue, 19 Apr 2011 19:55:16 +0000 (19:55 +0000)]
Include ourselves??
Wilfried Goesgens [Tue, 19 Apr 2011 19:50:55 +0000 (19:50 +0000)]
Fix Crash
* check pointer before accessing it
* fix probably uninitialized case
Wilfried Goesgens [Sat, 2 Apr 2011 15:56:18 +0000 (17:56 +0200)]
Give event clients a citadel session context.
Wilfried Goesgens [Sat, 2 Apr 2011 15:24:17 +0000 (17:24 +0200)]
Cleanup the event client struct, remove unused vars
Wilfried Goesgens [Sat, 2 Apr 2011 10:18:49 +0000 (12:18 +0200)]
just use the ParsedURL to bear our destination address & port
Wilfried Goesgens [Sat, 2 Apr 2011 09:26:07 +0000 (11:26 +0200)]
Use IOBuffer with its StrBuf + const char* inside instead of having two of them
Wilfried Goesgens [Fri, 1 Apr 2011 21:48:57 +0000 (23:48 +0200)]
implement abort handling
Wilfried Goesgens [Fri, 1 Apr 2011 19:56:20 +0000 (21:56 +0200)]
Switch handling to have a pointer to the target address
- change URL struct to contain sockaddr_in6
- change URL-Parsing to add that indirection
- change all pointer indirections so the new way fits
Wilfried Goesgens [Fri, 1 Apr 2011 14:51:48 +0000 (16:51 +0200)]
move URL parsing / struct over into libcitadel
Wilfried Goesgens [Thu, 31 Mar 2011 22:50:43 +0000 (00:50 +0200)]
Fix searching of ']'
Wilfried Goesgens [Thu, 31 Mar 2011 21:21:10 +0000 (23:21 +0200)]
Add busines logic for toggling multiple mx records etc.
- move handlers into their own file
- chain up stuff via URL-structs
(not yet all done)
Wilfried Goesgens [Thu, 31 Mar 2011 21:11:14 +0000 (23:11 +0200)]
Mailinglist client: don't add roomname to subject if its already there
Wilfried Goesgens [Mon, 21 Feb 2011 22:13:33 +0000 (23:13 +0100)]
fixing html2ascii
- add possibility to scan 4 digit entities
- don't scan over the end
- add tests
Wilfried Goesgens [Thu, 3 Feb 2011 21:34:38 +0000 (22:34 +0100)]
libev migration: start out with creating support for 'fallbackhost'
Wilfried Goesgens [Wed, 2 Feb 2011 20:34:49 +0000 (21:34 +0100)]
libev/c-ares migration; fix lookup chains
- use idle-watchers for unwinding the c-ares stack (thanks to Marc Lehmann for the hint)
- use the generic c-ares query & parse logic instead of the integrated call; we need to first do the a then fall back to the aaaa request which the c-ares default one doesn't implement
- stop the shutdown watchers when finalizing one client
Wilfried Goesgens [Mon, 31 Jan 2011 00:35:40 +0000 (01:35 +0100)]
libev migration - add shutdown handlers
- this ties us to libev > 4.0
- clean shutdown and storing of the new state in our quue
Wilfried Goesgens [Sun, 30 Jan 2011 23:10:11 +0000 (00:10 +0100)]
libev migration: use async methods to schedule jobs. thanks to Marc Lehmann for the friendly help.
Wilfried Goesgens [Sun, 30 Jan 2011 20:28:35 +0000 (21:28 +0100)]
libev migration - copy valus we use for loop control before we hand it off into the libevent queue
- this fixes a race condition causing a double free with the to be copied mailpayload
Wilfried Goesgens [Sun, 30 Jan 2011 14:29:59 +0000 (15:29 +0100)]
Merge branch 'libevent' of ssh://git.citadel.org/appl/gitroot/citadel into libevent
Wilfried Goesgens [Sun, 30 Jan 2011 14:27:29 +0000 (15:27 +0100)]
libev/c-ares migration: unstack out ouf c-ares before querying new requests
- we use the c-ares callback to parse the DNS reply and put the reply to our callback
- we then set a zero-timer with the call to continue our flow
- we return / unstack c-ares
- we then do the a/aaaa record lookup without having another ares lookup in our stack
this circumvents double dns lookups.
Wilfried Goesgens [Sun, 30 Jan 2011 12:14:05 +0000 (13:14 +0100)]
QP-Decoding: Ignore case of letter indicating _B_inary or _Q_uoted printeable, there seem to be solutions around sending q,b instead of Q,B
Wilfried Goesgens [Sun, 30 Jan 2011 11:12:44 +0000 (12:12 +0100)]
by jimcuclamath: use defines instead of numbers for logging; Change some loglevels to DEBUG
Wilfried Goesgens [Tue, 25 Jan 2011 22:51:22 +0000 (23:51 +0100)]
fix ipv6 connections in smtp client
Wilfried Goesgens [Tue, 25 Jan 2011 20:15:25 +0000 (21:15 +0100)]
fix IPv6 relay url parsing
Wilfried Goesgens [Mon, 24 Jan 2011 23:22:49 +0000 (00:22 +0100)]
libev migration: check pointer before free'ing it.
Wilfried Goesgens [Sun, 23 Jan 2011 22:10:51 +0000 (23:10 +0100)]
libev migration / c-ares migration
- free c-ares structs and its watchers in appropriate places
- finalize relaying
Wilfried Goesgens [Sun, 23 Jan 2011 19:21:20 +0000 (20:21 +0100)]
libev migration; relaying implementation
- move translation of DNS-results up into the SMTP-Client
- use an own callback for connecting to IP-based relays
- add assertions to callbacks being NULL, since after callin a NULL-callback the last stackframe is NIL and Void, and we can't see where we went off into misery.
Wilfried Goesgens [Thu, 20 Jan 2011 23:20:07 +0000 (00:20 +0100)]
libev migration: reinstantiate MX-Relay; unfinished.
Wilfried Goesgens [Sun, 16 Jan 2011 17:49:33 +0000 (18:49 +0100)]
libev migration: remove 127.0.0.1 forcing
Wilfried Goesgens [Sun, 16 Jan 2011 17:46:56 +0000 (18:46 +0100)]
Libev migration:
- timeouts implemented & working
- async connects working
Wilfried Goesgens [Sat, 15 Jan 2011 19:57:34 +0000 (20:57 +0100)]
libev migration - timeouts seem to be working.
- handle timeouts with libev timers
Wilfried Goesgens [Sat, 15 Jan 2011 18:10:48 +0000 (19:10 +0100)]
libev migration; cleanup bounce; use libev to get the current time.
Wilfried Goesgens [Sat, 15 Jan 2011 17:47:03 +0000 (18:47 +0100)]
use the gnu format string checker for CtdlLogPrintf; fix associated new warnings / problems.
Wilfried Goesgens [Sat, 15 Jan 2011 16:21:16 +0000 (17:21 +0100)]
Libev migration Cleanup, print resolved IP to log
Wilfried Goesgens [Sat, 15 Jan 2011 15:18:10 +0000 (16:18 +0100)]
Libev Migration; fix aborting on connection establishing problems
- libev doesn't care whether a watcher is already registered or not, we don't need to remember which to stop and which not.
- cast to the right structure while aborting
- put timeout callback in
- register timeout callback
- close our socket in the right place.
Wilfried Goesgens [Sat, 15 Jan 2011 15:16:43 +0000 (16:16 +0100)]
Fix bouncing of messages in smtp-queue
- free boundary when barfing out
- put the message body on the right citadel message collumn
Wilfried Goesgens [Sat, 15 Jan 2011 15:14:16 +0000 (16:14 +0100)]
Mimeparser rewrite; fix bug detecting trailing MIME-Boundary
- when searching for the '--' after the mime boundary to detect whether its the last, we had an off by one. fixed.
Wilfried Goesgens [Sat, 15 Jan 2011 10:45:46 +0000 (11:45 +0100)]
libev migration - fix queue conditions
- handle messages without recipients
- remove the the original message when we finished our job.
Wilfried Goesgens [Sat, 15 Jan 2011 10:45:10 +0000 (11:45 +0100)]
Libev migration
- the error message doesn't belong to us; we mustn't free it here.
Wilfried Goesgens [Mon, 10 Jan 2011 22:49:15 +0000 (23:49 +0100)]
remove unneeded include; smtp_get_Recipients() is just of use when being in a SMTP-Server context, which we don't have in the outbound-Queue
Wilfried Goesgens [Mon, 10 Jan 2011 22:38:36 +0000 (23:38 +0100)]
Libev / libc-ares Migration
- Bounce-o-matic:
- use parsend Queue structure instead of parsing the queue message ourselves
- only Compose the bounce message, if we're shure we'll need it
- malloc all memory first, and fail if..
- restructure Message Queue documentation
- parse not yet identified Submitted-Header into queue item
- Alloc QueueItem->StatusMessage on creation so we have it easier writing it later
- Start implementing timeout/abort conditions
- c-ares integration: start/stop the right event-watchers
- c-ares integration: give it its own watcher structs
Wilfried Goesgens [Sat, 8 Jan 2011 21:31:34 +0000 (22:31 +0100)]
libev/libc-ares migration
- no, c-ares does need a write and a send wrapper.
Wilfried Goesgens [Sat, 8 Jan 2011 19:55:44 +0000 (20:55 +0100)]
libev smtp migration
- pass message text into bounce message
- split SMTP <-> SMTP-Queue code
Wilfried Goesgens [Sat, 8 Jan 2011 17:54:03 +0000 (18:54 +0100)]
libev migration
Cleanup: wrap an empty do {} while (0) around our macros, so their syntax gets a better feeling of c-functions
Wilfried Goesgens [Sat, 8 Jan 2011 17:50:16 +0000 (18:50 +0100)]
libev migration
- log when looking up the IP of an MX
- log when attepting to connect one MX
Wilfried Goesgens [Sat, 8 Jan 2011 17:32:56 +0000 (18:32 +0100)]
Libev/libc-ares migration: cleanup
Wilfried Goesgens [Sat, 8 Jan 2011 16:17:06 +0000 (17:17 +0100)]
libev-migration
- got the wrong interpretation of the pointer;
First mails leave citadel after a successfull DNS-Query!
Wilfried Goesgens [Sat, 8 Jan 2011 16:16:18 +0000 (17:16 +0100)]
libc-ares migration
- ev_io_stop removes us from the list, but we still want to receive stuff.
Wilfried Goesgens [Sat, 8 Jan 2011 14:13:18 +0000 (15:13 +0100)]
libc-ares migration
- just use one callback for read/send into libevent
- re-enable c-ares; still doesn't work
Wilfried Goesgens [Sat, 8 Jan 2011 10:41:56 +0000 (11:41 +0100)]
libev migration
- libevent doesn't require a special async connect mechanic, remove it.
Wilfried Goesgens [Fri, 7 Jan 2011 11:05:22 +0000 (12:05 +0100)]
libev/libc-ares migration
- disable c-ares for now
- add fixed ip to connect instead of looked up ip
Wilfried Goesgens [Fri, 7 Jan 2011 11:04:21 +0000 (12:04 +0100)]
libev migration - shutdown cleanly.
Wilfried Goesgens [Tue, 4 Jan 2011 23:28:13 +0000 (00:28 +0100)]
libev/libc-ares migration
- resolving of the ip address is working now too; handling whether its an ipv6 host still missing.
- libev doesn't succeed on doing async connect()
Wilfried Goesgens [Mon, 3 Jan 2011 23:33:30 +0000 (00:33 +0100)]
libc-ares migration
- call the ares read/write handlers in our registered read/write callbacks
- set context appropriate.
Wilfried Goesgens [Mon, 3 Jan 2011 23:33:00 +0000 (00:33 +0100)]
libev migration
- fix spawning of event-queue thread.
Wilfried Goesgens [Mon, 3 Jan 2011 23:00:47 +0000 (00:00 +0100)]
libev/libc-ares migration
- move c-ares query into the eventqueue context
- queueing of the new context via the pipe doesn't work anymore with libev
Wilfried Goesgens [Mon, 3 Jan 2011 15:36:43 +0000 (16:36 +0100)]
libc-ares migration - first implementation draft
- dns queries are going out, but the reply isn't read so far.
Wilfried Goesgens [Sat, 1 Jan 2011 18:14:51 +0000 (19:14 +0100)]
libev migration
- make connect() async; add wrappers in event_client to abstract it to our clients
- switch libevent -> libev
- start abstraction for dns asynchronisation via c-ares
Wilfried Goesgens [Sat, 1 Jan 2011 17:00:42 +0000 (18:00 +0100)]
Libev / libcares : add build dependencies
Wilfried Goesgens [Sat, 1 Jan 2011 16:59:50 +0000 (17:59 +0100)]
libevent migration: discarded, make this libev
- detect c-ares
- detect libev
Wilfried Goesgens [Mon, 27 Dec 2010 15:45:53 +0000 (16:45 +0100)]
Libevent Migration
- use a bigger read buffer for the smtp client
- differentiate between queue and smtp client in log messages
- migrate scheduling of jobs to a locked list
Wilfried Goesgens [Mon, 27 Dec 2010 15:39:16 +0000 (16:39 +0100)]
Libevent Migration
- change the place where we check the space for the \0 for reading
- we didn't check the case to increase the buffer while reading if the reading algorithm didn't find a complete line yet...
Wilfried Goesgens [Mon, 27 Dec 2010 15:38:30 +0000 (16:38 +0100)]
Hashlist: add function to flush the contents of a hashlist.
Wilfried Goesgens [Sun, 26 Dec 2010 12:23:42 +0000 (13:23 +0100)]
Libevent Migration
- handle the SMTP-reply-stati in a propper way
- skip empty lines while serializing messages
Wilfried Goesgens [Sun, 26 Dec 2010 12:22:55 +0000 (13:22 +0100)]
StrBuf_NextToken: if the source is empty, flush the target.
Wilfried Goesgens [Sun, 26 Dec 2010 10:56:41 +0000 (11:56 +0100)]
libevent Migration:
- hook in libevent into shutdown mechanism, so we can cleanly shutdown citserver again.
Wilfried Goesgens [Sun, 26 Dec 2010 10:40:54 +0000 (11:40 +0100)]
libevent Migration
- add a state 'terminate' to the event handlers
- use the Terminate-callback to free all members.
Wilfried Goesgens [Thu, 23 Dec 2010 00:09:14 +0000 (01:09 +0100)]
Libevent Integration
- move bounce into util
- rewrite parsing of queue entry; keep structure in memory, serialize after last message is sent.
Wilfried Goesgens [Tue, 21 Dec 2010 23:40:34 +0000 (00:40 +0100)]
Libevent integration
- add a configure option --with-experimental_eventsmtp to enable the following items
- add a thread that spawns a signaling pipe plus the libevent queue
- add functions that allow to add jobs via that signalling pipe
- add experimental smtp queue handler sending messages via libevent (message goes out but then... ;-)
Wilfried Goesgens [Tue, 21 Dec 2010 23:37:55 +0000 (00:37 +0100)]
libevent integration
- Add functions that are able to do just one read()/write() so they can be used as libevent callbacks.
- Add linereader function that reads from "incomplete buffers" and falls back to a re-attemt if not enough data is available.
Art Cancro [Mon, 20 Dec 2010 04:12:19 +0000 (23:12 -0500)]
Replaced client_read() with socket_read_blob() in serv_network.c
Art Cancro [Fri, 17 Dec 2010 19:12:36 +0000 (14:12 -0500)]
Cleaned up the loop that receives network spool. NOT THE FIX
Art Cancro [Fri, 17 Dec 2010 04:10:06 +0000 (23:10 -0500)]
Content-transfer-encoding: ISO-8859-1 joins the 'no encoding' list
Wilfried Goesgens [Wed, 15 Dec 2010 11:44:57 +0000 (12:44 +0100)]
Move: give the SMTP-Client its own file.
- move the SMTP-Client functionality into its own file.
- re-bootstrap so the new files are added to your makefiles!
Wilfried Goesgens [Wed, 15 Dec 2010 09:03:03 +0000 (10:03 +0100)]
Room info in banner should respect utf8 when cutting the text; fixed.
Art Cancro [Tue, 14 Dec 2010 22:13:03 +0000 (17:13 -0500)]
Room info in banner was completely broken. Fixed.
Wilfried Goesgens [Mon, 13 Dec 2010 17:23:31 +0000 (18:23 +0100)]
SMTP Async I/O:
- while sending data, wait relative to the size of the mail /128 + a minimal set of 50.
Art Cancro [Mon, 13 Dec 2010 15:12:25 +0000 (10:12 -0500)]
J-escape instead of U-escape attachment removal urls.
Art Cancro [Mon, 13 Dec 2010 05:02:22 +0000 (00:02 -0500)]
remove attach works now but has filename escape bugs
Art Cancro [Mon, 13 Dec 2010 00:29:21 +0000 (19:29 -0500)]
url binding and skeleton js for remove attachment
Art Cancro [Mon, 13 Dec 2010 00:11:39 +0000 (19:11 -0500)]
Wrote the ajax call for remove_attachment(), todo: js binding
Wilfried Goesgens [Sun, 12 Dec 2010 14:47:14 +0000 (15:47 +0100)]
Mimeparser Bugfix
- use the right pointer to calculate the terminal border of the first memchr
Wilfried Goesgens [Sun, 12 Dec 2010 14:09:49 +0000 (15:09 +0100)]
Ignore all of our test binaries.
Wilfried Goesgens [Sun, 12 Dec 2010 14:06:09 +0000 (15:06 +0100)]
Add possibility to trigger the tests with Valgrind
Wilfried Goesgens [Sun, 12 Dec 2010 14:03:43 +0000 (15:03 +0100)]
Bugfix: several errors in our test program
- initialize the count before passing it into wildfirea
- free all our buffers properly.
Wilfried Goesgens [Sun, 12 Dec 2010 14:02:40 +0000 (15:02 +0100)]
Bugfixing: free our hashpositions...
Art Cancro [Sun, 12 Dec 2010 03:15:35 +0000 (22:15 -0500)]
Attachments count is now updated in navbar
Art Cancro [Sun, 12 Dec 2010 02:23:16 +0000 (21:23 -0500)]
Show throbber during attachment upload
Art Cancro [Sat, 11 Dec 2010 22:24:06 +0000 (17:24 -0500)]
Hide upload box during an upload. TODO: add throbber.
Art Cancro [Sat, 11 Dec 2010 17:41:31 +0000 (12:41 -0500)]
remove image borders in the upload pane