citadel.git
11 years agoNetworker: also register STOP hook, so if sessions are timed out or killed the NTT...
Wilfried Goesgens [Sun, 10 Jun 2012 12:47:29 +0000 (14:47 +0200)]
Networker: also register STOP hook, so if sessions are timed out or killed the NTT-List is cleaned up.

11 years agoRework networker
Wilfried Goesgens [Sun, 10 Jun 2012 10:38:30 +0000 (12:38 +0200)]
Rework networker

  - keep netconfigs in hash; create the usual deserialize/delete/... functions
  - keep the netmap in hash; create the usual de/serialize/delete/... functions
  - change sequence: serialize & save netmap; combine spoolfiles; free netmap.
  - use strbufs splice() wrappers to combine the message-spoolfiles into host-spoolfiles instead of forking a shell & running cat + rm
  - when appending to host-spoolfile fails, remove partial adds to avoid creating invalid spool control files
  - only cleanup spool directory if we successfully combined all files; else we might loose messages if i.e. a networker is running for that node.

11 years agoStrBufExtract_tokenFromStr: add wrapper around StrBufExtract_token() which takes...
Wilfried Goesgens [Sun, 10 Jun 2012 08:33:10 +0000 (10:33 +0200)]
StrBufExtract_tokenFromStr: add wrapper around StrBufExtract_token() which takes a char* as string to de-tokenize.

11 years agoREAD: sanitize values & output errors on invalid parameters.
Wilfried Goesgens [Sat, 9 Jun 2012 13:02:17 +0000 (15:02 +0200)]
READ: sanitize values & output errors on invalid parameters.

11 years agoWRIT: catch silly send size values.
Wilfried Goesgens [Sat, 9 Jun 2012 12:56:41 +0000 (14:56 +0200)]
WRIT: catch silly send size values.

