$Log$
+ Revision 573.85 2001/02/06 04:44:12 ajc
+ * Added a floor listing (complete with \NoSelect flag) to LIST and LSUB
+
Revision 573.84 2001/02/06 02:09:38 ajc
* citadel.rc: changed the default for local_screen_dimensions to 1, since
Internet users now outnumber dialup users 100 to 0.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
+/*
+ * Used by LIST and LSUB to show the floors in the listing
+ */
+void imap_list_floors(char *cmd) {
+ int i;
+ struct floor *fl;
+
+ for (i=0; i<MAXFLOORS; ++i) {
+ fl = cgetfloor(i);
+ if (fl->f_flags & F_INUSE) {
+ cprintf("* %s (\\NoSelect) \"|\" ", cmd);
+ imap_strout(fl->f_name);
+ cprintf("\r\n");
+ }
+ }
+}
+
+
/*
* Back end for imap_lsub()
* FIXME: Handle wildcards, please.
*/
void imap_lsub(int num_parms, char *parms[]) {
+ imap_list_floors("LSUB");
ForEachRoom(imap_lsub_listroom, NULL);
cprintf("%s OK LSUB completed\r\n", parms[0]);
}
* FIXME: Handle wildcards, please.
*/
void imap_list(int num_parms, char *parms[]) {
+ imap_list_floors("LIST");
ForEachRoom(imap_list_listroom, NULL);
cprintf("%s OK LIST completed\r\n", parms[0]);
}