]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_pop3.h
mk_module_init.sh now tests to see if echo supports -e and -E
[citadel.git] / citadel / serv_pop3.h
index 13c7f187264ac5d9d54ca7f6099d39bd2726ff6c..8c73f689d0d2bd796c010aecb6e2e30694d2180d 100644 (file)
@@ -1,17 +1,26 @@
+/*
+ * $Id$
+ *
+ */
 
 struct pop3msg {
        long msgnum;
        size_t rfc822_length;
        int deleted;
-       FILE *temp;
 };
 
 struct citpop3 {               /* Information about the current session */
-       struct pop3msg *msgs;
-       int num_msgs;
+       struct pop3msg *msgs;   /* Array of message pointers */
+       int num_msgs;           /* Number of messages in array */
+       int lastseen;           /* Offset of last-read message in array */
 };
+                               /* Note: the "lastseen" is represented as the
+                                * offset in this array (zero-based), so when
+                                * displaying it to a POP3 client, it must be
+                                * incremented by one.
+                                */
 
-#define POP3 ((struct citpop3 *)CtdlGetUserData(SYM_POP3))
+#define POP3 CC->POP3
 
 void pop3_cleanup_function(void);
 void pop3_greeting(void);
@@ -19,3 +28,5 @@ void pop3_user(char *argbuf);
 void pop3_pass(char *argbuf);
 void pop3_list(char *argbuf);
 void pop3_command_loop(void);
+void pop3_login(void);
+