embedded URL's. Omit them instead.
* citadel.rc: updated the sample browser remoting command for Macintosh
based on a Mr.T suggestion
* techdoc/session.txt: redid the writeup for the MOVE command (fixed a
mistake and made the writeup clearer)
$Log$
+ Revision 610.18 2003/09/21 04:10:56 ajc
+ * messages.c: don't crash when a message contains more than MAXURLS of
+ embedded URL's. Omit them instead.
+ * citadel.rc: updated the sample browser remoting command for Macintosh
+ based on a Mr.T suggestion
+ * techdoc/session.txt: redid the writeup for the MOVE command (fixed a
+ mistake and made the writeup clearer)
+
Revision 610.17 2003/09/17 21:40:13 ajc
* html.c: don't truncate messages when wacky characters are
encountered. Substitute '?' characters instead. Now the Citadel
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
# for 'safe' public clients.)
#
# This one works on Linux and most other X11-based Unices. Specify the full
-# path to Netscape (or a Netscape-compatible like Mozilla) if necessary.
-#urlcmd=netscape -remote "openURL(%s)"
+# path to Mozilla (or a Mozilla derivative like Netscape) if necessary.
+#urlcmd=mozilla -remote "openURL(%s)"
#
# This one works really well on a Macintosh -- it opens URL's in whatever
# browser you have configured as the system default.
-#urlcmd=open %s
+#urlcmd=open "%s"
# If GOTMAILCMD is defined, the specified command will be executed. This
# might be nice for playing sounds or providing any other type of notification.
/* Extract URL's */
num_urls = 0; /* Start with a clean slate */
searchptr = message->text;
- while (searchptr != NULL) {
+ while ( (searchptr != NULL) && (num_urls < MAXURLS) ) {
searchptr = strstr(searchptr, "http://");
if (searchptr != NULL) {
safestrncpy(urls[num_urls], searchptr, sizeof(urls[num_urls]));
MOVE (MOVE or copy a message to a different room)
- Move a message to a different room. The two arguments that should be passed
-to this command are the message number of the message to be deleted, and the
-name of the target room. If the operation succeeds, the message will be
-deleted from the current room and moved to the target room. An ERROR code
-usually means that either the user does not have permission to perform this
-operation, or that the target room does not exist.
-
- In Citadel/UX 5.55 and above, a third argument may be specified: 0 or 1 to
-designate whether the message should be moved (0) or copied (1) to the target
-room. In the case of a "copy" operation, the message's reference count is
-incremented, and a pointer to the message will exist in both the source *and*
-target rooms. In the case of a "move" operation, the message pointer is
-deleted from the source room and the reference count remains the same.
+ Move or copy a message to a different room. This command expects to be
+passed three arguments:
+ 0: the message number of the message to be moved or copied.
+ 1: the name of the target room.
+ 2: flag: 0 to move the message, 1 to copy it without deleting from the
+ source room.
+
+ This command never creates or deletes copies of a message; it merely moves
+around links. When a message is moved, its reference count remains the same.
+When a message is copied, its reference count is incremented.
KILL (KILL current room)