citadel.git
11 years agoUpdated the copyright declaration in several modules, removing any language which...
Art Cancro [Mon, 2 Jul 2012 20:48:09 +0000 (16:48 -0400)]
Updated the copyright declaration in several modules, removing any language which encourages the reader to contact the FSF.  Our GPL is open source, not free software.

11 years agostyle
Art Cancro [Mon, 2 Jul 2012 20:42:00 +0000 (16:42 -0400)]
style

11 years agoPOP3Client: Log the Hostname, not sensitive information.
Wilfried Goesgens [Mon, 2 Jul 2012 19:55:35 +0000 (21:55 +0200)]
POP3Client: Log the Hostname, not sensitive information.

11 years agoPOP3Client: Check pointer before accessing it
Wilfried Goesgens [Mon, 2 Jul 2012 19:09:26 +0000 (21:09 +0200)]
POP3Client: Check pointer before accessing it

11 years agoSharing: add NSYN
Wilfried Goesgens [Sun, 1 Jul 2012 09:48:19 +0000 (11:48 +0200)]
Sharing: add NSYN

  - expose the NSYN command to the webcit room sharing interface.

11 years agoAdd null-check before access.
Wilfried Goesgens [Sun, 1 Jul 2012 09:32:33 +0000 (11:32 +0200)]
Add null-check before access.

11 years agoSharing: swap sequence to reduce warnings.
Wilfried Goesgens [Sun, 1 Jul 2012 09:29:49 +0000 (11:29 +0200)]
Sharing: swap sequence to reduce warnings.

11 years agoRoom Edit: add missing closing div
Wilfried Goesgens [Sun, 1 Jul 2012 09:29:20 +0000 (11:29 +0200)]
Room Edit: add missing closing div

11 years agoTidy: remove trailing / which makes all the rest barf
Wilfried Goesgens [Sun, 1 Jul 2012 09:28:55 +0000 (11:28 +0200)]
Tidy: remove trailing / which makes all the rest barf

11 years agoRoomedit - Sharing: remove lines unneeded
Wilfried Goesgens [Sun, 1 Jul 2012 09:03:07 +0000 (11:03 +0200)]
Roomedit - Sharing: remove lines unneeded

  - add portable function to find & remove a section
  - call that function instead of doing it in place.
  - there is no input=input, its input=text

11 years agoRoomedit - Sharing: swap layout
Wilfried Goesgens [Sun, 1 Jul 2012 09:01:27 +0000 (11:01 +0200)]
Roomedit - Sharing: swap layout

  - if we change the sequence the tables appear, removing columns work.
  - split i18n text so there is no html inside.

11 years agoQueueView: use right end conditional
Wilfried Goesgens [Sun, 1 Jul 2012 08:59:53 +0000 (10:59 +0200)]
QueueView: use right end conditional

11 years agoImportant message: remove debug blurb
Wilfried Goesgens [Sat, 30 Jun 2012 14:37:30 +0000 (16:37 +0200)]
Important message: remove debug blurb

11 years agoSMTPQueue: add ability to rerun the queue
Wilfried Goesgens [Sat, 30 Jun 2012 14:35:39 +0000 (16:35 +0200)]
SMTPQueue: add ability to rerun the queue

  - to protect the user from himself force him to read the hint text before actualy triggering SMTP runqueue
  - add the status of the runqueue to the important message to give feedback to the user.

11 years agoSMTPQueue: fix layout, add missing /div
Wilfried Goesgens [Sat, 30 Jun 2012 14:33:31 +0000 (16:33 +0200)]
SMTPQueue: fix layout, add missing /div

11 years agoLayout: allways add div for important message
Wilfried Goesgens [Sat, 30 Jun 2012 14:32:58 +0000 (16:32 +0200)]
Layout: allways add div for important message

  - if something special arizes, we show the important_message mechanism.
  - this div so far is only added, if there is something to show.
  - in order to display events at runtime (from ajax replies) we now add it always.
  - hide it if it should be empty
  - only add the autohide-trigger if its shown.

11 years agoAdd define for mailq-view
Wilfried Goesgens [Sat, 30 Jun 2012 12:21:42 +0000 (14:21 +0200)]
Add define for mailq-view

11 years agochanging internal version number to 8.12 v8.12
Art Cancro [Tue, 26 Jun 2012 14:51:02 +0000 (10:51 -0400)]
changing internal version number to 8.12

11 years agoNetQueue: make logging runtime configurable; add context.
Wilfried Goesgens [Sun, 24 Jun 2012 10:31:24 +0000 (12:31 +0200)]
NetQueue: make logging runtime configurable; add context.

11 years agoNSYN: fix choosing of remote party.
Wilfried Goesgens [Sat, 23 Jun 2012 09:19:06 +0000 (11:19 +0200)]
NSYN: fix choosing of remote party.

11 years agoMODULES: add priorities in execution
Wilfried Goesgens [Fri, 22 Jun 2012 21:28:52 +0000 (23:28 +0200)]
MODULES: add priorities in execution

  - specialy the EV_TIMER callbacks were suffering from wrong order execution which caused bad behaviours:
    - network queueing now is executed before mail queue handling -> mailinglist posts are sent in < 60s instead of < 120s as before
    - network spool consolidation is done before running the citadel networkers; that way the NTT-list won't be locked by running networkers

