diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-11-09 17:20:09 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-11-09 17:20:09 +0000 |
commit | 46936e44f4cc14023197034f87d54e6c97e805f4 (patch) | |
tree | b6c2167eecec7978c5f9e002ba9e2044ca115746 /mfd/prog.c | |
parent | a7c89f29d6f47fdb27a91908f96444920e3e21f9 (diff) | |
download | mailfromd-46936e44f4cc14023197034f87d54e6c97e805f4.tar.gz mailfromd-46936e44f4cc14023197034f87d54e6c97e805f4.tar.bz2 |
Add built-in functions for accessing Sendmail macros.
* mfd/mailfromd.h (env_get_macro): New proto.
* mfd/prog.c (env_get_macro): New function.
* mfd/bi_macro.m4: New file.
* mfd/Makefile.am (M4_FILES): Add bi_macro.m4.
* NEWS: Update.
* doc/mailfromd.texi (Macro access): New subsubsection.
git-svn-id: file:///svnroot/mailfromd/trunk@1729 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'mfd/prog.c')
-rw-r--r-- | mfd/prog.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -337,6 +337,12 @@ env_get_locus(eval_environ_t env) return &env->locus; } +const char * +env_get_macro(eval_environ_t env, const char *symbol) +{ + return env->getsym(env->data, symbol); +} + mu_stream_t env_get_stream(eval_environ_t env) { |