Commit 218bf08a 218bf08a7bb4c9ffb9762d165ac434b316ce14d8 by Sergey Poznyakoff

Minor stylistic changes

1 parent 17a229a4
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2005,
2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -64,15 +65,16 @@ sieve_action_fileinto (mu_sieve_machine_t mach, mu_list_t args, mu_list_t tags)
mu_sieve_error (mach, _("cannot get filename!"));
mu_sieve_abort (mach);
}
mu_sieve_log_action (mach, "FILEINTO", _("delivering into %s"), val->v.string);
mu_sieve_log_action (mach, "FILEINTO",
_("delivering into %s"), val->v.string);
if (mu_sieve_is_dry_run (mach))
return 0;
rc = mu_message_save_to_mailbox (mach->msg, mach->ticket, mach->debug,
val->v.string);
val->v.string);
if (rc)
mu_sieve_error (mach, _("cannot save to mailbox: %s"),
mu_strerror (rc));
mu_strerror (rc));
else
sieve_mark_deleted (mach->msg, 1);
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2004,
2005 Free Software Foundation, Inc.
2005, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -37,12 +37,13 @@ mu_sieve_require (mu_list_t slist)
if (status)
{
sieve_compile_error (sieve_filename, sieve_line_num,
_("cannot create iterator: %s"),
mu_strerror (status));
_("cannot create iterator: %s"),
mu_strerror (status));
return;
}
for (mu_iterator_first (itr); !mu_iterator_is_done (itr); mu_iterator_next (itr))
for (mu_iterator_first (itr);
!mu_iterator_is_done (itr); mu_iterator_next (itr))
{
char *name;
int (*reqfn) (mu_sieve_machine_t mach, const char *name) = NULL;
......
......@@ -49,22 +49,22 @@ struct sieve_machine {
mu_list_t comp_list; /* Comparators */
mu_list_t source_list; /* Source names (for diagnostics) */
size_t progsize; /* Number of allocated program cells */
sieve_op_t *prog; /* Compiled program */
size_t progsize; /* Number of allocated program cells */
sieve_op_t *prog; /* Compiled program */
/* Runtime data */
size_t pc; /* Current program counter */
long reg; /* Numeric register */
size_t pc; /* Current program counter */
long reg; /* Numeric register */
mu_list_t stack; /* Runtime stack */
int debug_level; /* Debugging level */
jmp_buf errbuf; /* Target location for non-local exits */
char *identifier; /* Name of action or test being executed */
int debug_level; /* Debugging level */
jmp_buf errbuf; /* Target location for non-local exits */
char *identifier; /* Name of action or test being executed */
mu_mailbox_t mailbox; /* Mailbox to operate upon */
size_t msgno; /* Current message number */
size_t msgno; /* Current message number */
mu_message_t msg; /* Current message */
int action_count; /* Number of actions executed over this message */
int action_count; /* Number of actions executed over this message */
/* User supplied data */
mu_sieve_parse_error_t parse_error_printer;
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2005,
2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -253,7 +254,7 @@ mu_sieve_debug (mu_sieve_machine_t mach, const char *fmt, ...)
void
mu_sieve_log_action (mu_sieve_machine_t mach, const char *action,
const char *fmt, ...)
const char *fmt, ...)
{
va_list ap;
......