citadel.git
14 years ago* reorganize some templates into subdirectories
Wilfried Göesgens [Mon, 28 Dec 2009 15:48:12 +0000 (15:48 +0000)]
* reorganize some templates into subdirectories
* addopt new template names
Thats the move list:

display_aide_menu.html aide/display_menu.html aide_display_menu
display_ignet_confirmdelete.html aide/ignetconf/display_confirm_delete.html aide_ignetconf_display_confirm_delete
edit_node.html aide/ignetconf/edit_node.html aide_ignetconf_edit_node
section_ignetconf.html aide/ignetconf/section.html aide_ignetconf_section
add_node.html aide/ignetconf/add.html aide_ignetconf_add

display_netconf.html aide/display_ignetconf.html  aide_display_ignetconf
display_sitewide_config.html aide aide_display_sitewide_config

tab_siteconfig_access.html aide/siteconfig/tab_access.html aide_siteconfig_tab_access
tab_siteconfig_autopurger.html aide/siteconfig/tab_autopurger.html aide_siteconfig_tab_autopurger
tab_siteconfig_directory.html aide/siteconfig/tab_directory.html aide_siteconfig_tab_directory
tab_siteconfig_general.html aide/siteconfig/tab_general.html aide_siteconfig_tab_general
tab_siteconfig_indexing.html aide/siteconfig/tab_indexing.html aide_siteconfig_tab_indexing
tab_siteconfig_network.html aide/siteconfig/tab_network.html aide_siteconfig_tab_network
tab_siteconfig_pop3.html aide/siteconfig/tab_pop3.html aide_siteconfig_tab_pop3
tab_siteconfig_pushmail.html aide/siteconfig/tab_pushmail.html aide_siteconfig_tab_pushmail
tab_siteconfig_tuning.html aide/siteconfig/tab_tuning.html aide_siteconfig_tab_tuning
siteconfig_tzsection.html aide/siteconfig/tzsection.html aide_siteconfig_tzsection
submit_siteconfig.html aide/siteconfig/submit.html aide_siteconfig_submit

aide_inetconf.html aide/display_inetconf.html aide_display_inetconf
aide_inet_aliases.html aide/inet/aliases.html
aide_inet_clamav.html aide/inet/clamav.html
aide_inet_dirnames.html aide/inet/dirnames.html
aide_inet_fallbackhosts.html aide/inet/fallbackhosts.html
aide_inet_masqdomains.html aide/inet/masqdomains.html
aide_inet_notify.html aide/inet/notify.html
aide_inet_rbldns.html aide/inet/rbldns.html
aide_inet_smarthosts.html aide/inet/smarthosts.html
aide_inet_spamass.html aide/inet/spamass.html

page_now.html paging/now.html paging_now
paging_anchor.html paging/anchor.html paging_anchor
paging_failed_hook.html paging/failed_hook.html paging_failed_hook

display_serverrestartpage.html aide/display_serverrestart_page.html aide_display_serverrestart_page
display_serverrestart.html aide
display_serverrestartpagedo.html aide/display_serverrestart_page_do.html
box_serverrestart.html aide/serverrestart/box.html
box_serverrestartpage.html aide/serverrestart/box_page.html
box_serverrestartpagedo.html aide/serverrestart/box_page_do.html

section_files_onefile.html files/section_onefile.html files_section_onefile
files_jspicview.html files/picview.js

pushemail.html prefs/pushemail.html prefs_pushemail

section_userlist_select.html aide/edituser/section.html
edituser_select.html aide/edituser/select.html aide_edituser_select
edituser_add.html aide/edituser/add.html aide_edituser_add
userlist_detailview.html aide/edituser/detailview.html aide_edituser_detailview

wholist_section.html who/iconbar.html who_iconbar
whosimplesection.html who/iconbar_section.html who_iconbar_section

