summaryrefslogtreecommitdiff
path: root/guimb/scm/sieve-core.scm
AgeCommit message (Collapse)AuthorFiles
2010-12-31Remove guimb.Sergey Poznyakoff1
It was inoperational since 2009-03-27 and nobody complained, so it seems to not be reclaimed at all. FWIW, it will be easy to recreate it entirely in Scheme, should the need be. * guimb/.gitignore: Remove. * guimb/Makefile.am: Remove. * guimb/collect.c: Remove. * guimb/guimb.h: Remove. * guimb/main.c: Remove. * guimb/util.c: Remove. * Makefile.am (GUIMB_DIR): Remove. [MU_COND_LIBMU_SCM] (SCHEME_DIR): New variable. (SUBDIRS): Add SCHEME_DIR instead of GUIMB_DIR. * configure.ac (MU_GUILE_SIEVE_MOD_DATA): Remove substitution. (AC_CONFIG_FILES): Remove guimb and guimb/scm, add scheme * guimb/scm/.gitignore: move to scheme/.gitignore * guimb/scm/Makefile.am: move to scheme/Makefile.am * guimb/scm/README: move to scheme/README * guimb/scm/mimeheader.scm: move to scheme/mimeheader.scm * guimb/scm/numaddr.scm: move to scheme/numaddr.scm * guimb/scm/redirect.scm: move to scheme/redirect.scm * guimb/scm/reject.scm: move to scheme/reject.scm * guimb/scm/sieve-core.scm: move to scheme/sieve-core.scm * guimb/scm/sieve.scm.in: move to scheme/sieve2scm.scmi * guimb/scm/vacation.scm: move to scheme/vacation.scm
2010-10-09Fix copyleft notices to follow the GNU standards.Sergey Poznyakoff1
2010-04-01Implement mailbox iterators in Scheme.Sergey Poznyakoff1
* libmu_scm/mu_mailbox.c (struct mu_mailbox)<itr>: New member. (mu_scm_mailbox_free): Destroy the iterator. (mu_scm_mailbox_create0): Initialize itr to NULL. (mu-mailbox-first-message, mu-mailbox-next-message) (mu-mailbox-more-messages?): New function. * guimb/scm/sieve-core.scm (sieve-run): Rewrite main loop in the True Schemish Way.
2010-01-05Update copyright years.Sergey Poznyakoff1
Happy GNU year!
2009-03-24Rewrite scripting support in maidag.Sergey Poznyakoff1
* include/mailutils/guile.h (mu_guile_init, mu_guile_load) (mu_guile_eval, mu_guile_mailbox_apply, mu_guile_message_apply) (mu_guile_safe_exec, mu_guile_safe_proc_call): New protos. * libmu_scm/Makefile.am: Add mu_guile.c * libmu_scm/mu_guile.c: New file. * libmu_scm/mu_mailbox.c (struct mu_mailbox): Kludge: new member noclose. (mu_scm_mailbox_free): Do not close/destroy mailbox if it is marked noclose. (mu_scm_mailbox_create0): Kludge: new function. * libmu_scm/mu_message.c (mu_scm_message_print): Bugfix. * maidag/Makefile.am: Add guile.c and sieve.c. * maidag/deliver.c (maidag_stdio_delivery) [WITH_GUILE]: Remove block. (deliver_url): Call script_apply, instead of sieve_test. * maidag/maidag.c: Rewrite scripting support in a modular way. Remove options: --sieve, --source (and the corresponding config statements). Add options: --language, --script. Add configure statement: filter (block). * maidag/maidag.h (progfile_pattern, sieve_pattern): Remove. (script_list, sieve_debug_flags, message_id_header, sieve_enable_log): New prototypes. [WITH_GUILE]: Remove. (maidag_script_fun, struct maidag_script): New data type. (script_handler): New extern. (script_lang_handler, script_suffix_handler) (script_register, script_apply): New protos. (scheme_check_msg, sieve_check_msg): New protos. * maidag/script.c: Rewrite. Provide general-purpose serialized script support. * guimb/guimb.h (struct guimb_data): Remove. * guimb/main.c: Rewrite in a cleaner way, using functions from mu_guile.c. * guimb/collect.c (guimb_catch_body, guimb_catch_handler) (guimb_exit): Remove. * guimb/scm/sieve-core.scm (sieve-current-message, sieve-mailbox): Public. (sieve-run-current-message): New public function. (sieve-run): Call sieve-run-current-message for each message. * guimb/scm/sieve.scm.in (sieve-save-program): Change code generation to suit both per-mailbox and per-message invocation. This kicks mail.local out of whack. * maidag/guile.c: New file. * maidag/sieve.c: New file.
2007-12-19* NEWS: Update.Sergey Poznyakoff1
* configure.ac (MU_LIB_REMOTE): New substitution variable. (AC_CONFIG_FILES): Add libproto/remote/Makefile. * imap4d/copy.c, imap4d/create.c, imap4d/delete.c, imap4d/fetch.c, imap4d/imap4d.c, imap4d/list.c, imap4d/lsub.c, imap4d/rename.c, imap4d/subscribe.c, imap4d/unsubscribe.c, imap4d/util.c: Spelling fixes. * include/mailutils/cfg.h (mu_cfg_error_count): New variable. * include/mailutils/gocs.h (struct mu_gocs_mailbox): New member mailbox_pattern * include/mailutils/libargp.h (mu_rcfile_lint): New variable. * include/mailutils/mailbox.h (mu_set_mailbox_pattern): New function. (mu_mail_directory): Removed. (mu_mailbox_url): New function. * include/mailutils/mutil.h (mu_normalize_mailbox_url): Remove. * include/mailutils/registrar.h (mu_0_6_registrar_lookup): Remove. * libargp/common.c: New options --rcfile-lint and --mailbox-pattern. * libargp/muinit.c: Handle --rcfile-lint. * libcfg/common.c: New statement mailbox-pattern * libmu_scm/mu_mailbox.c (mu-mail-directory): Deprecated. (mu-user-mailbox-url): New function. * libproto/remote: New directory. * libproto/remote/folder.c: New file. * libproto/remote/mbox.c: New file. * libproto/remote/.cvsignore: New file. * libproto/Makefile.am (SUBDIRS): Add remote * libproto/mbox/folder.c, libproto/mbox/url.c: Indentation and spelling fixes. * maidag/Makefile.am (maidag_LDADD): Add MU_LIB_REMOTE. * maidag/maidag.c: Register mu_remote_mbox_record. * mailbox/cfg_parser.y (mu_cfg_error_count): New variable. (mu_cfg_format_error,_mu_cfg_vperror): Increment mu_cfg_error_count. * mailbox/debug.c (mu_debug_check_level): Do not mask out inheritance bit. * mailbox/gocs.c (mu_gocs_mailbox_init): Set mailbox pattern. * mailbox/mailbox.c (_create_mailbox): Bugfix. * mailbox/mbx_default.c (mu_set_mailbox_pattern): New finction. (mu_set_mail_directory): Rewrite. (user_mailbox_name): Rewrite. * mailbox/mutil.c (mu_normalize_mailbox_url): Remove. * mailbox/registrar.c (mu_0_6_registrar_lookup): Remove. * guimb/scm/sieve-core.scm (sieve-main): Use mu-user-mailbox-url.
2007-06-27Prepare for the GPL v.3 release. Relicense programs under GPL v.3, libraries ↵Sergey Poznyakoff1
under LPGL v.3
2006-04-21Rewrite as module. ChangeSergey Poznyakoff1
initialization of the syntax tables. (handle-exception,sieve-verbose-print): New macro (action-fileinto,action-keep,action-stop,action-discard): Produce verbose diagnostics if required. (sieve-run): Take thunk as an argument. Report implicit keep if it returns #t and the verbose mode is on. (sieve-main): Take thunk as an argument.
2006-04-20Always load mailutils moduleSergey Poznyakoff1
(sieve-main): Use (mu-mail-directory) instead of mu-path-maildir.
2005-05-17Updated FSF addressalpha_0_6_90Sergey Poznyakoff1
2003-02-09Updated FSF address.Wojciech Polak1
2002-12-29Fixed copyright, i.e. "This program" -> "GNU Mailutils".Wojciech Polak1
2002-11-30(action-keep): Remove the delete mark from the message.Sergey Poznyakoff1
2002-10-14Allow to be executed directly by guileSergey Poznyakoff1
2002-10-13Changed sieve-register-.* functions to allow for actions to accept tags.Sergey Poznyakoff1
(sieve-get-opt-arg): New function. Returns the argument to a given tag.
2002-10-01Added :regex tag -- an extension allowing to use posix regexp in address and ↵Sergey Poznyakoff1
header tests.
2002-09-01(sieve-expand-filename): Fixed syntax error.Sergey Poznyakoff1
2002-08-29(sieve-expand-filename): Do not attempt to expand meta-characters understood ↵Sergey Poznyakoff1
by mailbox_create_default.
2002-08-13Switched to the new authentication/authorization functions.Sergey Poznyakoff1
2002-05-16(sieve-expand-filename): New function. Expands ~ in the given pathname,Sergey Poznyakoff1
using geteuid. (action-fileinto): Use sieve-expand-filename. Be more robust in error handling.
2002-05-02Changed runtime error reporting.Sergey Poznyakoff1
2001-12-28Introduced sieve-daemon-email variable. Removed sieve-message-bounce,Sergey Poznyakoff1
since recent modifications to mailer_send_message() and mu-message-send provide all the required functionality.
2001-10-23Use mu-username->email to initialize sieve-my-email.Sergey Poznyakoff1
2001-08-18New function sieve-message-bounce.Sergey Poznyakoff1
2001-08-05Use sieve-mailbox-open instead of mu-mailbox-open. The former searchesSergey Poznyakoff1
the list of open mailboxes and returns one if found. All the mailboxes get closed at once when the sieve program finishes execution. This saves memory and speeds up the execution (fewer calls to gc, if any). sieve-regexp-to-posix: escape special characters. action-reject: Use ports instead of mu-body- interface.
2001-08-04Changed action-keep: it couldn't be just #f.Sergey Poznyakoff1
Fixed and tested action-stop, action-redirect and test-exists. Fixed handling of null-length keys in sieve-str-str. test-address and test-header: use mu-message-get-header-fields to speed the things up. Implemented "envelope" test.
2001-08-03Sieve core functions for scripts generated by sieve.scm.Sergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.