11 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Art Cancro [Wed, 6 Jun 2012 22:06:02 +0000 (18:06 -0400)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

11 years agoField 'K' is now 'rep2=' in the citadel headers
Art Cancro [Wed, 6 Jun 2012 22:05:57 +0000 (18:05 -0400)]
Field 'K' is now 'rep2=' in the citadel headers

11 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Tue, 5 Jun 2012 18:54:35 +0000 (20:54 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

11 years agoSMTP-Client: Remove concurrency check; its done in do_housekeeping()
Wilfried Goesgens [Tue, 5 Jun 2012 18:53:34 +0000 (20:53 +0200)]
SMTP-Client: Remove concurrency check; its done in do_housekeeping()

11 years agohousekeeping: time() is expensive. don't use it inside a mutex.
Wilfried Goesgens [Tue, 5 Jun 2012 18:52:25 +0000 (20:52 +0200)]
housekeeping: time() is expensive. don't use it inside a mutex.

11 years agoUpdated the comments in serv_smtp.c to reflect that it is strictly a server now.
Art Cancro [Tue, 5 Jun 2012 14:23:24 +0000 (10:23 -0400)]
Updated the comments in serv_smtp.c to reflect that it is strictly a server now.

11 years agoAdded an IDEN code for our z-push backend
Art Cancro [Mon, 4 Jun 2012 23:03:48 +0000 (19:03 -0400)]
Added an IDEN code for our z-push backend

11 years agoResync with launchpad translations
Wilfried Goesgens [Mon, 4 Jun 2012 21:58:30 +0000 (23:58 +0200)]
Resync with launchpad translations

11 years agoupdate french translation for setup as proposed by debian bug#672747
Wilfried Goesgens [Mon, 4 Jun 2012 21:25:16 +0000 (23:25 +0200)]
update french translation for setup as proposed by debian bug#672747

tnx Nicolas Delvaux & David Prévot

11 years agoconfigure: check for splice() system call; sendfile isn't all apropriate in older...
Wilfried Goesgens [Mon, 4 Jun 2012 21:04:20 +0000 (23:04 +0200)]
configure: check for splice() system call; sendfile isn't all apropriate in older linux or debian k/freebsd

11 years agoMessageView: don't expose the user to json syntax.
Wilfried Goesgens [Mon, 4 Jun 2012 17:29:27 +0000 (19:29 +0200)]
MessageView: don't expose the user to json syntax.

11 years agoRSSClient: stop curl watchers on emergency shutdown.
Wilfried Goesgens [Sun, 3 Jun 2012 15:44:09 +0000 (17:44 +0200)]
RSSClient: stop curl watchers on emergency shutdown.

11 years agoDeleteSmtpOutMsg(): we don't have a Queu-Item anymore; we can't log its id.
Wilfried Goesgens [Sun, 3 Jun 2012 13:40:00 +0000 (15:40 +0200)]
DeleteSmtpOutMsg(): we don't have a Queu-Item anymore; we can't log its id.

11 years agoone more null-check
Wilfried Goesgens [Sun, 3 Jun 2012 12:41:38 +0000 (14:41 +0200)]
one more null-check

11 years agofix networker hickup
Wilfried Goesgens [Fri, 1 Jun 2012 18:55:57 +0000 (20:55 +0200)]
fix networker hickup

  - refrain from freeing pointers in functions that don't get double pointers and NULL them afterwards
  - call network_consolidate_spoolout () before writing & free'ing the network.

11 years agoremove unneeded assignment
Wilfried Goesgens [Thu, 31 May 2012 22:37:47 +0000 (00:37 +0200)]
remove unneeded assignment

11 years agofix the rest of the unregister functions
Wilfried Goesgens [Thu, 31 May 2012 22:37:10 +0000 (00:37 +0200)]
fix the rest of the unregister functions

11 years agoremove double initialization
Wilfried Goesgens [Thu, 31 May 2012 22:36:41 +0000 (00:36 +0200)]
remove double initialization

11 years agoadd some more NULL-pointer-checks; free allocated mem in case of OOM.
Wilfried Goesgens [Thu, 31 May 2012 22:35:39 +0000 (00:35 +0200)]
add some more NULL-pointer-checks; free allocated mem in case of OOM.

11 years agowhen failing by OOM, don't loose any more memory.
Wilfried Goesgens [Thu, 31 May 2012 21:43:32 +0000 (23:43 +0200)]
when failing by OOM, don't loose any more memory.

11 years agoHash: forgot to include some lines into the #if DEBUG
Wilfried Goesgens [Tue, 29 May 2012 21:42:30 +0000 (23:42 +0200)]
Hash: forgot to include some lines into the #if DEBUG

11 years agolocate_host: initialize hostname buffer so we don't send bullshit to the session...
Wilfried Goesgens [Tue, 29 May 2012 21:31:31 +0000 (23:31 +0200)]
locate_host: initialize hostname buffer so we don't send bullshit to the session identifier.

11 years agoallocate the buffer we use later on in all cases.
Wilfried Goesgens [Sat, 26 May 2012 13:57:58 +0000 (15:57 +0200)]
allocate the buffer we use later on in all cases.

11 years agoremove unneded assignmnet.
Wilfried Goesgens [Sat, 26 May 2012 13:54:38 +0000 (15:54 +0200)]
remove unneded assignmnet.

11 years agoadd some nullpointer checks.
Wilfried Goesgens [Sat, 26 May 2012 13:53:36 +0000 (15:53 +0200)]
add some nullpointer checks.

11 years agoremove unneeded assignment.
Wilfried Goesgens [Sat, 26 May 2012 13:35:12 +0000 (15:35 +0200)]
remove unneeded assignment.

11 years agodbg_PrintHash(): #ifdef DEBUG everything related to pure verbose debugging.
Wilfried Goesgens [Sat, 26 May 2012 13:32:11 +0000 (15:32 +0200)]
dbg_PrintHash(): #ifdef DEBUG everything related to pure verbose debugging.

11 years agoremove duplicate assignments; don't compare twice if first is successfull.
Wilfried Goesgens [Sat, 26 May 2012 13:26:55 +0000 (15:26 +0200)]
remove duplicate assignments; don't compare twice if first is successfull.

11 years agoremove unneeded assignment.
Wilfried Goesgens [Sat, 26 May 2012 13:21:47 +0000 (15:21 +0200)]
remove unneeded assignment.

11 years agoFix all *Unregister*Hook() functions.
Wilfried Goesgens [Sat, 26 May 2012 13:19:40 +0000 (15:19 +0200)]
Fix all *Unregister*Hook() functions.

11 years agoCtdlUnregisterRoomHook(): second try.
Wilfried Goesgens [Sat, 26 May 2012 12:18:34 +0000 (14:18 +0200)]
CtdlUnregisterRoomHook(): second try.

11 years agoCtdlUnregisterRoomHook(): fix possible nullpointer deref
Wilfried Goesgens [Sat, 26 May 2012 12:12:52 +0000 (14:12 +0200)]
CtdlUnregisterRoomHook(): fix possible nullpointer deref

11 years ago- dump_message() isn't used anymore; remove it.
Wilfried Goesgens [Sat, 26 May 2012 12:04:45 +0000 (14:04 +0200)]
- dump_message() isn't used anymore; remove it.
- fix potential NULL-pointer dereferencing.

11 years agoCtdlOutputMsg(): if we found that the attachment which was demanded isn't there,...
Wilfried Goesgens [Sat, 26 May 2012 11:52:54 +0000 (13:52 +0200)]
CtdlOutputMsg(): if we found that the attachment which was demanded isn't there, we don't need further actions and should return that error.

11 years agoAfter checking for NULL-Pointer exit with failure.
Wilfried Goesgens [Sat, 26 May 2012 10:50:36 +0000 (12:50 +0200)]
After checking for NULL-Pointer exit with failure.

11 years agoSMTP-Client: another possible NULL-Pointer access.
Wilfried Goesgens [Sat, 26 May 2012 10:48:17 +0000 (12:48 +0200)]
SMTP-Client: another possible NULL-Pointer access.

11 years agoWrap NULL-Protection around whole section; the pointer is accessed inbetween too.
Wilfried Goesgens [Sat, 26 May 2012 10:39:26 +0000 (12:39 +0200)]
Wrap NULL-Protection around whole section; the pointer is accessed inbetween too.

11 years agoFix loading of message template; cut'n'paste code from webcit. Fix leak.
Wilfried Goesgens [Sat, 26 May 2012 10:33:13 +0000 (12:33 +0200)]
Fix loading of message template; cut'n'paste code from webcit. Fix leak.

11 years agomake shure all of the struct is initialized properly if the DB doesn't give us enough...
Wilfried Goesgens [Sat, 26 May 2012 10:16:53 +0000 (12:16 +0200)]
make shure all of the struct is initialized properly if the DB doesn't give us enough to fill it.

11 years agoremove unneeded initialisation; separate declaration and initialisation.
Wilfried Goesgens [Sat, 26 May 2012 10:04:04 +0000 (12:04 +0200)]
remove unneeded initialisation; separate declaration and initialisation.

11 years agoAdd NULL-Pointer check before starting the work.
Wilfried Goesgens [Sat, 26 May 2012 10:00:02 +0000 (12:00 +0200)]
Add NULL-Pointer check before starting the work.

11 years agoIn this place we don't care about the result.
Wilfried Goesgens [Fri, 25 May 2012 13:39:26 +0000 (15:39 +0200)]
In this place we don't care about the result.

11 years agovalidate_recipients(): just remember the mailtype we're finaly interested in.
Wilfried Goesgens [Fri, 25 May 2012 13:38:03 +0000 (15:38 +0200)]
validate_recipients(): just remember the mailtype we're finaly interested in.

11 years agoSMTP-Client: catch error of us failing to allocate the new context.
Wilfried Goesgens [Fri, 25 May 2012 13:32:20 +0000 (15:32 +0200)]
SMTP-Client: catch error of us failing to allocate the new context.

11 years agoEvent client: add missing forward declaration of StopCurlWatchers
Wilfried Goesgens [Fri, 25 May 2012 13:31:04 +0000 (15:31 +0200)]
Event client: add missing forward declaration of StopCurlWatchers

11 years agoSMTP-Server: Assert with backtrace instead of running in a null pointer situation...
Wilfried Goesgens [Fri, 25 May 2012 13:19:39 +0000 (15:19 +0200)]
SMTP-Server: Assert with backtrace instead of running in a null pointer situation; this is probably a leftover from a core bug.

11 years agoRSSClient: actualy use the precalculated length for the StrBuf allocation
Wilfried Goesgens [Fri, 25 May 2012 13:09:59 +0000 (15:09 +0200)]
RSSClient: actualy use the precalculated length for the StrBuf allocation

11 years agoOpenID Client: remove duplicate assignment.
Wilfried Goesgens [Fri, 25 May 2012 13:07:07 +0000 (15:07 +0200)]
OpenID Client: remove duplicate assignment.

11 years agoNetworker:
Wilfried Goesgens [Fri, 25 May 2012 13:01:44 +0000 (15:01 +0200)]
Networker:

  - network_learn_topology (): fix prepending of new netmap item to linked list
  - fix removal of spool files not associated anymore

11 years agoNetworker: remove unneeded assignment
Wilfried Goesgens [Fri, 25 May 2012 12:47:39 +0000 (14:47 +0200)]
Networker: remove unneeded assignment

11 years agoremove unused assignments
Wilfried Goesgens [Fri, 25 May 2012 12:32:53 +0000 (14:32 +0200)]
remove unused assignments

11 years agofix possible buffer underrun (by 1;-)
Wilfried Goesgens [Fri, 25 May 2012 12:31:27 +0000 (14:31 +0200)]
fix possible buffer underrun (by 1;-)

11 years agoCheck for NULL pointer before passing it into qsort & free
Wilfried Goesgens [Fri, 25 May 2012 11:11:36 +0000 (13:11 +0200)]
Check for NULL pointer before passing it into qsort & free

11 years agoCURL: in this errorcase we don't have a context and have to use another syslog alias...
Wilfried Goesgens [Fri, 25 May 2012 11:07:30 +0000 (13:07 +0200)]
CURL: in this errorcase we don't have a context and have to use another syslog alias. tnx CST

11 years agoLDAP: dnon't read the reply if we're not interested in. tnx bzed.
Wilfried Goesgens [Fri, 25 May 2012 11:04:50 +0000 (13:04 +0200)]
LDAP: dnon't read the reply if we're not interested in. tnx bzed.

11 years agoCrypto: remove unneded initialization pointed out by clang static analyzer.
Wilfried Goesgens [Fri, 25 May 2012 10:35:23 +0000 (12:35 +0200)]
Crypto: remove unneded initialization pointed out by clang static analyzer.

11 years agoCalendar: fix some uninitialized value conditions pointed out by clang static analyzer
Wilfried Goesgens [Fri, 25 May 2012 10:33:02 +0000 (12:33 +0200)]
Calendar: fix some uninitialized value conditions pointed out by clang static analyzer

11 years agofix possible nullpointer dereferenciation; tnx to the clang static analyzer
Wilfried Goesgens [Fri, 25 May 2012 10:22:57 +0000 (12:22 +0200)]
fix possible nullpointer dereferenciation; tnx to the clang static analyzer

11 years agoRemove duplicate line..
Wilfried Goesgens [Fri, 25 May 2012 10:10:10 +0000 (12:10 +0200)]
Remove duplicate line..

11 years agoclang static analyzer misses that cdb_abort() aborts the process. make it clear we...
Wilfried Goesgens [Fri, 25 May 2012 10:06:52 +0000 (12:06 +0200)]
clang static analyzer misses that cdb_abort() aborts the process. make it clear we don't march on here.

11 years agoas the clang static analyser points out, the | is useless here.
Wilfried Goesgens [Fri, 25 May 2012 10:03:40 +0000 (12:03 +0200)]
as the clang static analyser points out, the | is useless here.

11 years agoRemove unneeded code found by the clang static analyzer
Wilfried Goesgens [Fri, 25 May 2012 10:03:04 +0000 (12:03 +0200)]
Remove unneeded code found by the clang static analyzer

11 years agoEvent-Client: fix to connect logic
Wilfried Goesgens [Thu, 24 May 2012 19:43:49 +0000 (21:43 +0200)]
Event-Client: fix to connect logic

  - when connecting delayed also set the connect start timeout and stop the connection faied timer.

11 years agoDB: query keys are not written by berkeley db. believe me. v8.11
Wilfried Goesgens [Mon, 21 May 2012 20:44:22 +0000 (22:44 +0200)]
DB: query keys are not written by berkeley db. believe me.

11 years agoCurl-Eventclient: in this errorcase we don't have the context.
Wilfried Goesgens [Mon, 21 May 2012 19:35:42 +0000 (21:35 +0200)]
Curl-Eventclient: in this errorcase we don't have the context.

11 years agoits staying libcitdale2
Wilfried Goesgens [Mon, 21 May 2012 19:26:54 +0000 (21:26 +0200)]
its staying libcitdale2

11 years agoDon't mess around with the so-name for no reason.
Wilfried Goesgens [Mon, 21 May 2012 19:24:42 +0000 (21:24 +0200)]
Don't mess around with the so-name for no reason.

11 years agoVersioning: make the lib 8.x; cleanup.
Wilfried Goesgens [Mon, 21 May 2012 19:00:56 +0000 (21:00 +0200)]
Versioning: make the lib 8.x; cleanup.

11 years agoPOP3Client: stop client / db watchers before switching the context.
Wilfried Goesgens [Mon, 21 May 2012 05:40:29 +0000 (07:40 +0200)]
POP3Client: stop client / db watchers before switching the context.

11 years agoRSSClient: fix possible buffer underrun
Wilfried Goesgens [Sun, 20 May 2012 18:13:19 +0000 (20:13 +0200)]
RSSClient: fix possible buffer underrun

11 years agoSMTP: free the queue item in the very last function, so we have a valid pointer to...
Wilfried Goesgens [Sun, 20 May 2012 18:03:44 +0000 (20:03 +0200)]
SMTP: free the queue item in the very last function, so we have a valid pointer to the QID for logging.

11 years agoEV: check the connectionstate on deferred connecting; else we can't detect connection...
Wilfried Goesgens [Sun, 20 May 2012 18:02:10 +0000 (20:02 +0200)]
EV: check the connectionstate on deferred connecting; else we can't detect connections failed by non-existing hosts.

11 years agoopenbsd compatibility: add NS_GET16 workaround.
Wilfried Goesgens [Thu, 17 May 2012 09:49:26 +0000 (11:49 +0200)]
openbsd compatibility: add NS_GET16 workaround.

11 years agocleaned up some spelling and grammar in serv_vcard.c
Art Cancro [Thu, 17 May 2012 03:06:54 +0000 (23:06 -0400)]
cleaned up some spelling and grammar in serv_vcard.c

11 years agoReverted most of e40ba85133cf6401bda3d6b81a1d144d73d25074 because it broke the protoc...
Art Cancro [Thu, 17 May 2012 02:58:16 +0000 (22:58 -0400)]
Reverted most of e40ba85133cf6401bda3d6b81a1d144d73d25074 because it broke the protocol semantics and only provided a function that the protocol was already capable of doing. 'verbose_reply' is now gone.  If the client wants a verbose reply, use the 'do_confirm' semantics, which invokes protocol mode 8 (send listing then receive listing) instead of mode 4 (send listing).

11 years agoBumped version numbers to 8.11 for upcoming release
Art Cancro [Wed, 16 May 2012 20:08:45 +0000 (16:08 -0400)]
Bumped version numbers to 8.11 for upcoming release

11 years agoBumped version numbers to 8.11 for upcoming release
Art Cancro [Wed, 16 May 2012 20:06:09 +0000 (16:06 -0400)]
Bumped version numbers to 8.11 for upcoming release

11 years agoWhen a username/password auth fails, restore the username/password dialog instead...
Art Cancro [Wed, 16 May 2012 18:38:34 +0000 (14:38 -0400)]
When a username/password auth fails, restore the username/password dialog instead of leaving the throbber on the screen.

11 years agoi guess you can remove the loaded var alltogether then.
Art Cancro [Wed, 16 May 2012 16:28:35 +0000 (12:28 -0400)]
i guess you can remove the loaded var alltogether then.

11 years agoCall LoadExpirePolicy() unconditionally, this fixes the apparent snap back to old...
Art Cancro [Wed, 16 May 2012 16:26:50 +0000 (12:26 -0400)]
Call LoadExpirePolicy() unconditionally, this fixes the apparent snap back to old config when room/floor policy is changed

11 years agoStill trying to figure out why expire policy settings aren't sticking
Art Cancro [Wed, 16 May 2012 03:03:53 +0000 (23:03 -0400)]
Still trying to figure out why expire policy settings aren't sticking

11 years agowtf?
Art Cancro [Tue, 15 May 2012 20:55:21 +0000 (16:55 -0400)]
wtf?

11 years agoAdded 'go' as hidden input fields to all of the forms in the room editor
Art Cancro [Tue, 15 May 2012 20:37:21 +0000 (16:37 -0400)]
Added 'go' as hidden input fields to all of the forms in the room editor

11 years agoRemoved er_flags and er_flags2 from editroom(). These were being set and then never...
Art Cancro [Tue, 15 May 2012 16:13:09 +0000 (12:13 -0400)]
Removed er_flags and er_flags2 from editroom().  These were being set and then never sent to the server.

11 years agoremoved a bunch of blank comment lines
Art Cancro [Tue, 15 May 2012 14:45:08 +0000 (10:45 -0400)]
removed a bunch of blank comment lines

11 years agoAdd a 'go' value to the 'edit room configuration' tab so it automatically selects...
Art Cancro [Tue, 15 May 2012 03:56:15 +0000 (23:56 -0400)]
Add a 'go' value to the 'edit room configuration' tab so it automatically selects the correct room upon submit

11 years agolocate_host: add missing defines for openbsd
Wilfried Goesgens [Mon, 14 May 2012 22:03:21 +0000 (00:03 +0200)]
locate_host: add missing defines for openbsd

defines found over at dnssec: https://www.dnssec-tools.org/svn/dnssec-tools/tags/dnsval-1.8/include/validator/resolver.h

11 years agoRemove duplicate include with wrong #ifs
Wilfried Goesgens [Thu, 10 May 2012 20:34:49 +0000 (22:34 +0200)]
Remove duplicate include with wrong #ifs

11 years agoPOP3Client: use URL-Encoder that also encades the '@'
Wilfried Goesgens [Thu, 10 May 2012 20:34:21 +0000 (22:34 +0200)]
POP3Client: use URL-Encoder that also encades the '@'

11 years agoStringBuf: add URL-encoder that also encodes the @ character.
Wilfried Goesgens [Thu, 10 May 2012 20:32:59 +0000 (22:32 +0200)]
StringBuf: add URL-encoder that also encodes the @ character.

11 years agoPOP3Client: escape URL parts
Wilfried Goesgens [Thu, 10 May 2012 20:04:13 +0000 (22:04 +0200)]
POP3Client: escape URL parts

11 years agoSMTP-Client: shut down in one chunk
Wilfried Goesgens [Mon, 7 May 2012 21:28:01 +0000 (23:28 +0200)]
SMTP-Client: shut down in one chunk

  - splicing up the shutdown sequence into several db-request chunks doesn't work out. do it in one apraoch again.

11 years agoSMTP-Client: on success strip reply too.
Wilfried Goesgens [Mon, 7 May 2012 21:25:17 +0000 (23:25 +0200)]
SMTP-Client: on success strip reply too.

11 years agoEVENT-Client: set context on attach.
Wilfried Goesgens [Mon, 7 May 2012 21:24:34 +0000 (23:24 +0200)]
EVENT-Client: set context on attach.

11 years agoEvent-client: add waiting for the server greeting to our error status (preventive..)
Wilfried Goesgens [Sun, 6 May 2012 20:19:40 +0000 (22:19 +0200)]
Event-client: add waiting for the server greeting to our error status (preventive..)