wholiststatic_header.html who/list_static_header.html
wholiststatic.html who/box_list_static.html
wholistsummarysection.html who/summary.html who_summary
whosummarysection.html who/summary_section.html who_summary_section
whosection.html who/bla_list_section.html

14 years ago* apply R8157 from the dav-rework branch:
Wilfried Göesgens [Sat, 26 Dec 2009 15:12:42 +0000 (15:12 +0000)]
* apply R8157 from the dav-rework branch:
* make the template loader recursive; now t/ can contain subdirectories
* create the template key from the directory relative to t/ with '/' seperated by _ :
* t/knrooms/rooms.html is represented as knrooms_rooms so it would be equal to t/knrooms_rooms.html
* have an optional dbg/ directory next to t; this will be used for creating special templates for debugging / testing

14 years agoSwitch to 4096 bit Diffie-Hellman parameters for Citadel text client/protocol
Michael Hampton [Wed, 23 Dec 2009 18:41:20 +0000 (18:41 +0000)]
Switch to 4096 bit Diffie-Hellman parameters for Citadel text client/protocol

14 years ago* Some RSS feeds are tagged as <rdf> instead of <rss>. Handle these as RSS instead...
Art Cancro [Tue, 22 Dec 2009 17:31:11 +0000 (17:31 +0000)]
* Some RSS feeds are tagged as <rdf> instead of <rss>.  Handle these as RSS instead of discarding them.

14 years ago* wrong evaluation of return value; we're actualy _expecting_ 4xx instead of !4xx
Wilfried Göesgens [Tue, 22 Dec 2009 15:43:42 +0000 (15:43 +0000)]
* wrong evaluation of return value; we're actualy _expecting_ 4xx instead of !4xx

14 years ago* make shure the buffer is cleared
Wilfried Göesgens [Mon, 21 Dec 2009 12:41:20 +0000 (12:41 +0000)]
* make shure the buffer is cleared
* if the result is unexpected, log an error

14 years ago* apply the release stuff to head too from r8127
Wilfried Göesgens [Mon, 21 Dec 2009 12:38:16 +0000 (12:38 +0000)]
* apply the release stuff to head too from r8127

14 years ago* fix StrBufNum_tokens
Wilfried Göesgens [Sun, 20 Dec 2009 22:42:13 +0000 (22:42 +0000)]
* fix StrBufNum_tokens
* add some more tests for the tokenizer
* add some tests to check StrBufCutRight, StrBufCutLeft, StrBufCutAt; Make them NULL aware

14 years ago* init the pointer, so we don't use random ones here
Wilfried Göesgens [Sat, 19 Dec 2009 21:45:10 +0000 (21:45 +0000)]
* init the pointer, so we don't use random ones here

14 years agoAllow citadel / libcitadel to be built outside their source directory, e.g.:
Michael Hampton [Sat, 19 Dec 2009 00:02:37 +0000 (00:02 +0000)]
Allow citadel / libcitadel to be built outside their source directory, e.g.:
mkdir build/citadel; cd build/citadel; ../../src/citadel/configure; make

14 years ago* by matt:
Wilfried Göesgens [Fri, 18 Dec 2009 08:07:02 +0000 (08:07 +0000)]
* by matt:
  * add RA-Flags token
  * use RA flags to detect whether a room has new messages or not in the room treeview; this was using QRFlags by mistake

14 years ago* fix StrBufIsNumber; its not used right now, but it should be sane ;-)
Wilfried Göesgens [Tue, 15 Dec 2009 20:27:01 +0000 (20:27 +0000)]
* fix StrBufIsNumber; its not used right now, but it should be sane ;-)
* add more tests

14 years ago* Merged the new BBS view code, with an ifdef around it. Define NEW_BBS_VIEW if...
Art Cancro [Mon, 14 Dec 2009 17:17:12 +0000 (17:17 +0000)]
* Merged the new BBS view code, with an ifdef around it.  Define NEW_BBS_VIEW if you want to test it out.  Unfinished.

