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) ...@@ -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 }
......