2 * $Id: serv_sieve.c 3850 2005-09-13 14:00:24Z ajc $
4 * This module glues libSieve to the Citadel server in order to implement
5 * the Sieve mailbox filtering language (RFC 3028).
7 * This code is released under the terms of the GNU General Public License.
18 #include <sys/types.h>
20 #if TIME_WITH_SYS_TIME
21 # include <sys/time.h>
25 # include <sys/time.h>
36 #include "sysdep_decls.h"
37 #include "citserver.h"
40 #include "serv_extensions.h"
49 #include "serv_sieve.h"
51 struct RoomProcList *sieve_list = NULL;
55 * Callback function to send libSieve trace messages to Citadel log facility
56 * Set ctdl_libsieve_debug=1 to see extremely verbose libSieve trace
58 int ctdl_debug(sieve2_context_t *s, void *my)
60 static int ctdl_libsieve_debug = 0;
62 if (ctdl_libsieve_debug) {
63 lprintf(CTDL_DEBUG, "Sieve: level [%d] module [%s] file [%s] function [%s]\n",
64 sieve2_getvalue_int(s, "level"),
65 sieve2_getvalue_string(s, "module"),
66 sieve2_getvalue_string(s, "file"),
67 sieve2_getvalue_string(s, "function"));
68 lprintf(CTDL_DEBUG, " message [%s]\n",
69 sieve2_getvalue_string(s, "message"));
76 * Callback function to log script parsing errors
78 int ctdl_errparse(sieve2_context_t *s, void *my)
80 lprintf(CTDL_WARNING, "Error in script, line %d: %s\n",
81 sieve2_getvalue_int(s, "lineno"),
82 sieve2_getvalue_string(s, "message")
89 * Callback function to log script execution errors
91 int ctdl_errexec(sieve2_context_t *s, void *my)
93 lprintf(CTDL_WARNING, "Error executing script: %s\n",
94 sieve2_getvalue_string(s, "message")
101 * Callback function to redirect a message to a different folder
103 int ctdl_redirect(sieve2_context_t *s, void *my)
105 struct ctdl_sieve *cs = (struct ctdl_sieve *)my;
106 struct CtdlMessage *msg = NULL;
107 struct recptypes *valid = NULL;
110 safestrncpy(recp, sieve2_getvalue_string(s, "address"), sizeof recp);
112 lprintf(CTDL_DEBUG, "Action is REDIRECT, recipient <%s>\n", recp);
114 valid = validate_recipients(recp);
116 lprintf(CTDL_WARNING, "REDIRECT failed: bad recipient <%s>\n", recp);
117 return SIEVE2_ERROR_BADARGS;
119 if (valid->num_error > 0) {
120 lprintf(CTDL_WARNING, "REDIRECT failed: bad recipient <%s>\n", recp);
122 return SIEVE2_ERROR_BADARGS;
125 msg = CtdlFetchMessage(cs->msgnum, 1);
127 lprintf(CTDL_WARNING, "REDIRECT failed: unable to fetch msg %ld\n", cs->msgnum);
129 return SIEVE2_ERROR_BADARGS;
132 CtdlSubmitMsg(msg, valid, NULL);
135 CtdlFreeMessage(msg);
141 * Callback function to indicate that a message *will* be kept in the inbox
143 int ctdl_keep(sieve2_context_t *s, void *my)
145 struct ctdl_sieve *cs = (struct ctdl_sieve *)my;
147 lprintf(CTDL_DEBUG, "Action is KEEP\n");
156 * Callback function to file a message into a different mailbox
158 int ctdl_fileinto(sieve2_context_t *s, void *my)
160 struct ctdl_sieve *cs = (struct ctdl_sieve *)my;
161 const char *dest_folder = sieve2_getvalue_string(s, "mailbox");
163 char foldername[256];
164 char original_room_name[ROOMNAMELEN];
166 lprintf(CTDL_DEBUG, "Action is FILEINTO, destination is <%s>\n", dest_folder);
168 /* FILEINTO 'INBOX' is the same thing as KEEP */
169 if ( (!strcasecmp(dest_folder, "INBOX")) || (!strcasecmp(dest_folder, MAILROOM)) ) {
175 /* Remember what room we came from */
176 safestrncpy(original_room_name, CC->room.QRname, sizeof original_room_name);
178 /* First try a mailbox name match (check personal mail folders first) */
179 snprintf(foldername, sizeof foldername, "%010ld.%s", cs->usernum, dest_folder);
180 c = getroom(&CC->room, foldername);
182 /* Then a regular room name match (public and private rooms) */
184 safestrncpy(foldername, dest_folder, sizeof foldername);
185 c = getroom(&CC->room, foldername);
189 lprintf(CTDL_WARNING, "FILEINTO failed: target <%s> does not exist\n", dest_folder);
190 return SIEVE2_ERROR_BADARGS;
193 /* Yes, we actually have to go there */
194 usergoto(NULL, 0, 0, NULL, NULL);
196 c = CtdlSaveMsgPointersInRoom(NULL, &cs->msgnum, 1, 0, NULL);
198 /* Go back to the room we came from */
199 if (strcasecmp(original_room_name, CC->room.QRname)) {
200 usergoto(original_room_name, 0, 0, NULL, NULL);
208 return SIEVE2_ERROR_BADARGS;
214 * Callback function to indicate that a message should be rejected
215 * FIXME implement this
217 int ctdl_reject(sieve2_context_t *s, void *my)
219 lprintf(CTDL_DEBUG, "Action is REJECT\n");
220 return SIEVE2_ERROR_UNSUPPORTED;
225 * Callback function to indicate that the user should be notified
226 * FIXME implement this
228 int ctdl_notify(sieve2_context_t *s, void *my)
230 lprintf(CTDL_DEBUG, "Action is NOTIFY\n");
231 return SIEVE2_ERROR_UNSUPPORTED;
236 * Callback function to indicate that a vacation message should be generated
237 * FIXME implement this
239 int ctdl_vacation(sieve2_context_t *s, void *my)
241 lprintf(CTDL_DEBUG, "Action is VACATION\n");
242 return SIEVE2_ERROR_UNSUPPORTED;
247 * Callback function to parse addresses per local system convention
248 * FIXME implement this
250 int ctdl_getsubaddress(sieve2_context_t *s, void *my)
252 return SIEVE2_ERROR_UNSUPPORTED;
257 * Callback function to parse message envelope
258 * FIXME implement this
260 int ctdl_getenvelope(sieve2_context_t *s, void *my)
262 return SIEVE2_ERROR_UNSUPPORTED;
267 * Callback function to fetch message body
268 * FIXME implement this
270 int ctdl_getbody(sieve2_context_t *s, void *my)
272 return SIEVE2_ERROR_UNSUPPORTED;
277 * Callback function to fetch message size
278 * FIXME implement this
280 int ctdl_getsize(sieve2_context_t *s, void *my)
282 return SIEVE2_ERROR_UNSUPPORTED;
287 * Callback function to indicate that a message should be discarded.
289 int ctdl_discard(sieve2_context_t *s, void *my)
291 struct ctdl_sieve *cs = (struct ctdl_sieve *)my;
293 lprintf(CTDL_DEBUG, "Action is DISCARD\n");
295 /* Yes, this is really all there is to it. Since we are not setting "keep" to 1,
296 * the message will be discarded because "some other action" was successfully taken.
305 * Callback function to retrieve the sieve script
307 int ctdl_getscript(sieve2_context_t *s, void *my) {
308 struct sdm_script *sptr;
309 struct ctdl_sieve *cs = (struct ctdl_sieve *)my;
311 for (sptr=cs->u->first_script; sptr!=NULL; sptr=sptr->next) {
312 if (sptr->script_active > 0) {
313 lprintf(CTDL_DEBUG, "ctdl_getscript() is using script '%s'\n", sptr->script_name);
314 sieve2_setvalue_string(s, "script", sptr->script_content);
319 lprintf(CTDL_DEBUG, "ctdl_getscript() found no active script\n");
320 return SIEVE2_ERROR_GETSCRIPT;
324 * Callback function to retrieve message headers
326 int ctdl_getheaders(sieve2_context_t *s, void *my) {
328 struct ctdl_sieve *cs = (struct ctdl_sieve *)my;
330 lprintf(CTDL_DEBUG, "ctdl_getheaders() was called\n");
332 sieve2_setvalue_string(s, "allheaders", cs->rfc822headers);
339 * Add a room to the list of those rooms which potentially require sieve processing
341 void sieve_queue_room(struct ctdlroom *which_room) {
342 struct RoomProcList *ptr;
344 ptr = (struct RoomProcList *) malloc(sizeof (struct RoomProcList));
345 if (ptr == NULL) return;
347 safestrncpy(ptr->name, which_room->QRname, sizeof ptr->name);
348 begin_critical_section(S_SIEVELIST);
349 ptr->next = sieve_list;
351 end_critical_section(S_SIEVELIST);
357 * Perform sieve processing for one message (called by sieve_do_room() for each message)
359 void sieve_do_msg(long msgnum, void *userdata) {
360 struct sdm_userdata *u = (struct sdm_userdata *) userdata;
361 sieve2_context_t *sieve2_context = u->sieve2_context;
362 struct ctdl_sieve my;
365 lprintf(CTDL_DEBUG, "Performing sieve processing on msg <%ld>\n", msgnum);
367 CC->redirect_buffer = malloc(SIZ);
368 CC->redirect_len = 0;
369 CC->redirect_alloc = SIZ;
370 CtdlOutputMsg(msgnum, MT_RFC822, HEADERS_ONLY, 0, 1, NULL);
371 my.rfc822headers = CC->redirect_buffer;
372 CC->redirect_buffer = NULL;
373 CC->redirect_len = 0;
374 CC->redirect_alloc = 0;
376 my.keep = 0; /* Don't keep a copy in the inbox unless a callback tells us to do so */
377 my.actiontaken = 0; /* Keep track of whether any actions were successfully taken */
378 my.usernum = atol(CC->room.QRname); /* Keep track of the owner of the room's namespace */
379 my.msgnum = msgnum; /* Keep track of the message number in our local store */
380 my.u = u; /* Hand off a pointer to the rest of this info */
382 sieve2_setvalue_string(sieve2_context, "allheaders", my.rfc822headers);
384 lprintf(CTDL_DEBUG, "Calling sieve2_execute()\n");
385 res = sieve2_execute(sieve2_context, &my);
386 if (res != SIEVE2_OK) {
387 lprintf(CTDL_CRIT, "sieve2_execute() returned %d: %s\n", res, sieve2_errstr(res));
390 free(my.rfc822headers);
391 my.rfc822headers = NULL;
394 * Delete the message from the inbox unless either we were told not to, or
395 * if no other action was successfully taken.
397 if ( (!my.keep) && (my.actiontaken) ) {
398 lprintf(CTDL_DEBUG, "keep is 0 -- deleting message from inbox\n");
399 CtdlDeleteMessages(CC->room.QRname, &msgnum, 1, "", 0);
402 lprintf(CTDL_DEBUG, "Completed sieve processing on msg <%ld>\n", msgnum);
403 u->lastproc = msgnum;
411 * Given the on-disk representation of our Sieve config, load
412 * it into an in-memory data structure.
414 void parse_sieve_config(char *conf, struct sdm_userdata *u) {
418 struct sdm_script *sptr;
421 while (c = ptr, ptr = bmstrcasestr(ptr, CTDLSIEVECONFIGSEPARATOR), ptr != NULL) {
423 ptr += strlen(CTDLSIEVECONFIGSEPARATOR);
425 extract_token(keyword, c, 0, '|', sizeof keyword);
427 if (!strcasecmp(keyword, "lastproc")) {
428 u->lastproc = extract_long(c, 1);
431 else if (!strcasecmp(keyword, "script")) {
432 sptr = malloc(sizeof(struct sdm_script));
433 extract_token(sptr->script_name, c, 1, '|', sizeof sptr->script_name);
434 sptr->script_active = extract_int(c, 2);
435 remove_token(c, 0, '|');
436 remove_token(c, 0, '|');
437 remove_token(c, 0, '|');
438 sptr->script_content = strdup(c);
439 sptr->next = u->first_script;
440 u->first_script = sptr;
443 /* ignore unknown keywords */
448 * We found the Sieve configuration for this user.
449 * Now do something with it.
451 void get_sieve_config_backend(long msgnum, void *userdata) {
452 struct sdm_userdata *u = (struct sdm_userdata *) userdata;
453 struct CtdlMessage *msg;
456 u->config_msgnum = msgnum;
457 msg = CtdlFetchMessage(msgnum, 1);
459 u->config_msgnum = (-1) ;
463 conf = msg->cm_fields['M'];
464 msg->cm_fields['M'] = NULL;
465 CtdlFreeMessage(msg);
468 parse_sieve_config(conf, u);
476 * Write our citadel sieve config back to disk
478 void rewrite_ctdl_sieve_config(struct sdm_userdata *u) {
480 struct sdm_script *sptr;
485 "Content-type: application/x-citadel-sieve-config\n"
487 CTDLSIEVECONFIGSEPARATOR
489 CTDLSIEVECONFIGSEPARATOR
494 while (u->first_script != NULL) {
495 text = realloc(text, strlen(text) + strlen(u->first_script->script_content) + 256);
496 sprintf(&text[strlen(text)], "script|%s|%d|%s" CTDLSIEVECONFIGSEPARATOR,
497 u->first_script->script_name,
498 u->first_script->script_active,
499 u->first_script->script_content
501 sptr = u->first_script;
502 u->first_script = u->first_script->next;
503 free(sptr->script_content);
507 /* Save the config */
508 quickie_message("Citadel", NULL, u->config_roomname,
511 "Sieve configuration"
514 /* And delete the old one */
515 if (u->config_msgnum > 0) {
516 CtdlDeleteMessages(u->config_roomname, &u->config_msgnum, 1, "", 0);
524 * Perform sieve processing for a single room
526 void sieve_do_room(char *roomname) {
528 struct sdm_userdata u;
529 sieve2_context_t *sieve2_context = NULL; /* Context for sieve parser */
530 int res; /* Return code from libsieve calls */
531 long orig_lastproc = 0;
533 memset(&u, 0, sizeof u);
536 * This is our callback registration table for libSieve.
538 sieve2_callback_t ctdl_sieve_callbacks[] = {
539 { SIEVE2_ACTION_REJECT, ctdl_reject },
540 { SIEVE2_ACTION_NOTIFY, ctdl_notify },
541 { SIEVE2_ACTION_VACATION, ctdl_vacation },
542 { SIEVE2_ERRCALL_PARSE, ctdl_errparse },
543 { SIEVE2_ERRCALL_RUNTIME, ctdl_errexec },
544 { SIEVE2_ACTION_FILEINTO, ctdl_fileinto },
545 { SIEVE2_ACTION_REDIRECT, ctdl_redirect },
546 { SIEVE2_ACTION_DISCARD, ctdl_discard },
547 { SIEVE2_ACTION_KEEP, ctdl_keep },
548 { SIEVE2_SCRIPT_GETSCRIPT, ctdl_getscript },
549 { SIEVE2_DEBUG_TRACE, ctdl_debug },
550 { SIEVE2_MESSAGE_GETALLHEADERS, ctdl_getheaders },
551 { SIEVE2_MESSAGE_GETSUBADDRESS, ctdl_getsubaddress },
552 { SIEVE2_MESSAGE_GETENVELOPE, ctdl_getenvelope },
553 { SIEVE2_MESSAGE_GETBODY, ctdl_getbody },
554 { SIEVE2_MESSAGE_GETSIZE, ctdl_getsize },
558 /* See if the user who owns this 'mailbox' has any Sieve scripts that
561 snprintf(u.config_roomname, sizeof u.config_roomname, "%010ld.%s", atol(roomname), SIEVERULES);
562 if (getroom(&CC->room, u.config_roomname) != 0) {
563 lprintf(CTDL_DEBUG, "<%s> does not exist. No processing is required.\n", u.config_roomname);
568 * Find the sieve scripts and control record and do something
570 u.config_msgnum = (-1);
571 CtdlForEachMessage(MSGS_LAST, 1, NULL, SIEVECONFIG, NULL,
572 get_sieve_config_backend, (void *)&u );
574 if (u.config_msgnum < 0) {
575 lprintf(CTDL_DEBUG, "No Sieve rules exist. No processing is required.\n");
579 lprintf(CTDL_DEBUG, "Rules found. Performing Sieve processing for <%s>\n", roomname);
581 if (getroom(&CC->room, roomname) != 0) {
582 lprintf(CTDL_CRIT, "ERROR: cannot load <%s>\n", roomname);
586 /* Initialize the Sieve parser */
588 res = sieve2_alloc(&sieve2_context);
589 if (res != SIEVE2_OK) {
590 lprintf(CTDL_CRIT, "sieve2_alloc() returned %d: %s\n", res, sieve2_errstr(res));
594 res = sieve2_callbacks(sieve2_context, ctdl_sieve_callbacks);
595 if (res != SIEVE2_OK) {
596 lprintf(CTDL_CRIT, "sieve2_callbacks() returned %d: %s\n", res, sieve2_errstr(res));
600 /* Validate the script */
602 struct ctdl_sieve my; /* dummy ctdl_sieve struct just to pass "u" slong */
603 memset(&my, 0, sizeof my);
605 res = sieve2_validate(sieve2_context, &my);
606 if (res != SIEVE2_OK) {
607 lprintf(CTDL_CRIT, "sieve2_validate() returned %d: %s\n", res, sieve2_errstr(res));
611 /* Do something useful */
612 u.sieve2_context = sieve2_context;
613 orig_lastproc = u.lastproc;
614 CtdlForEachMessage(MSGS_GT, u.lastproc, NULL, NULL, NULL,
620 res = sieve2_free(&sieve2_context);
621 if (res != SIEVE2_OK) {
622 lprintf(CTDL_CRIT, "sieve2_free() returned %d: %s\n", res, sieve2_errstr(res));
625 /* Rewrite the config if we have to */
626 if (u.lastproc > orig_lastproc) {
627 rewrite_ctdl_sieve_config(&u);
633 * Perform sieve processing for all rooms which require it
635 void perform_sieve_processing(void) {
636 struct RoomProcList *ptr = NULL;
638 if (sieve_list != NULL) {
639 lprintf(CTDL_DEBUG, "Begin Sieve processing\n");
640 while (sieve_list != NULL) {
641 char spoolroomname[ROOMNAMELEN];
642 safestrncpy(spoolroomname, sieve_list->name, sizeof spoolroomname);
643 begin_critical_section(S_SIEVELIST);
645 /* pop this record off the list */
647 sieve_list = sieve_list->next;
650 /* invalidate any duplicate entries to prevent double processing */
651 for (ptr=sieve_list; ptr!=NULL; ptr=ptr->next) {
652 if (!strcasecmp(ptr->name, spoolroomname)) {
657 end_critical_section(S_SIEVELIST);
658 if (spoolroomname[0] != 0) {
659 sieve_do_room(spoolroomname);
666 void msiv_load(struct sdm_userdata *u) {
667 char hold_rm[ROOMNAMELEN];
669 strcpy(hold_rm, CC->room.QRname); /* save current room */
671 /* Take a spin through the user's personal address book */
672 if (getroom(&CC->room, SIEVERULES) == 0) {
674 u->config_msgnum = (-1);
675 strcpy(u->config_roomname, CC->room.QRname);
676 CtdlForEachMessage(MSGS_LAST, 1, NULL, SIEVECONFIG, NULL,
677 get_sieve_config_backend, (void *)u );
681 if (strcmp(CC->room.QRname, hold_rm)) {
682 getroom(&CC->room, hold_rm); /* return to saved room */
686 void msiv_store(struct sdm_userdata *u) {
687 rewrite_ctdl_sieve_config(u);
692 * Select the active script.
693 * (Set script_name to an empty string to disable all scripts)
695 * Returns 0 on success or nonzero for error.
697 int msiv_setactive(struct sdm_userdata *u, char *script_name) {
699 struct sdm_script *s;
701 /* First see if the supplied value is ok */
703 if (strlen(script_name) == 0) {
707 for (s=u->first_script; s!=NULL; s=s->next) {
708 if (!strcasecmp(s->script_name, script_name)) {
716 /* Now set the active script */
717 for (s=u->first_script; s!=NULL; s=s->next) {
718 if (!strcasecmp(s->script_name, script_name)) {
719 s->script_active = 1;
722 s->script_active = 0;
731 * Fetch a script by name.
733 * Returns NULL if the named script was not found, or a pointer to the script
734 * if it was found. NOTE: the caller does *not* own the memory returned by
735 * this function. Copy it if you need to keep it.
737 char *msiv_getscript(struct sdm_userdata *u, char *script_name) {
738 struct sdm_script *s;
740 for (s=u->first_script; s!=NULL; s=s->next) {
741 if (!strcasecmp(s->script_name, script_name)) {
742 if (s->script_content != NULL) {
743 return (s->script_content);
754 * Add or replace a new script.
755 * NOTE: after this function returns, "u" owns the memory that "script_content"
758 void msiv_putscript(struct sdm_userdata *u, char *script_name, char *script_content) {
760 struct sdm_script *s, *sptr;
762 for (s=u->first_script; s!=NULL; s=s->next) {
763 if (!strcasecmp(s->script_name, script_name)) {
764 if (s->script_content != NULL) {
765 free(s->script_content);
767 s->script_content = script_content;
773 sptr = malloc(sizeof(struct sdm_script));
774 safestrncpy(sptr->script_name, script_name, sizeof sptr->script_name);
775 sptr->script_content = script_content;
776 sptr->script_active = 0;
777 sptr->next = u->first_script;
778 u->first_script = sptr;
784 * Citadel protocol to manage sieve scripts.
785 * This is basically a simplified (read: doesn't resemble IMAP) version
786 * of the 'managesieve' protocol.
788 void cmd_msiv(char *argbuf) {
790 struct sdm_userdata u;
791 char script_name[256];
792 char *script_content = NULL;
793 struct sdm_script *s;
795 memset(&u, 0, sizeof(struct sdm_userdata));
797 if (CtdlAccessCheck(ac_logged_in)) return;
798 extract_token(subcmd, argbuf, 0, '|', sizeof subcmd);
801 if (!strcasecmp(subcmd, "putscript")) {
802 extract_token(script_name, argbuf, 1, '|', sizeof script_name);
803 if (strlen(script_name) > 0) {
804 cprintf("%d Transmit script now\n", SEND_LISTING);
805 script_content = CtdlReadMessageBody("000", config.c_maxmsglen, NULL, 0);
806 msiv_putscript(&u, script_name, script_content);
809 cprintf("%d Invalid script name.\n", ERROR + ILLEGAL_VALUE);
813 else if (!strcasecmp(subcmd, "listscripts")) {
814 cprintf("%d Scripts:\n", LISTING_FOLLOWS);
815 for (s=u.first_script; s!=NULL; s=s->next) {
816 if (s->script_content != NULL) {
817 cprintf("%s|%d|\n", s->script_name, s->script_active);
823 else if (!strcasecmp(subcmd, "setactive")) {
824 extract_token(script_name, argbuf, 1, '|', sizeof script_name);
825 if (msiv_setactive(&u, script_name) == 0) {
826 cprintf("%d ok\n", CIT_OK);
829 cprintf("%d Script '%s' does not exist.\n",
830 ERROR + ILLEGAL_VALUE,
836 else if (!strcasecmp(subcmd, "getscript")) {
837 extract_token(script_name, argbuf, 1, '|', sizeof script_name);
838 script_content = msiv_getscript(&u, script_name);
839 if (script_content != NULL) {
840 cprintf("%d Script:\n", SEND_LISTING);
841 cprintf("%s000\n", script_content);
844 cprintf("%d Invalid script name.\n", ERROR + ILLEGAL_VALUE);
848 else if (!strcasecmp(subcmd, "deletescript")) {
853 cprintf("%d Invalid subcommand\n", ERROR + CMD_NOT_SUPPORTED);
862 * We don't really care about dumping the entire credits to the log
863 * every time the server is initialized. The documentation will suffice
864 * for that purpose. We are making a call to sieve2_credits() in order
865 * to demonstrate that we have successfully linked in to libsieve.
867 void log_the_sieve2_credits(void) {
870 cred = strdup(sieve2_credits());
871 if (cred == NULL) return;
873 if (strlen(cred) > 60) {
874 strcpy(&cred[55], "...");
877 lprintf(CTDL_INFO, "%s\n",cred);
883 char *serv_sieve_init(void)
885 log_the_sieve2_credits();
886 CtdlRegisterProtoHook(cmd_msiv, "MSIV", "Manage Sieve scripts");
887 return "$Id: serv_sieve.c 3850 2005-09-13 14:00:24Z ajc $";
890 #else /* HAVE_LIBSIEVE */
892 char *serv_sieve_init(void)
894 lprintf(CTDL_INFO, "This server is missing libsieve. Mailbox filtering will be disabled.\n");
895 return "$Id: serv_sieve.c 3850 2005-09-13 14:00:24Z ajc $";
898 #endif /* HAVE_LIBSIEVE */