diff options
author | Damien Riegel <damien.riegel@gmail.com> | 2016-06-17 19:01:31 -0700 |
---|---|---|
committer | Damien Riegel <damien.riegel@gmail.com> | 2016-06-17 19:01:31 -0700 |
commit | 35c3ae29bfe4d97723e584323abab57808569c70 (patch) | |
tree | 70559d31129fbfbae92daacb339a2ba51f3d802e /pop.c | |
parent | f35f2c9845313bfe26ad0b4e3d738ccc1d6f650c (diff) |
Add open_msg to struct mx_ops
Add the callback to open an existing message to struct mx_ops. For mbox,
mmdf, maildir, and mh, the code was implemented directly into
mx_open_message, so it is moved in their respective source files. For
imap and pop, there were already <mailbox>_fetch_message functions, but
their argument order has been changed to pass the context as a first
argument.
Diffstat (limited to 'pop.c')
-rw-r--r-- | pop.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -512,7 +512,7 @@ int pop_close_mailbox (CONTEXT *ctx) } /* fetch message from POP server */ -int pop_fetch_message (MESSAGE* msg, CONTEXT* ctx, int msgno) +static int pop_fetch_message (CONTEXT* ctx, MESSAGE* msg, int msgno) { int ret; void *uidl; @@ -931,5 +931,6 @@ fail: struct mx_ops mx_pop_ops = { .open = pop_open_mailbox, .close = pop_close_mailbox, + .open_msg = pop_fetch_message, .check = pop_check_mailbox, }; |