11 years agoNetworkClient: fix filedescriptor leaks
Wilfried Goesgens [Fri, 22 Jun 2012 18:58:57 +0000 (20:58 +0200)]
NetworkClient: fix filedescriptor leaks

  - in all cases where we're done with the spoolfile we need to close its handle & flush the FDIO buffer if already alloc'd

11 years agoEVENT Client: parametrize when to close the fd on detach or not
Wilfried Goesgens [Tue, 19 Jun 2012 21:50:21 +0000 (23:50 +0200)]
EVENT Client: parametrize when to close the fd on detach or not

  - we shouldn't close our FD if we want to continue using it later on after doing i.e. database io.

11 years agoPOP3Client: fix logging
Wilfried Goesgens [Tue, 19 Jun 2012 21:44:55 +0000 (23:44 +0200)]
POP3Client: fix logging

  - add final statistic statement with count
  - remove uber-verbose log-statements
  - make the rest of the logging configurable.

11 years agoEVENT-Client: don't call the timeout function directly
Wilfried Goesgens [Sat, 16 Jun 2012 08:49:08 +0000 (10:49 +0200)]
EVENT-Client: don't call the timeout function directly

  - if we call the timeout function directly we might find upper stackframes which rely on the event-context still being valid. Thus we rather set a timeout of 0.0 which then calls the timeout function and kills the context.

11 years agoEVENTClient: rather use the FD found on our internal structures then searching it...
Wilfried Goesgens [Fri, 15 Jun 2012 18:03:58 +0000 (20:03 +0200)]
EVENTClient: rather use the FD found on our internal structures then searching it on the watcher struct; its not allways there.

11 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Thu, 14 Jun 2012 22:06:26 +0000 (00:06 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

11 years agoserv_read_binary(): abort if the server status returns anything else then 6xx
Wilfried Goesgens [Thu, 14 Jun 2012 22:05:21 +0000 (00:05 +0200)]
serv_read_binary(): abort if the server status returns anything else then 6xx

11 years agocmd_read(): fseek just returns 0 on success, not the current offset.
Wilfried Goesgens [Thu, 14 Jun 2012 22:04:27 +0000 (00:04 +0200)]
cmd_read(): fseek just returns 0 on success, not the current offset.

11 years agoremove duplicate definition in it.po
Art Cancro [Thu, 14 Jun 2012 21:04:41 +0000 (17:04 -0400)]
remove duplicate definition in it.po

11 years agoNSYN: adjust to new semantics
Wilfried Goesgens [Wed, 13 Jun 2012 22:56:13 +0000 (00:56 +0200)]
NSYN: adjust to new semantics

  - load stuff we need to properly decide whether to spool files or not.

11 years agoNetworkespool: use FileMoveChunked(); since the others won't read or won't write...
Wilfried Goesgens [Wed, 13 Jun 2012 22:53:07 +0000 (00:53 +0200)]
Networkespool: use FileMoveChunked(); since the others won't read or won't write with offset.

11 years agoAdd FileMoveChunked(); which can read and write with offsets.
Wilfried Goesgens [Wed, 13 Jun 2012 22:51:21 +0000 (00:51 +0200)]
Add FileMoveChunked(); which can read and write with offsets.

11 years agoEVENT: when handling errors EAGAIN isn't fatal.
Wilfried Goesgens [Tue, 12 Jun 2012 21:19:14 +0000 (23:19 +0200)]
EVENT: when handling errors EAGAIN isn't fatal.

11 years agoCURL: just call init once.
Wilfried Goesgens [Tue, 12 Jun 2012 21:18:02 +0000 (23:18 +0200)]
CURL: just call init once.

11 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Mon, 11 Jun 2012 20:25:00 +0000 (22:25 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

11 years agoSMTP-Client: fix target port handling for relay & fallback hosts
Wilfried Goesgens [Mon, 11 Jun 2012 20:24:13 +0000 (22:24 +0200)]
SMTP-Client: fix target port handling for relay & fallback hosts

11 years agoUse right size value as input for splice.
Wilfried Goesgens [Mon, 11 Jun 2012 08:48:23 +0000 (10:48 +0200)]
Use right size value as input for splice.

11 years agoNetworkclient: opend spoolfile with proper flags for splice(); fix some minor stabili...
Wilfried Goesgens [Sun, 10 Jun 2012 15:16:14 +0000 (17:16 +0200)]
Networkclient: opend spoolfile with proper flags for splice(); fix some minor stability issues

11 years agoFileSendChunked(): replace sendfile by splice()
Wilfried Goesgens [Sun, 10 Jun 2012 15:12:58 +0000 (17:12 +0200)]
FileSendChunked(): replace sendfile by splice()
FileSendChunked+FileRecvChunked: handle situations in which the first splice reads more then the second can send.

11 years agoNETP: extract password string when we need it. else it might be overwritten meanwhile.
Wilfried Goesgens [Sun, 10 Jun 2012 14:08:46 +0000 (16:08 +0200)]
NETP: extract password string when we need it. else it might be overwritten meanwhile.

11 years agonetworker: use the right char buffer for the password.
Wilfried Goesgens [Sun, 10 Jun 2012 13:54:47 +0000 (15:54 +0200)]
networker: use the right char buffer for the password.

11 years agoNetworker: Follow changes of networking infrastructure in the networker client
Wilfried Goesgens [Sun, 10 Jun 2012 12:49:09 +0000 (14:49 +0200)]
Networker: Follow changes of networking infrastructure in the networker client

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;-)