Commit b124ec08 b124ec08e0cba333ec21b02e9a4e1ae6353ffc4b by Sergey Poznyakoff

(sieve_message): New function.

1 parent e2e5a903
......@@ -323,3 +323,20 @@ sieve_mailbox (sieve_machine_t mach, mailbox_t mbox)
return rc;
}
int
sieve_message (sieve_machine_t mach, message_t msg)
{
int rc;
if (!mach || !msg)
return EINVAL;
mach->msgno = 1;
mach->msg = msg;
mach->mailbox = NULL;
rc = sieve_run (mach);
mach->msg = NULL;
return rc;
}
......