diff options
Diffstat (limited to 'mh/whatnowenv.c')
-rw-r--r-- | mh/whatnowenv.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mh/whatnowenv.c b/mh/whatnowenv.c index 9a7984cf1..fdcfc64b7 100644 --- a/mh/whatnowenv.c +++ b/mh/whatnowenv.c @@ -25,10 +25,8 @@ _add_to_list (size_t num, mu_message_t msg, void *data) } void -mh_whatnow_env_from_environ (struct mh_whatnow_env *wh) +mh_whatnow_env_from_environ_early (struct mh_whatnow_env *wh) { - char *folder = getenv ("mhfolder"); - memset (wh, 0, sizeof (*wh)); wh->file = getenv ("mhdraft"); @@ -36,6 +34,14 @@ mh_whatnow_env_from_environ (struct mh_whatnow_env *wh) wh->draftfile = wh->file; wh->editor = getenv ("mheditor"); wh->prompt = getenv ("mhprompt"); /* extension */ +} + + +void +mh_whatnow_env_from_environ_late (struct mh_whatnow_env *wh) +{ + char *folder = getenv ("mhfolder"); + if (folder) { wh->anno_field = getenv ("mhannotate"); |