14 years ago* Silenced a couple more warn_unused_result warnings
Art Cancro [Mon, 14 Dec 2009 17:13:03 +0000 (17:13 +0000)]
* Silenced a couple more warn_unused_result warnings

14 years ago* shuffle arround stuff a little bit
Wilfried Göesgens [Sun, 13 Dec 2009 20:26:27 +0000 (20:26 +0000)]
* shuffle arround stuff a little bit
* move debug stuff into own functions so its a little cleaner

14 years ago* more testcoverage
Wilfried Göesgens [Sun, 13 Dec 2009 19:05:04 +0000 (19:05 +0000)]
* more testcoverage
* found one input param check

14 years ago* add (optional) gcov flags
Wilfried Göesgens [Sun, 13 Dec 2009 16:44:02 +0000 (16:44 +0000)]
* add (optional) gcov flags

14 years ago* keep local pointers to SMTP as sSMTP instead of querying it on and on. Faster and...
Wilfried Göesgens [Sun, 13 Dec 2009 14:18:46 +0000 (14:18 +0000)]
* keep local pointers to SMTP as sSMTP instead of querying it on and on. Faster and better debuggable.

14 years agothreads are using signals and the GC code is #ifdef if available.
Dave West [Sat, 12 Dec 2009 00:41:00 +0000 (00:41 +0000)]
threads are using signals and the GC code is #ifdef if available.
This comit confuses me since I thought it was already in.
If there are problems back it out imediately.

14 years ago* we were loosing the message Data blob in some weird edge cases. be a bit more paran...
Wilfried Göesgens [Thu, 10 Dec 2009 22:18:46 +0000 (22:18 +0000)]
* we were loosing the message Data blob in some weird edge cases. be a bit more paranoid about creating it

14 years ago* just anounce "new context" if we create a non static context
Wilfried Göesgens [Thu, 10 Dec 2009 22:16:58 +0000 (22:16 +0000)]
* just anounce "new context" if we create a non static context

14 years ago* remove some legacy code
Wilfried Göesgens [Thu, 10 Dec 2009 22:14:43 +0000 (22:14 +0000)]
* remove some legacy code
* remove debug output

14 years ago* typo in varname
Wilfried Göesgens [Sun, 6 Dec 2009 21:36:00 +0000 (21:36 +0000)]
* typo in varname

14 years ago* use different counters for the hash payloads used and hash keys used
Wilfried Göesgens [Sun, 6 Dec 2009 21:19:27 +0000 (21:19 +0000)]
* use different counters for the hash payloads used and hash keys used
* that way we can reduce the keys on deletion and leave the member array indices in place
* the member array might be re-organized on increase

14 years agoHandle ajax embeds for message renderer
Art Cancro [Thu, 3 Dec 2009 23:00:40 +0000 (23:00 +0000)]
Handle ajax embeds for message renderer

14 years ago* ib_logoff isn't switcheable, remove it from the template
Wilfried Göesgens [Thu, 3 Dec 2009 22:14:01 +0000 (22:14 +0000)]
* ib_logoff isn't switcheable, remove it from the template
* make the logoff one line as the_mgt suggested

14 years ago* make the iconbar css a template
Wilfried Göesgens [Thu, 3 Dec 2009 21:58:27 +0000 (21:58 +0000)]
* make the iconbar css a template
* use the #define logic for the iconbar items, first use for defines.
* thanks the_mgt for %% detection ;-)
wc_session changed, run bootstrap and make clean

14 years agoOops, missed comitting this file.
Dave West [Thu, 3 Dec 2009 21:28:11 +0000 (21:28 +0000)]
Oops, missed comitting this file.

14 years ago Rename function as per dothebart's recomendation.
Dave West [Thu, 3 Dec 2009 21:12:19 +0000 (21:12 +0000)]
 Rename function as per dothebart's recomendation.

