(sieve_message): New function.
Showing
1 changed file
with
17 additions
and
0 deletions
... | @@ -323,3 +323,20 @@ sieve_mailbox (sieve_machine_t mach, mailbox_t mbox) | ... | @@ -323,3 +323,20 @@ sieve_mailbox (sieve_machine_t mach, mailbox_t mbox) |
323 | 323 | ||
324 | return rc; | 324 | return rc; |
325 | } | 325 | } |
326 | |||
327 | int | ||
328 | sieve_message (sieve_machine_t mach, message_t msg) | ||
329 | { | ||
330 | int rc; | ||
331 | |||
332 | if (!mach || !msg) | ||
333 | return EINVAL; | ||
334 | |||
335 | mach->msgno = 1; | ||
336 | mach->msg = msg; | ||
337 | mach->mailbox = NULL; | ||
338 | rc = sieve_run (mach); | ||
339 | mach->msg = NULL; | ||
340 | |||
341 | return rc; | ||
342 | } | ... | ... |
-
Please register or sign in to post a comment