cmd_view(&cmdbuf[5]);
}
+ else if (!strncasecmp(cmdbuf, "ISME", 4)) {
+ cmd_isme(&cmdbuf[5]);
+ }
+
#ifdef DEBUG_MEMORY_LEAKS
else if (!strncasecmp(cmdbuf, "LEAK", 4)) {
dump_tracked();
CtdlWriteObject(SYSCONFIGROOM, sysconfname, temp, NULL, 0, 1, 0);
unlink(temp);
}
+
+
+void cmd_isme(char *argbuf) {
+ char addr[SIZ];
+ struct recptypes *recp;
+ int i;
+
+ if (CtdlAccessCheck(ac_logged_in)) return;
+ extract(addr, argbuf, 0);
+ recp = validate_recipients(addr);
+
+ if (recp == NULL) {
+ cprintf("%d Error parsing \n", ERROR + INTERNAL_ERROR);
+ return;
+ }
+
+ if (recp->num_local == 0) {
+ cprintf("%d Not you.\n", ERROR);
+ phree(recp);
+ return;
+ }
+
+ for (i=0; i<recp->num_local; ++i) {
+ extract(addr, recp->recp_local, i);
+ if (!strcasecmp(addr, CC->usersupp.fullname)) {
+ cprintf("%d %s\n", CIT_OK, addr);
+ phree(recp);
+ return;
+ }
+ }
+
+ cprintf("%d Not you.\n", ERROR);
+ phree(recp);
+ return;
+}
int alias (char *name);
void get_mm (void);
void cmd_msgs (char *cmdbuf);
+void cmd_isme (char *cmdbuf);
void help_subst (char *strbuf, char *source, char *dest);
void do_help_subst (char *buffer);
void memfmout (int width, char *mptr, char subst, char *nl);
returns OK followed by a Citadel address if there is a match, otherwise it
returns ERROR+NOT_LOGGED_IN.
-
+
+ ISME (find out if an e-mail address IS ME)
+
+ This is a quickie shortcut command to find out if a given e-mail address
+belongs to the user currently logged in. Its sole argument is an address to
+parse. The supplied address may be in any format (local, IGnet, or Internet).
+The command returns OK if the address belongs to the user, ERROR otherwise.
+
+
VIEW (set the VIEW for a room)
Set the preferred view for the current user in the current room. Please see