$Log$
+ Revision 605.46 2003/05/03 16:50:52 ajc
+ * Change folder delimiter in room names from / to \
+
Revision 605.45 2003/05/02 04:02:47 ajc
* setup.c: allow specification of the Citadel system account by either
username or uid
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
}
/*
- * Replace "/" characters with "|" for pseudo-folder-delimiting
+ * Replace delimiter characters with "|" for pseudo-folder-delimiting
*/
for (i=0; i<strlen(buf); ++i) {
- if (buf[i] == '/') buf[i] = '|';
+ if (buf[i] == FDELIM) buf[i] = '|';
}
}
ret = (0 | IR_MAILBOX);
}
- /* Undelimiterizationalize the room name (change '|' to '/') */
+ /* Undelimiterizationalize the room name (change '|') */
for (i=0; i<strlen(rbuf); ++i) {
- if (rbuf[i] == '|') rbuf[i] = '/';
+ if (rbuf[i] == '|') rbuf[i] = FDELIM;
}
*
*/
-
+/*
+ * FDELIM defines which character we want to use as a folder delimiter
+ * in room names. Originally we used a forward slash, but that caused
+ * rooms with names like "Sent/Received Pages" to get delimited, so we
+ * changed it to a backslash. This is completely irrelevant to how Citadel
+ * speaks to IMAP clients -- the delimiter used in the IMAP protocol is
+ * a vertical bar, which is illegal in Citadel room names anyway.
+ */
+#define FDELIM '\\'
void imap_strout(char *buf);
int imap_parameterize(char **args, char *buf);