#include <popserver.h>
Data Fields | |
| int(* | user )(struct popstate_t *p, char *username) |
| called when the client sends username | |
| int(* | pass )(struct popstate_t *p, char *password) |
| called when the client sends password | |
| int(* | quit )(struct popstate_t *p) |
| called to trucate a section with no mailbox update | |
| int(* | quit_update )(struct popstate_t *p) |
| called to quit updating mailbox status | |
| int(* | top )(struct popstate_t *p, long int msg, long int lines, char **buffer, struct asyncop_t *a) |
| called to get first lines of a message | |
| int(* | retr )(struct popstate_t *p, int msg, char **buffer, struct asyncop_t *a) |
| retrive the full message | |
| int(* | stat )(struct popstate_t *p, int *messages, int *size) |
| summarize mailbox status | |
| int(* | uidl )(struct popstate_t *p, int msg, char **buffer) |
| get the UIDL of the message msg | |
| int(* | uidl_all )(struct popstate_t *p, char **buffer) |
| get all uidls, each line is "msg_number uidl\r\n" | |
| int(* | list )(struct popstate_t *p, int msg, char **buffer) |
| list a mesage (print the size) | |
| int(* | list_all )(struct popstate_t *p, char **buffer) |
| lists all messages, each line is "msg_number size\r\n" | |
| int(* | rset )(struct popstate_t *p) |
| resets the mailbox to the initial state | |
| int(* | dele )(struct popstate_t *p, int msg) |
| marks for deletion the message | |
| int(* | noop )(struct popstate_t *p) |
| prevents the timeout | |
| void *(* | new_other )(void) |
| pointer to a function that creates the "other" fields in struct popstate_t | |
| void(* | delete_other )(void *) |
| pointer to a function that deletes the "other" fields in struct popstate_t | |
| buffer | must be set to a memory region allocated dinamically and must be freed by the popserver after sending it to the client. Multiline answr must have this form "line_1\r\nline_2\r\n.....line_n\r\n" |
| p | is always the same and may be used to decide what to do |
Definition at line 83 of file popserver.h.
|
|
marks for deletion the message
|
|
|
pointer to a function that deletes the "other" fields in struct popstate_t
|
|
|
list a mesage (print the size)
|
|
|
lists all messages, each line is "msg_number size\r\n"
|
|
|
pointer to a function that creates the "other" fields in struct popstate_t
|
|
|
prevents the timeout
|
|
|
called when the client sends password
|
|
|
called to trucate a section with no mailbox update
|
|
|
called to quit updating mailbox status
|
|
|
retrive the full message
|
|
|
resets the mailbox to the initial state
|
|
|
summarize mailbox status
|
|
|
called to get first lines of a message
|
|
|
get the UIDL of the message msg
|
|
|
get all uidls, each line is "msg_number uidl\r\n"
|
|
|
called when the client sends username
|
1.3.6-20040222