diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-24 18:34:36 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-24 18:51:54 +0200 |
commit | 36e8269d52475b4e4e5869873c835ead51d82ccb (patch) | |
tree | c3da415be5185d5e4c2cacf212b9d2761ea0a0ec /mh/mh.h | |
parent | 2ef58f17e48b99f5c95c2c90e8ba9a4190663dd8 (diff) | |
download | mailutils-36e8269d52475b4e4e5869873c835ead51d82ccb.tar.gz mailutils-36e8269d52475b4e4e5869873c835ead51d82ccb.tar.bz2 |
mh: fix the use of mhl.forward in forw.
* mh/mhl.forward: New file.
* mh/forw.c (mh_option): the -format option is boolean.
(mhl_filter): Rename to mhl_filter_file.
(opt_handler) <ARG_FORMAT>: Use default mhl.filter.
<ARG_NOFORMAT>: Set encap_clear.
<ARG_FILTER>: Use mh_find_file to determine filter file name.
(finish_draft): Use MHL filter file if encap == encap_mhl.
* mh/mh.h (mh_find_file): New prototype.
* mh/mh_init.c (mh_find_file): New file.
(mh_read_formfile): Use mh_find_file to locate the file.
* mh/tests/forw.at: Test forw -format.
* mh/tests/mhparam.at: Update the -all test.
* tests/testsuite.at (MH_SETUP): Set the "mhetcdir" component.
* mh/scan.c (opt_handler): Exit if mh_read_formfile failed.
Diffstat (limited to 'mh/mh.h')
-rw-r--r-- | mh/mh.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -314,6 +314,7 @@ void mh_msgset_free (mh_msgset_t *msgset); void mh_msgset_uids (mu_mailbox_t mbox, mh_msgset_t *msgset); char *mh_get_dir (void); +int mh_find_file (const char *name, char **resolved_name); char *mh_expand_name (const char *base, const char *name, int is_folder); void mh_quote (const char *in, char **out); void mh_expand_aliases (mu_message_t msg, mu_address_t *addr_to, @@ -366,6 +367,7 @@ void mh_annotate (mu_message_t msg, char *field, char *text, int date); #define MHL_DISABLE_BODY 8 mu_list_t mhl_format_compile (char *name); + int mhl_format_run (mu_list_t fmt, int width, int length, int flags, mu_message_t msg, mu_stream_t output); void mhl_format_destroy (mu_list_t *fmt); |