14 years agoFor peer review.
Dave West [Thu, 3 Dec 2009 20:00:03 +0000 (20:00 +0000)]
For peer review.
Added two new hash manipulation functions.
int SetHashPosFromKey(HashList *Hash, const char *HKey, long HKLen, HashPos *At);
int DeleteEntryFromHash(HashList *Hash, HashPos *At);

First one searches for the Key and updates the HashPos to point at it.
Second one deletes an entry from the hash, entry is pointed to by HashPos

14 years ago* delete the room/floor hashes we store in the session (here too..)
Wilfried Göesgens [Mon, 30 Nov 2009 21:54:06 +0000 (21:54 +0000)]
* delete the room/floor hashes we store in the session (here too..)

14 years ago* make configure check for getloadavg()
Wilfried Göesgens [Mon, 30 Nov 2009 19:33:48 +0000 (19:33 +0000)]
* make configure check for getloadavg()

14 years ago* Moved most of the BBS View renderer code into its own file, in preparation for...
Art Cancro [Fri, 27 Nov 2009 16:24:43 +0000 (16:24 +0000)]
* Moved most of the BBS View renderer code into its own file, in preparation for making changes to it

14 years ago* add support for defines
Wilfried Göesgens [Thu, 26 Nov 2009 23:33:40 +0000 (23:33 +0000)]
* add support for defines
Syntax;
 #"ib_logoff"
will be resolved to the long value of ib_logoff at parse time

14 years ago* one more place to NULL it
Wilfried Göesgens [Thu, 26 Nov 2009 23:28:05 +0000 (23:28 +0000)]
* one more place to NULL it

14 years ago* more points to NULL the offset pointer
Wilfried Göesgens [Thu, 26 Nov 2009 20:41:02 +0000 (20:41 +0000)]
* more points to NULL the offset pointer

14 years ago* Changed some of the '&' between url parameters to '?' (ongoing)
Art Cancro [Wed, 25 Nov 2009 21:45:26 +0000 (21:45 +0000)]
* Changed some of the '&' between url parameters to '?' (ongoing)

14 years ago* Modified the text client so that the <E>nter message command does not work in room...
Art Cancro [Wed, 25 Nov 2009 20:38:42 +0000 (20:38 +0000)]
* Modified the text client so that the <E>nter message command does not work in room types other than BBS and Mailbox.

14 years ago* shutting down wildfire seems to work now.
Wilfried Göesgens [Tue, 24 Nov 2009 23:26:33 +0000 (23:26 +0000)]
* shutting down wildfire seems to work now.

14 years ago* free the complete handler struct, the added stuff too.
Wilfried Göesgens [Tue, 24 Nov 2009 22:45:46 +0000 (22:45 +0000)]
* free the complete handler struct, the added stuff too.

14 years ago* more entry checking.
Wilfried Göesgens [Tue, 24 Nov 2009 20:42:48 +0000 (20:42 +0000)]
* more entry checking.

14 years ago* zapped some of the 'TODO: document me' in citserver.c
Art Cancro [Tue, 24 Nov 2009 20:19:06 +0000 (20:19 +0000)]
* zapped some of the 'TODO: document me' in citserver.c

14 years ago* fix the server cookie feature.
Wilfried Göesgens [Mon, 23 Nov 2009 20:20:14 +0000 (20:20 +0000)]
* fix the server cookie feature.

14 years ago* Noted in rdf_parsedate() that the YYYY-MM-DDTHH:MM format is actually a quasi-stand...
Art Cancro [Mon, 23 Nov 2009 14:58:48 +0000 (14:58 +0000)]
* Noted in rdf_parsedate() that the YYYY-MM-DDTHH:MM format is actually a quasi-standard known as 'W3C DateTime'.

14 years ago* use toplevel thingie tag to detect whether we're RSS or ATOM.
Wilfried Göesgens [Sat, 21 Nov 2009 18:20:42 +0000 (18:20 +0000)]
* use toplevel thingie tag to detect whether we're RSS or ATOM.

