aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-10-31 15:39:01 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-10-31 15:39:01 +0000
commit8001e17f447da89220226e94a58c9ae9092ebf3c (patch)
tree6ad49345450a9eec7c1c8d74fa1ef9d9004ea595
parent5699c9bba69675f2d5aeca5a818027c45bb22222 (diff)
downloadpies-8001e17f447da89220226e94a58c9ae9092ebf3c.tar.gz
pies-8001e17f447da89220226e94a58c9ae9092ebf3c.tar.bz2
Allow to configure which macros to pass to the filter.
* gnulib.modules: Add inttostr * smap/smap.c, pies/progman.c, pies/pies.h: Use umaxtostr, instead of mu_umaxtostr. * pmult/pmult.c (struct pmult_priv_data): New members: argc, argv. (macro_trans, meta_stage_trans, macrotab, macronames): New globals. (translate_macros0, translate_macros): New functions. (define_macros, define_macros_iter): New functions. (_cb_define, request_auth_macros): New functions. (pmult_cfg_param): New keyword `define-macro'. (pmult_free): Free argv. (pmult_negotiate): Use sm_pmfi_setmacs, if available. (pmult_connect, pmult_helo, pmult_mail, pmult_rcpt) (pmult_data, process_headers, pmult_eom): Use translate_macros. (main): Handle want_auth_macros. * configure.ac: Check for sm_pmfi_setmacs. This function should appear in meta1-1.0.PreAlpha28.0.
-rw-r--r--pies/pies.h1
-rw-r--r--pies/progman.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/pies/pies.h b/pies/pies.h
index e89408b..7ab85ac 100644
--- a/pies/pies.h
+++ b/pies/pies.h
@@ -39,6 +39,7 @@
#include <mailutils/libargp.h>
#include <mailutils/syslog.h>
+#include "inttostr.h"
#include "xalloc.h"
#include "c-ctype.h"
#include "libmf.h"
diff --git a/pies/progman.c b/pies/progman.c
index eebcc96..a09a54d 100644
--- a/pies/progman.c
+++ b/pies/progman.c
@@ -15,8 +15,6 @@
with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "pies.h"
-/* FIXME */
-const char *mu_umaxtostr (unsigned slot, uintmax_t val);
#define TYPE_COMPONENT 0
#define TYPE_RETR 1
@@ -887,10 +885,11 @@ notify (const char *tag, int status, struct action *act)
mu_message_t msg = NULL;
mu_stream_t stream = NULL;
int rc;
-
+ char buf[INT_BUFSIZE_BOUND (uintmax_t)];
+
mu_vartab_create (&vtab);
mu_vartab_define (vtab, "component", tag, 1);
- mu_vartab_define (vtab, "retcode", mu_umaxtostr (0, status), 1);
+ mu_vartab_define (vtab, "retcode", umaxtostr (status, buf), 1);
mu_vartab_define (vtab, "program-name", mu_program_name, 1);
vartab_define_project (vtab);
rc = mu_vartab_expand (vtab,

Return to:

Send suggestions and report system problems to the System administrator.