citadel.git
13 years agoRSS feed generator
Art Cancro [Wed, 8 Sep 2010 21:18:35 +0000 (17:18 -0400)]
RSS feed generator

13 years agoHandle X-Forwarded-Host: properly
Art Cancro [Wed, 8 Sep 2010 18:53:20 +0000 (14:53 -0400)]
Handle X-Forwarded-Host: properly

13 years agoHdr->http_host is now gone.
Art Cancro [Wed, 8 Sep 2010 17:02:05 +0000 (13:02 -0400)]
Hdr->http_host is now gone.

13 years agoRemoved tmplput_HOST_DISPLAYNAME
Art Cancro [Wed, 8 Sep 2010 16:56:39 +0000 (12:56 -0400)]
Removed tmplput_HOST_DISPLAYNAME
<?URL:HOSTNAME> is no longer used and no longer relevant.
<?DAV:HOSTNAME> is better.  It prepends http:// or https://

13 years agoNew global variable 'site_prefix' which replaces the often-repeated code which constr...
Art Cancro [Wed, 8 Sep 2010 16:49:46 +0000 (12:49 -0400)]
New global variable 'site_prefix' which replaces the often-repeated code which constructs a host header when we need to express something as an absolute URL.  In the not too distant future I will add code to allow the server to override the detected value with a configured value.

13 years ago* asterisks...
Wilfried Goesgens [Tue, 7 Sep 2010 21:04:02 +0000 (23:04 +0200)]
* asterisks...

13 years ago* ignore some more tars
Wilfried Goesgens [Tue, 7 Sep 2010 21:03:32 +0000 (23:03 +0200)]
* ignore some more tars