14 years ago* Adjusted the 'caltoday' CSS to make it a color that doesn't render the text unreada...
Art Cancro [Fri, 20 Nov 2009 04:12:24 +0000 (04:12 +0000)]
* Adjusted the 'caltoday' CSS to make it a color that doesn't render the text unreadable.  Also fixed a stylesheet bug that put today's date number in the middle of the box instead of on top.

14 years ago* Silence warn_unused_result in setup.c
Art Cancro [Fri, 20 Nov 2009 04:03:45 +0000 (04:03 +0000)]
* Silence warn_unused_result in setup.c

14 years ago* Reverted r8058 because it is crashing Uncensored quite a lot.
Art Cancro [Fri, 20 Nov 2009 03:11:20 +0000 (03:11 +0000)]
* Reverted r8058 because it is crashing Uncensored quite a lot.

14 years ago* Restored the parsing of <link> tags in RSS feeds.
Art Cancro [Thu, 19 Nov 2009 21:38:21 +0000 (21:38 +0000)]
* Restored the parsing of <link> tags in RSS feeds.

14 years ago* add author to atoms
Wilfried Göesgens [Thu, 19 Nov 2009 21:28:35 +0000 (21:28 +0000)]
* add author to atoms
* fix author for rss

14 years ago* fix crash in downloads.c; memset should prune SubTP not TP.
Wilfried Göesgens [Thu, 19 Nov 2009 19:52:39 +0000 (19:52 +0000)]
* fix crash in downloads.c; memset should prune SubTP not TP.

14 years ago* set correct buffer end pointer, so we don't run into unknown ground
Wilfried Göesgens [Wed, 18 Nov 2009 23:00:29 +0000 (23:00 +0000)]
* set correct buffer end pointer, so we don't run into unknown ground

14 years ago* fix buffer overrun conditions in StrBufRemove_token
Wilfried Göesgens [Wed, 18 Nov 2009 22:58:49 +0000 (22:58 +0000)]
* fix buffer overrun conditions in StrBufRemove_token
* terminate string when cutting it

14 years ago* silenced more warnings
Art Cancro [Wed, 18 Nov 2009 16:11:37 +0000 (16:11 +0000)]
* silenced more warnings

14 years ago* Silenced the remaining warn_unused_result in setup.c
Art Cancro [Wed, 18 Nov 2009 15:43:46 +0000 (15:43 +0000)]
* Silenced the remaining warn_unused_result in setup.c

14 years ago* Gratuitous style cleanup of some of the imap code
Art Cancro [Wed, 18 Nov 2009 15:35:41 +0000 (15:35 +0000)]
* Gratuitous style cleanup of some of the imap code

14 years ago* start atom feed reader implementation, most of the freshmeat.org feed seems to...
Wilfried Göesgens [Wed, 18 Nov 2009 08:15:01 +0000 (08:15 +0000)]
* start atom feed reader implementation, most of the freshmeat.org feed seems to work now ;-)

14 years ago* arm the thread on shutdown killer. killing is better then waiting for a -9 from...
Wilfried Göesgens [Tue, 17 Nov 2009 21:14:44 +0000 (21:14 +0000)]
* arm the thread on shutdown killer. killing is better then waiting for a -9 from the admin.

14 years ago* If patch fails, send rejects to /dev/null instead of cluttering /tmp with them.
Art Cancro [Tue, 17 Nov 2009 17:20:49 +0000 (17:20 +0000)]
* If patch fails, send rejects to /dev/null instead of cluttering /tmp with them.
* Report pclose() failures in serv_wiki.c because they probably indicate that a diff or patch command failed.

14 years ago* Currently working through a bug that's preventing wiki history pages from being...
Art Cancro [Tue, 17 Nov 2009 04:27:39 +0000 (04:27 +0000)]
* Currently working through a bug that's preventing wiki history pages from being replicated over the network.

