* add StrBufPook which blobs out a sub-part of the string
* add StrBufStripAllBut, which aims to replace stripallbut, whose functionality is not yet all clear to me.
* add NULL protection to StrBufSub
Art Cancro [Sun, 7 Mar 2010 05:01:27 +0000 (05:01 +0000)]
* Never mind ... I understand now. Messages which were copied *in* by code between r8300 and r8431 are corrupt on-disk and cannot be rendered. Backed out my last change.
Art Cancro [Sun, 7 Mar 2010 00:19:01 +0000 (00:19 +0000)]
* msgbase.c now contains both the new and old versions of CtdlOutputPreLoadedMsg() so that I can work on other things while the new version is debugged. define NEW_COPLM to get the new version, otherwise you get the one from r8422.
* fix convert_internet_message_buf(); we forgot to append a newline here
* calculate the body start pos while iterating, so we can react the same way we did before
Art Cancro [Fri, 5 Mar 2010 21:19:07 +0000 (21:19 +0000)]
* New parameter to CtdlSaveMsgPointersInRoom() to suppress the reference count adjustment. To be used ONLY when we're going to rewrite the metadata manually. Used ONLY by serv_migrate. Everyone else HANDS OFF.
Art Cancro [Wed, 3 Mar 2010 05:29:25 +0000 (05:29 +0000)]
* Removed code from serv_chat.c that checks to see whether the final character was a newline. Moved it to memfmout() instead. memfmout() is now guaranteed to output a newline as its final character *if* it outputs any data at all.
Art Cancro [Wed, 3 Mar 2010 05:17:28 +0000 (05:17 +0000)]
* Changed strings to 'First Name' and 'Last Name' in the vcard editor to avoid namespace conflict with the strings 'First' and 'Last' in the bbsview. Also changed these strings in all existing localizations in order to avoid losing them.
Art Cancro [Tue, 2 Mar 2010 20:10:40 +0000 (20:10 +0000)]
* Slightly more computationally efficient version of memfmout() that doesn't use cprintf() and doesn't switch into kernel space one character at a time.
* rework imap tokenizer, we no longer copy the stuff around, we keep a reference in the source buffer
* we may have "unlimited" numbers of tokens
* spread the change of ConstStr all over the imap server
* lots of consts all over the whole place
* remove header of a function which was moved to libcitadel a while ago
* if UBER_VERBOSE_DEBUGGING is defined, wc_printf will wrap its output with File:Function:Line[string]
Art Cancro [Thu, 25 Feb 2010 05:21:39 +0000 (05:21 +0000)]
* Noticed that when serv_chat.c sets async_waiting to 1, it also checks to see if the target session is in CON_IDLE, and if so, switches it to CON_READY. serv_xmpp.c now does this as well. Also unified this action in both modules by creating a shared function called set_async_waiting().
Art Cancro [Tue, 23 Feb 2010 16:28:58 +0000 (16:28 +0000)]
* Tweaked some of the XMPP stanzas to include a valid 'to=' parameter. The presence of online buddies at login time is now working again in the current version of Pidgin. Unsolicited events are still not being received at all, however. This includes incoming instant messages and presence/nonpresence updates which occur during the session.
Art Cancro [Mon, 22 Feb 2010 18:30:51 +0000 (18:30 +0000)]
* Renamed the 'jabber' module to 'xmpp' module. Also renamed functions starting with jabber_ to xmpp_ . Obviously I did *not* rename any of the XML namespaces because that would break the protocol.
* since valgrinds name reacting to killall has become verry fancy to type, do the same on SIGINT as SIGHUP when running from the console: cleanup shit and exit.
* don't break overlong lines on random places and loose chars, find the nearest previous / next whitespace and kick it there.
* don't use cprintf, since we know the buffersize hand have reserved space for the newline... client_write is faster.
Art Cancro [Wed, 17 Feb 2010 17:29:05 +0000 (17:29 +0000)]
* text client: try the user's password with and without strproc() processing. This will allow authentication of users in LDAP etc. who have special characters in their passwords, without breaking the sites using self-contained auth that have passwords stored (unbeknownst to the users) whose passwords went into the db stripped. Resolves bug 457.
Art Cancro [Wed, 17 Feb 2010 16:53:03 +0000 (16:53 +0000)]
* Switch from ldap_search_st() to ldap_search_ext_s(). The latter is not deprecated.
* Ignore the return value from ldap_search_ext_s() because it appears to be misleading. Instead, check to see whether the search returned any results (null or not null). This also fixes a potential memory leak resulting from ldap_search_ext_s() returning an error code but still populating the search results.
Art Cancro [Mon, 15 Feb 2010 22:47:57 +0000 (22:47 +0000)]
* Implemented a new way to show where the new and old messages are, that is visually consistent with the rest of the layout. TRANSLATORS: there are a few new strings; please localize