13 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Tue, 7 Sep 2010 21:01:12 +0000 (23:01 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

13 years ago* one more name with umlauts..
Wilfried Goesgens [Tue, 7 Sep 2010 21:00:39 +0000 (23:00 +0200)]
* one more name with umlauts..

13 years ago* if we have a CDATA section assume its the message body.
Wilfried Goesgens [Tue, 7 Sep 2010 20:59:33 +0000 (22:59 +0200)]
* if we have a CDATA section assume its the message body.

13 years agoAllow save-to-drafts without recipients
samjam [Mon, 6 Sep 2010 12:06:28 +0000 (08:06 -0400)]
Allow save-to-drafts without recipients

This is a multipart message in MIME format.

Allow save-to-drafts without recipients
>

  ---
 citadel/msgbase.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

Still need to read X-Citadel-Room when resuming from drafts
<html><body>

<p><span class="message_subject"> Allow save-to-drafts without recipients</span></p>
<blockquote></blockquote>
<div class="message_content"><tt>---</tt><br /> <tt>citadel/msgbase.c |    9 +++++----</tt><br /> <tt>1 files changed, 5 insertions(+), 4 deletions(-)</tt><br /> <br /></div>
<p>Still need to read X-Citadel-Room when resuming from drafts</p>
</body></html>

13 years agoFound a comment in bbsview_renderer.c which made a reference to a particular svn...
Art Cancro [Tue, 7 Sep 2010 20:16:26 +0000 (16:16 -0400)]
Found a comment in bbsview_renderer.c which made a reference to a particular svn revision.  Changed it to the matching git commit hash.

13 years agocmd_invt_kick() is normally permitted when the room namespace matches the user number...
Art Cancro [Tue, 7 Sep 2010 20:01:29 +0000 (16:01 -0400)]
cmd_invt_kick() is normally permitted when the room namespace matches the user number because it means the user owns the room.  Disable this when the namespace happens to be 0.

13 years agoServInfo now learns whether the server supports guest mode.
Art Cancro [Tue, 7 Sep 2010 17:08:23 +0000 (13:08 -0400)]
ServInfo now learns whether the server supports guest mode.
Removed the moreprompt from here because it's not used in webcit.

13 years agoAdd c_guest_logins to webcit siteconfig
Art Cancro [Tue, 7 Sep 2010 14:54:20 +0000 (10:54 -0400)]
Add c_guest_logins to webcit siteconfig

13 years ago* re-enable drafts as proposed by samjam.
Wilfried Goesgens [Sun, 5 Sep 2010 18:32:59 +0000 (20:32 +0200)]
* re-enable drafts as proposed by samjam.

13 years ago* add missing entry in list of environment variables to fix off by one making the...
Wilfried Goesgens [Sun, 5 Sep 2010 17:59:24 +0000 (19:59 +0200)]
* add missing entry in list of environment variables to fix off by one making the .debs put settings into wrong citadel setting.
 Thanks Samjam to give the missing hint to track this bug.

13 years ago* don't ignore other .gitignores ;-)
Wilfried Goesgens [Sun, 5 Sep 2010 16:00:52 +0000 (18:00 +0200)]
* don't ignore other .gitignores ;-)

13 years ago* ignore some more debian subdirectories and files
Wilfried Goesgens [Sun, 5 Sep 2010 15:51:31 +0000 (17:51 +0200)]
* ignore some more debian subdirectories and files

13 years agoVIEW_DRAFTS=9, VIEW=BLOG=10
Art Cancro [Sat, 4 Sep 2010 17:26:28 +0000 (13:26 -0400)]
VIEW_DRAFTS=9, VIEW=BLOG=10

13 years agoThe status line is back! Reused the callbacks from IO ERROR's
Art Cancro [Sat, 4 Sep 2010 05:52:27 +0000 (01:52 -0400)]
The status line is back!  Reused the callbacks from IO ERROR's
implementation but reimplemented the display in a way that does
not require using curses.

13 years agoAdded the ability to handle Base64-encoded URL's. We will use these, along with...
Art Cancro [Fri, 3 Sep 2010 22:22:04 +0000 (18:22 -0400)]
Added the ability to handle Base64-encoded URL's.  We will use these, along with the new
start_reading_at field, to tell search engines how to find the tops of message threads when we
eventually begin offering sitemaps.

13 years agoAdded a "start_reading_at" field to the BBS renderer in webcit. When present, the...
Art Cancro [Fri, 3 Sep 2010 21:27:59 +0000 (17:27 -0400)]
Added a "start_reading_at" field to the BBS renderer in webcit.  When present, the renderer will
start the user out on whichever page contains the specified message number, or the nearest message to
that number if an exact match is not found.

13 years agoRemove HKEY from call to strncmp so that it compiles.
Art Cancro [Fri, 3 Sep 2010 21:09:17 +0000 (17:09 -0400)]
Remove HKEY from call to strncmp so that it compiles.

13 years agoUncomment 'not yet implemented' next to BLOG_VIEW in libcitadel.h
Art Cancro [Fri, 3 Sep 2010 21:03:36 +0000 (17:03 -0400)]
Uncomment 'not yet implemented' next to BLOG_VIEW in libcitadel.h

13 years agoImplemented a nice way to do a status line that clings to the top of the screen witho...
Art Cancro [Fri, 3 Sep 2010 20:05:07 +0000 (16:05 -0400)]
Implemented a nice way to do a status line that clings to the top of the screen without having to use
curses or ncurses.  Currently commented out.

13 years agoRemoved the USscreenwidth and USscreenheight fields. Everywhere. Since these were...
Art Cancro [Fri, 3 Sep 2010 17:23:44 +0000 (13:23 -0400)]
Removed the USscreenwidth and USscreenheight fields.  Everywhere.  Since these were the last two
fields in the ctdluser data structure, we are able to simply remove them instead of replacing them
with placeholders.  cmd_getu() now returns 80x24 all the time, and cmd_setu() now ignores the
supplied screen dimensions.

13 years agocmd_msg*() now work properly in guest mode. This completes the minimum required...
Art Cancro [Fri, 3 Sep 2010 17:06:18 +0000 (13:06 -0400)]
cmd_msg*() now work properly in guest mode.  This completes the minimum required functionality for an anonymous guest client to traverse public rooms and read messages.

13 years agoAllow MSGS command to operate in guest mode.
Art Cancro [Fri, 3 Sep 2010 16:50:53 +0000 (12:50 -0400)]
Allow MSGS command to operate in guest mode.

13 years agoFurther hacks to CtdlRoomAccess() to support guest mode
Art Cancro [Fri, 3 Sep 2010 14:51:50 +0000 (10:51 -0400)]
Further hacks to CtdlRoomAccess() to support guest mode

13 years agoOuch. CtdlRoomAccess() had a couple of places where it was checking 'the current...
Art Cancro [Fri, 3 Sep 2010 14:45:05 +0000 (10:45 -0400)]
Ouch.  CtdlRoomAccess() had a couple of places where it was checking 'the current user' or 'the current room' instead of the user/room supplied by the caller.  Fixed.

13 years agoAll of the cmd_lXXX (list rooms) commands are now set to require access level ac_logg...
Art Cancro [Fri, 3 Sep 2010 14:32:01 +0000 (10:32 -0400)]
All of the cmd_lXXX (list rooms) commands are now set to require access level ac_logged_in_or_guest

13 years agoCtdlAccessCheck() may now be passed a new access level to check for: ac_logged_in_or_...
Art Cancro [Fri, 3 Sep 2010 14:27:29 +0000 (10:27 -0400)]
CtdlAccessCheck() may now be passed a new access level to check for: ac_logged_in_or_guest, which will succeed if the user is logged in *or* if guest mode is enabled.

13 years agoCtdlRoomAccess() now returns a set of read-only access rights if the room is BASEROOM...
Art Cancro [Fri, 3 Sep 2010 14:19:49 +0000 (10:19 -0400)]
CtdlRoomAccess() now returns a set of read-only access rights if the room is BASEROOM (Lobby) and the user is not logged in.

13 years agoGratuitous style cleanup
Art Cancro [Fri, 3 Sep 2010 13:39:57 +0000 (09:39 -0400)]
Gratuitous style cleanup

13 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Thu, 2 Sep 2010 21:33:34 +0000 (23:33 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

13 years ago* add forward declarations
Wilfried Goesgens [Thu, 2 Sep 2010 21:32:27 +0000 (23:32 +0200)]
* add forward declarations

13 years agoThe new paginator now makes use of the server-supplied prompt.
Art Cancro [Thu, 2 Sep 2010 21:09:22 +0000 (17:09 -0400)]
The new paginator now makes use of the server-supplied prompt.

13 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Art Cancro [Thu, 2 Sep 2010 20:01:35 +0000 (16:01 -0400)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

13 years agoObserve the value of rc_prompt_control
Art Cancro [Thu, 2 Sep 2010 20:01:20 +0000 (16:01 -0400)]
Observe the value of rc_prompt_control

13 years ago* moving directories around isn't smart in a git workingcopy. create symlinks & ignor...
Wilfried Goesgens [Thu, 2 Sep 2010 19:58:22 +0000 (21:58 +0200)]
* moving directories around isn't smart in a git workingcopy. create symlinks & ignore them.

13 years agoHUGE update to the way the paginator works. scr_putc() now keeps track of how many...
Art Cancro [Thu, 2 Sep 2010 17:32:55 +0000 (13:32 -0400)]
HUGE update to the way the paginator works.  scr_putc() now keeps track of how many characters and
lines it has written, issuing the paginator prompt when it knows it needs to.  scr_getc() resets the
line count to zero.  This completely eliminates the need for individual functions to keep track of
their line count, simplifying a lot of code throughout the system.  Why didn't I do it this way 20
years ago?  TODO: use the server issued paginator prompt instead of a hardcoded string.

13 years agoAll screen output now goes through scr_putc().
Art Cancro [Thu, 2 Sep 2010 15:42:24 +0000 (11:42 -0400)]
All screen output now goes through scr_putc().
This is deliberate.  Please do not optimize this out because I will be writing code that depends on
it.

13 years agoRemoved more vestiges of curses mode
Art Cancro [Thu, 2 Sep 2010 11:38:31 +0000 (07:38 -0400)]
Removed more vestiges of curses mode

13 years agoRemoved err_* and sln_* functions; replaced all calls with scr_* functions.
Art Cancro [Thu, 2 Sep 2010 01:21:38 +0000 (21:21 -0400)]
Removed err_* and sln_* functions; replaced all calls with scr_* functions.
Removed all build script references to curses and ncurses.
I want all output to go through a single path.

13 years agoremove .svnignore files
Art Cancro [Thu, 2 Sep 2010 01:09:21 +0000 (21:09 -0400)]
remove .svnignore files

13 years agoremoved unused stubs from screen.c
Art Cancro [Thu, 2 Sep 2010 01:08:21 +0000 (21:08 -0400)]
removed unused stubs from screen.c

13 years agoRemoved curses fullscreen mode in the text client, in preparation for something even...
Art Cancro [Thu, 2 Sep 2010 00:38:35 +0000 (20:38 -0400)]
Removed curses fullscreen mode in the text client, in preparation for something even better that I'm going to work
on next.

13 years agoremoved Id tag from wclib.js
Art Cancro [Wed, 1 Sep 2010 21:14:18 +0000 (17:14 -0400)]
removed Id tag from wclib.js

13 years agoremoved more Id tags from webcit
Art Cancro [Wed, 1 Sep 2010 21:10:45 +0000 (17:10 -0400)]
removed more Id tags from webcit

13 years agooops, missed one
Art Cancro [Wed, 1 Sep 2010 21:08:57 +0000 (17:08 -0400)]
oops, missed one

13 years agoRemoved some $Id$ tags in libcitadel
Art Cancro [Wed, 1 Sep 2010 21:04:15 +0000 (17:04 -0400)]
Removed some $Id$ tags in libcitadel

13 years agoRemove $Id$ tags from most of webcit
Art Cancro [Wed, 1 Sep 2010 17:45:47 +0000 (13:45 -0400)]
Remove $Id$ tags from most of webcit

13 years agoCompleted the removal of $Id$ tags in the Citadel server. Also, since the strings...
Art Cancro [Wed, 1 Sep 2010 17:40:00 +0000 (13:40 -0400)]
Completed the removal of $Id$ tags in the Citadel server.  Also, since the strings returned from the
module init functions are now short names rather than entire Id tags, the phrase "Loaded module:" has
been prepended to the log messages which display them.

13 years agoMore removal of $Id$ tags
Art Cancro [Wed, 1 Sep 2010 17:23:13 +0000 (13:23 -0400)]
More removal of $Id$ tags

13 years agoBegan removing $Id$ tags. This will be an ongoing process.
Art Cancro [Wed, 1 Sep 2010 17:15:15 +0000 (13:15 -0400)]
Began removing $Id$ tags.  This will be an ongoing process.

13 years agoOops, my svn/git autodetection logic is still broken. Fixed.
Art Cancro [Wed, 1 Sep 2010 16:37:38 +0000 (12:37 -0400)]
Oops, my svn/git autodetection logic is still broken.  Fixed.

13 years agoAnother attempt at fixing svn_revision for git
Art Cancro [Tue, 31 Aug 2010 22:33:35 +0000 (18:33 -0400)]
Another attempt at fixing svn_revision for git

13 years agoModified mk_svn_revision.sh so that it doesn't barf when git is in
Art Cancro [Tue, 31 Aug 2010 22:11:27 +0000 (18:11 -0400)]
Modified mk_svn_revision.sh so that it doesn't barf when git is in
use.  Someone already tried to handle this situation but it was
b0rken.  Fixed.

13 years agotest commit three3 of three3
Art Cancro [Tue, 31 Aug 2010 20:55:12 +0000 (16:55 -0400)]
test commit three3 of three3

13 years agotest commit two2 of three3
Art Cancro [Tue, 31 Aug 2010 20:55:01 +0000 (16:55 -0400)]
test commit two2 of three3

13 years agotest commit one1 of three3
Art Cancro [Tue, 31 Aug 2010 20:54:49 +0000 (16:54 -0400)]
test commit one1 of three3

13 years agotest commit three of three
Art Cancro [Tue, 31 Aug 2010 20:51:05 +0000 (16:51 -0400)]
test commit three of three

13 years agotest commit two of three
Art Cancro [Tue, 31 Aug 2010 20:50:54 +0000 (16:50 -0400)]
test commit two of three

13 years agotest commit one of three
Art Cancro [Tue, 31 Aug 2010 20:50:46 +0000 (16:50 -0400)]
test commit one of three

13 years agotest commit 2 of 2
Art Cancro [Tue, 31 Aug 2010 20:33:54 +0000 (16:33 -0400)]
test commit 2 of 2

13 years agotest commit 1 of 2
Art Cancro [Tue, 31 Aug 2010 20:32:32 +0000 (16:32 -0400)]
test commit 1 of 2

13 years agoCOPYING.txt referred to a latest copyright date of 2009. Changed it to 2010.
Art Cancro [Tue, 31 Aug 2010 20:20:54 +0000 (16:20 -0400)]
COPYING.txt referred to a latest copyright date of 2009.  Changed it to 2010.

13 years agoTest commit 1 of 2
Art Cancro [Tue, 31 Aug 2010 20:19:47 +0000 (16:19 -0400)]
Test commit 1 of 2

13 years agoLogging in as "guest" from the text client now does the Right Thing
Art Cancro [Tue, 31 Aug 2010 20:07:26 +0000 (16:07 -0400)]
Logging in as "guest" from the text client now does the Right Thing
depending on whether the server to which it is connected actually
supports guest mode.  This may or may not stay this way.

13 years agoClient library now stores the flag indicating whether guest mode is supported
Art Cancro [Tue, 31 Aug 2010 20:04:24 +0000 (16:04 -0400)]
Client library now stores the flag indicating whether guest mode is supported

13 years agoAmend the INFO command to alert the client whether the server
Art Cancro [Tue, 31 Aug 2010 19:58:10 +0000 (15:58 -0400)]
Amend the INFO command to alert the client whether the server
supports guest logins.

13 years agoAdded a global config setting to allow anonymous guest logins.
Art Cancro [Tue, 31 Aug 2010 19:56:21 +0000 (15:56 -0400)]
Added a global config setting to allow anonymous guest logins.
This does not change any of the behavior of the system yet.

13 years agoAnother test commit
Art Cancro [Tue, 31 Aug 2010 18:47:49 +0000 (14:47 -0400)]
Another test commit

13 years agoAnother test commit
Art Cancro [Tue, 31 Aug 2010 18:46:35 +0000 (14:46 -0400)]
Another test commit

13 years agoAnother test commit
Art Cancro [Tue, 31 Aug 2010 18:46:05 +0000 (14:46 -0400)]
Another test commit

13 years agoAnother test commit
Art Cancro [Tue, 31 Aug 2010 18:45:38 +0000 (14:45 -0400)]
Another test commit

13 years agoAnother test commit
Art Cancro [Tue, 31 Aug 2010 18:44:52 +0000 (14:44 -0400)]
Another test commit

13 years agoAnother test commit
Art Cancro [Tue, 31 Aug 2010 18:16:09 +0000 (14:16 -0400)]
Another test commit

13 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Tue, 31 Aug 2010 18:00:13 +0000 (20:00 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

13 years ago* client_read_sslblob(): fix buffer handling, clean up the read-buffer if neccesary.
Wilfried Goesgens [Tue, 31 Aug 2010 17:58:14 +0000 (19:58 +0200)]
* client_read_sslblob(): fix buffer handling, clean up the read-buffer if neccesary.

13 years agoanother test
Art Cancro [Tue, 31 Aug 2010 16:59:58 +0000 (12:59 -0400)]
another test

13 years agoYet another test
Art Cancro [Tue, 31 Aug 2010 16:47:41 +0000 (12:47 -0400)]
Yet another test

13 years agoAnother test commit
Art Cancro [Tue, 31 Aug 2010 16:45:43 +0000 (12:45 -0400)]
Another test commit

13 years agoTest commit #2
Art Cancro [Tue, 31 Aug 2010 16:43:27 +0000 (12:43 -0400)]
Test commit #2

13 years agoTest git commit
root [Tue, 31 Aug 2010 16:06:56 +0000 (12:06 -0400)]
Test git commit

13 years agosome indentions and changes to the comments, to reflect new comment style
root [Tue, 31 Aug 2010 15:40:30 +0000 (17:40 +0200)]
some indentions and changes to the comments, to reflect new comment style

13 years ago* added debugging output while reading blobs via ssl.
Wilfried Göesgens [Sun, 29 Aug 2010 22:33:51 +0000 (22:33 +0000)]
* added debugging output while reading blobs via ssl.

13 years ago* output what we're sending into the BIGBAD_IODBG too.
Wilfried Göesgens [Sun, 29 Aug 2010 22:00:28 +0000 (22:00 +0000)]
* output what we're sending into the BIGBAD_IODBG too.

13 years ago * remove old session-local template support. YAY!
Wilfried Göesgens [Sun, 29 Aug 2010 16:57:25 +0000 (16:57 +0000)]
 * remove old session-local template support. YAY!

13 years ago* use the right subst in the iconbar
Wilfried Göesgens [Sun, 29 Aug 2010 16:57:21 +0000 (16:57 +0000)]
* use the right subst in the iconbar

13 years ago* fix syntax error
Wilfried Göesgens [Sun, 29 Aug 2010 16:57:14 +0000 (16:57 +0000)]
* fix syntax error

13 years ago* don't compare the current section via the subst, its in the context-string anyways.
Wilfried Göesgens [Sun, 29 Aug 2010 16:57:09 +0000 (16:57 +0000)]
* don't compare the current section via the subst, its in the context-string anyways.

13 years ago* LDAP wasn't exposed that way for a long time; TODO: does this way still represent...
Wilfried Göesgens [Sun, 29 Aug 2010 16:57:04 +0000 (16:57 +0000)]
* LDAP wasn't exposed that way for a long time; TODO: does this way still represent the reality with the new ldap support?

13 years ago* hm, what was 'MsgPrintable' ?
Wilfried Göesgens [Sun, 29 Aug 2010 16:57:00 +0000 (16:57 +0000)]
* hm, what was 'MsgPrintable' ?

13 years ago* used wrong conditionals, fixed
Wilfried Göesgens [Sun, 29 Aug 2010 16:56:53 +0000 (16:56 +0000)]
* used wrong conditionals, fixed
* add conditional which was done wrong via SUBST

13 years ago* remove sv* in messages.c
Wilfried Göesgens [Sun, 29 Aug 2010 16:56:48 +0000 (16:56 +0000)]
* remove sv*  in messages.c

13 years ago * remove WCVIEW, we have COND:THISROOM:CURR_VIEW; TODO: is the usage in roombanner...
Wilfried Göesgens [Sun, 29 Aug 2010 16:56:42 +0000 (16:56 +0000)]
 * remove WCVIEW, we have COND:THISROOM:CURR_VIEW; TODO: is the usage in roombanner realy what we wanted here?

13 years ago* beginbox is split into two all over the place. remove monolitic template.
Wilfried Göesgens [Sun, 29 Aug 2010 16:56:37 +0000 (16:56 +0000)]
* beginbox is split into two all over the place. remove monolitic template.

13 years ago* split boxes into beginbox_1 + 2, and put title directly. remove svput of boxtitle.
Wilfried Göesgens [Sun, 29 Aug 2010 16:56:31 +0000 (16:56 +0000)]
* split boxes into beginbox_1 + 2, and put title directly. remove svput of boxtitle.