14 years agoconfigure will now detect the Boehm-Demers-Weiser garbage collection library
Dave West [Mon, 16 Nov 2009 23:08:23 +0000 (23:08 +0000)]
configure will now detect the Boehm-Demers-Weiser garbage collection library
We don't actually use it yet but we will when I add the libsee javascript
engine that recomends it.
We will probably need to add the Boehm-Demers-Weiser library to easyinstall
since it seems only debian based distros have it as a package.

14 years ago* function signature was wrong. luckily we didn't use that additional parameter.
Wilfried Göesgens [Mon, 16 Nov 2009 22:02:11 +0000 (22:02 +0000)]
* function signature was wrong. luckily we didn't use that additional parameter.

14 years ago* when reallocing the buffer, flush the external pointer
Wilfried Göesgens [Mon, 16 Nov 2009 20:27:33 +0000 (20:27 +0000)]
* when reallocing the buffer, flush the external pointer

14 years ago* Added a new category 'fallback smart host'. These are smart hosts that are used...
Art Cancro [Sun, 15 Nov 2009 04:41:43 +0000 (04:41 +0000)]
* Added a new category 'fallback smart host'.  These are smart hosts that are used only when direct delivery fails.  It's just the thing for those sites that have a smart host available but prefer not to use it.

14 years agoAdd a newline at end of file to stop some compilers moaning.
Dave West [Sat, 14 Nov 2009 16:25:31 +0000 (16:25 +0000)]
Add a newline at end of file to stop some compilers moaning.

14 years agoFixed the SMTP sending as a thread. Now the thread doesn't think its
Dave West [Sat, 14 Nov 2009 16:17:06 +0000 (16:17 +0000)]
Fixed the SMTP sending as a thread. Now the thread doesn't think its
running when it isn't.

14 years ago* Switched the SMTP Client back to a simple timer-event hook with a static variable...
Art Cancro [Sat, 14 Nov 2009 05:16:59 +0000 (05:16 +0000)]
* Switched the SMTP Client back to a simple timer-event hook with a static variable lock.  I couldn't figure out why davew's locking system didn't work.  The code looks solid, but for some reason, after the first time it hits that 'already running' thread, once that first thread exits it never starts again.

14 years ago* Trying to figure out why the SMTP Send queue is stuck on Uncensored. I corrected...
Art Cancro [Fri, 13 Nov 2009 21:33:16 +0000 (21:33 +0000)]
* Trying to figure out why the SMTP Send queue is stuck on Uncensored.  I corrected one edge case where it was possible for the thread to exit without unlocking, but I don't think we were hitting that case.

14 years ago* Renamed the 'wikipage' variable to 'page' in the enter message loop to make it...
Art Cancro [Fri, 13 Nov 2009 04:12:25 +0000 (04:12 +0000)]
* Renamed the 'wikipage' variable to 'page' in the enter message loop to make it identical to its corresponding variable in the read message loop.  This allows the page name to be displayed in the room banner during editing.

14 years ago* Fixed a bug that was causing the initial visit to a Wiki room to fetch the page...
Art Cancro [Wed, 11 Nov 2009 17:58:35 +0000 (17:58 +0000)]
* Fixed a bug that was causing the initial visit to a Wiki room to fetch the page list instead of the home page.
* Wiki page lists, including search results, are now lists of links to those pages.

14 years ago* The 'Search' box now works properly in a Wiki room.
Art Cancro [Wed, 11 Nov 2009 16:27:04 +0000 (16:27 +0000)]
* The 'Search' box now works properly in a Wiki room.

14 years ago* wiki page list
Art Cancro [Tue, 10 Nov 2009 22:57:23 +0000 (22:57 +0000)]
* wiki page list

