X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserv_pop3.h;h=be228e7b09fe84843a66d7f1b35ba047921c79ff;hb=5160db83c5f1a55e829997f7506b83cbadc4d735;hp=13c7f187264ac5d9d54ca7f6099d39bd2726ff6c;hpb=ca26eb9cc3cd8bd38474452206d6d9630e042afb;p=citadel.git diff --git a/citadel/serv_pop3.h b/citadel/serv_pop3.h index 13c7f1872..be228e7b0 100644 --- a/citadel/serv_pop3.h +++ b/citadel/serv_pop3.h @@ -7,9 +7,15 @@ struct pop3msg { }; 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))