Bugfixes
* configure.ac: Fallback to guile installation prefix, if 'guile-config info bindir' returns empty string. * doc/texinfo/programs.texi: Minor fix. * mail/mailline.c (ml_readline_init): Don't use obsolete CPPFunction type. * mu/shell.c (mutool_initialize_readline): Likewise. * scheme/sieve2scm.scmi: Fix typo. * sieve/sieve.c (main): Fix initialization of Sieve environment variables "location" and "post".
Showing
6 changed files
with
12 additions
and
6 deletions
... | @@ -1159,6 +1159,9 @@ GINT_INIT([gint],[1.8 with-guile], | ... | @@ -1159,6 +1159,9 @@ GINT_INIT([gint],[1.8 with-guile], |
1159 | [useguile=yes | 1159 | [useguile=yes |
1160 | AC_DEFINE([WITH_GUILE],1,[Enable Guile support]) | 1160 | AC_DEFINE([WITH_GUILE],1,[Enable Guile support]) |
1161 | GUILE_BINDIR=`guile-config info bindir` | 1161 | GUILE_BINDIR=`guile-config info bindir` |
1162 | if [ -z "$GUILE_BINDIR" ]; then | ||
1163 | GUILE_BINDIR="`guile-config info prefix`/bin" | ||
1164 | fi | ||
1162 | LIBMU_SCM=../libmu_scm/libmu_scm.la | 1165 | LIBMU_SCM=../libmu_scm/libmu_scm.la |
1163 | LIBMU_SCM_DEPS='${MU_LIB_MBOX} ${MU_LIB_IMAP} ${MU_LIB_POP} ${MU_LIB_MH} ${MU_LIB_MAILDIR} ${MU_LIB_MAILER}' | 1166 | LIBMU_SCM_DEPS='${MU_LIB_MBOX} ${MU_LIB_IMAP} ${MU_LIB_POP} ${MU_LIB_MH} ${MU_LIB_MAILDIR} ${MU_LIB_MAILER}' |
1164 | MU_GUILE_SIEVE_MOD_DIR='$(GUILE_SITE)/$(PACKAGE)/sieve-modules' | 1167 | MU_GUILE_SIEVE_MOD_DIR='$(GUILE_SITE)/$(PACKAGE)/sieve-modules' | ... | ... |
... | @@ -5659,7 +5659,7 @@ Keep on going if execution fails on a message. See also | ... | @@ -5659,7 +5659,7 @@ Keep on going if execution fails on a message. See also |
5659 | @ref{Sieve Configuration, keep-going}. | 5659 | @ref{Sieve Configuration, keep-going}. |
5660 | 5660 | ||
5661 | @item -L @var{dir} | 5661 | @item -L @var{dir} |
5662 | @item --libdir=@var{dir} | 5662 | @itemx --libdir=@var{dir} |
5663 | Append directory @var{dir} to the list of directories searched for | 5663 | Append directory @var{dir} to the list of directories searched for |
5664 | library files. See also @ref{Sieve Configuration, library-path}. | 5664 | library files. See also @ref{Sieve Configuration, library-path}. |
5665 | 5665 | ... | ... |
... | @@ -93,7 +93,8 @@ ml_readline_init () | ... | @@ -93,7 +93,8 @@ ml_readline_init () |
93 | 93 | ||
94 | #ifdef WITH_READLINE | 94 | #ifdef WITH_READLINE |
95 | rl_readline_name = "mail"; | 95 | rl_readline_name = "mail"; |
96 | rl_attempted_completion_function = (CPPFunction*)ml_command_completion; | 96 | rl_attempted_completion_function = |
97 | (rl_completion_func_t*) ml_command_completion; | ||
97 | rl_getc_function = ml_getc; | 98 | rl_getc_function = ml_getc; |
98 | #endif | 99 | #endif |
99 | #ifdef HAVE_SIGACTION | 100 | #ifdef HAVE_SIGACTION | ... | ... |
... | @@ -332,7 +332,8 @@ mutool_initialize_readline (const char *name) | ... | @@ -332,7 +332,8 @@ mutool_initialize_readline (const char *name) |
332 | { | 332 | { |
333 | /* Allow conditional parsing of the ~/.inputrc file. */ | 333 | /* Allow conditional parsing of the ~/.inputrc file. */ |
334 | rl_readline_name = (char *) name; | 334 | rl_readline_name = (char *) name; |
335 | rl_attempted_completion_function = (CPPFunction *) shell_completion; | 335 | rl_attempted_completion_function = |
336 | (rl_completion_func_t*) shell_completion; | ||
336 | rl_getc_function = _shell_getc; | 337 | rl_getc_function = _shell_getc; |
337 | read_history (get_history_file_name ()); | 338 | read_history (get_history_file_name ()); |
338 | } | 339 | } | ... | ... |
... | @@ -981,7 +981,7 @@ exec ${GUILE-guile} -l $0 -c '(mailutils-main)'\n") | ... | @@ -981,7 +981,7 @@ exec ${GUILE-guile} -l $0 -c '(mailutils-main)'\n") |
981 | (define output #f) | 981 | (define output #f) |
982 | 982 | ||
983 | (define (sieve-usage) | 983 | (define (sieve-usage) |
984 | (display "usage: sieve2scm [OPTIONS][mailbox]\n") | 984 | (display "usage: sieve2scm [OPTIONS] [mailbox]\n") |
985 | (display "GNU sieve2scm -- compile a Sieve program into Scheme code\n\n") | 985 | (display "GNU sieve2scm -- compile a Sieve program into Scheme code\n\n") |
986 | (display " -f, --file FILENAME Set input file name\n") | 986 | (display " -f, --file FILENAME Set input file name\n") |
987 | (display " -o, --output FILENAME Set output file name\n") | 987 | (display " -o, --output FILENAME Set output file name\n") | ... | ... |
... | @@ -485,8 +485,9 @@ main (int argc, char *argv[]) | ... | @@ -485,8 +485,9 @@ main (int argc, char *argv[]) |
485 | return EX_SOFTWARE; | 485 | return EX_SOFTWARE; |
486 | } | 486 | } |
487 | 487 | ||
488 | sieve_setenv ("location=MS", mach); | 488 | mu_sieve_set_environ (mach, "location", "MS"); |
489 | sieve_setenv ("phase=post", mach); | 489 | mu_sieve_set_environ (mach, "phase", "post"); |
490 | |||
490 | mu_list_foreach (env_list, sieve_setenv, mach); | 491 | mu_list_foreach (env_list, sieve_setenv, mach); |
491 | mu_list_destroy (&env_list); | 492 | mu_list_destroy (&env_list); |
492 | 493 | ... | ... |
-
Please register or sign in to post a comment