14 years ago* same bug at StrBuf_Utf8StrLen too.
Wilfried Göesgens [Tue, 10 Nov 2009 22:44:10 +0000 (22:44 +0000)]
* same bug at StrBuf_Utf8StrLen too.

14 years ago* fix exit point in Ctdl_GetUtf8SequenceLength; condition was wrong
Wilfried Göesgens [Tue, 10 Nov 2009 22:34:36 +0000 (22:34 +0000)]
* fix exit point in Ctdl_GetUtf8SequenceLength; condition was wrong
* fix StrHtmlEcmaEscAppend; its utf-8 sequence mechanism was deffective
* fix StrBuf_Utf8StrCut; it needs to count glyphs and bytes in different steps here

14 years agoRemoved an un required extern
Dave West [Tue, 10 Nov 2009 22:00:45 +0000 (22:00 +0000)]
Removed an un required extern

14 years agoRemoved an unrequired extern declaration
Dave West [Tue, 10 Nov 2009 21:22:20 +0000 (21:22 +0000)]
Removed an unrequired extern declaration

14 years agoAdded a FIXME tag.
Dave West [Tue, 10 Nov 2009 21:19:32 +0000 (21:19 +0000)]
Added a FIXME tag.
This module is REALY horrible to the system.
It carries out IO whilst it still has the context list locked.
That alone should merit disabling this module.

14 years agoGrabbed a chunk of code out of citserver.c cmd_term() and used it to create
Dave West [Tue, 10 Nov 2009 21:07:22 +0000 (21:07 +0000)]
Grabbed a chunk of code out of citserver.c cmd_term() and used it to create
a new function
CtdlTerminateOtherSession()
Placed this function in context.c since it manipulates the contexts.
Exposed this function to the API

Noticed we don't seem to have a client that uses the TERM command.

14 years agoMoved terminate_idles_sessions into context.c since it is purely manipulating
Dave West [Tue, 10 Nov 2009 20:12:04 +0000 (20:12 +0000)]
Moved terminate_idles_sessions into context.c since it is purely manipulating
the context list.

14 years agoCleaned a few warnings about deprecated functions.
Dave West [Tue, 10 Nov 2009 20:00:25 +0000 (20:00 +0000)]
Cleaned a few warnings about deprecated functions.

14 years agoCode clean up.
Dave West [Tue, 10 Nov 2009 19:47:44 +0000 (19:47 +0000)]
Code clean up.
Removed some old code that wasn't used.

14 years ago* don't end the header, end_burst does this for us.
Wilfried Göesgens [Tue, 10 Nov 2009 19:44:01 +0000 (19:44 +0000)]
* don't end the header, end_burst does this for us.

14 years agoMoved BumpNewMailCounter() into context.c because it manipulates contexts.
Dave West [Tue, 10 Nov 2009 19:39:19 +0000 (19:39 +0000)]
Moved BumpNewMailCounter() into context.c because it manipulates contexts.
Exposed it to the API as CtdlBumpNewMailCounter() and deprected the old name.

14 years agoGrabbed another chunk of code out of user_ops.c, purge_user()
Dave West [Tue, 10 Nov 2009 19:27:46 +0000 (19:27 +0000)]
Grabbed another chunk of code out of user_ops.c, purge_user()
This chunk checked if a user was logged in by testing the user numbers
It is now a function and exposed to the API as
int CtdlIsUserLoggedInByNum(int num)
Also marked the code with a FIXME since it is unsafe, a user could log in
after the test but before the delete and realy mess things up.

14 years agoGrabbed that previously noted bad code from rename_user that walked
Dave West [Tue, 10 Nov 2009 19:06:33 +0000 (19:06 +0000)]
Grabbed that previously noted bad code from rename_user that walked
the context list without locking. Used it to create a function
int CtdlIsUserLoggedIn (char *username)
and exposed it to the API
Oh yes and I fixed it to walk the list safely.

14 years ago* storing the message list sort order in bbsview breaks the mailbox view. this wasn...
Wilfried Göesgens [Tue, 10 Nov 2009 19:00:48 +0000 (19:00 +0000)]
* storing the message list sort order in bbsview breaks the mailbox view. this wasn't found yet, because of a missing </script>. Disabling for now.

14 years ago* skeleton code for a wiki pagelist screen
Art Cancro [Tue, 10 Nov 2009 18:23:07 +0000 (18:23 +0000)]
* skeleton code for a wiki pagelist screen

14 years ago* headers_euid() needs to look at the 'E' field, not the 'U' field.
Art Cancro [Tue, 10 Nov 2009 18:17:50 +0000 (18:17 +0000)]
* headers_euid() needs to look at the 'E' field, not the 'U' field.

14 years ago* removed a FIXME tag
Art Cancro [Tue, 10 Nov 2009 17:36:46 +0000 (17:36 +0000)]
* removed a FIXME tag

14 years ago* Added a new message field '1' which may be set by BeforeSave hooks. The presence...
Art Cancro [Tue, 10 Nov 2009 03:58:32 +0000 (03:58 +0000)]
* Added a new message field '1' which may be set by BeforeSave hooks.  The presence of this field excludes the message from being included in the full text index.
* Set this field on wiki history pages.

14 years agoExposed logout() from user_ops.c, deprecated it in accordance with
Dave West [Mon, 9 Nov 2009 19:09:50 +0000 (19:09 +0000)]
Exposed logout() from user_ops.c, deprecated it in accordance with
the published coding style.

14 years agoExposed CtdlLocateMessageByEuid in ctdl_module.h and deprecated
Dave West [Sun, 8 Nov 2009 22:48:01 +0000 (22:48 +0000)]
Exposed CtdlLocateMessageByEuid in ctdl_module.h and deprecated
locate_message_by_euid in euidindex.h
Another step towards the documented coding style.

14 years ago* fix message escaping after adding attachments to the currently edited message
Wilfried Göesgens [Sun, 8 Nov 2009 22:13:00 +0000 (22:13 +0000)]
* fix message escaping after adding attachments to the currently edited message

14 years ago* since we load vcards as message body now, finding a vcard attachment already loaded...
Wilfried Göesgens [Sun, 8 Nov 2009 20:33:04 +0000 (20:33 +0000)]
* since we load vcards as message body now, finding a vcard attachment already loaded is no mistake.

14 years ago* forgot to change EM->em here
Wilfried Göesgens [Sun, 8 Nov 2009 20:32:05 +0000 (20:32 +0000)]
* forgot to change EM->em here

14 years agoClean up a comment.
Dave West [Sun, 8 Nov 2009 19:25:17 +0000 (19:25 +0000)]
Clean up a comment.

14 years agoMoved the prototypes of CtdlLoginExistingUser and CtdlTryPassword into
Dave West [Sun, 8 Nov 2009 19:07:25 +0000 (19:07 +0000)]
Moved the prototypes of CtdlLoginExistingUser and CtdlTryPassword into
ctdl_module.h.
They constitute part of the API for modules and we shouldn't need to
include user_ops.h in modules.

14 years agoAdded a log message to test for a problem in worker_thread
Dave West [Sun, 8 Nov 2009 15:53:19 +0000 (15:53 +0000)]
Added a log message to test for a problem in worker_thread

14 years ago* this way its fastest: range check whats allowed and mask the rest.
Wilfried Göesgens [Sun, 8 Nov 2009 14:46:23 +0000 (14:46 +0000)]
* this way its fastest: range check whats allowed and mask the rest.

14 years ago* microshits RFC Violator will just show the tinnef part of a message you reply to...
Wilfried Göesgens [Sun, 8 Nov 2009 11:24:03 +0000 (11:24 +0000)]
* microshits RFC Violator will just show the tinnef part of a message you reply to, so you'll get phonecalls why you send 'em back their mail. -> ignore tinnefs while replying to mails