From 5aa54cbb20ba640e73e6c9132f9b8c13bec07607 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 27 Mar 2012 15:11:24 +0200 Subject: [PATCH] Fixed mhstore to honor nmh-storage profile entry even with -auto [Bug #35303]. Pulled in from nmh. Thanks to David Levine. --- man/mhstore.man1 | 4 +++- uip/mhstore.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/man/mhstore.man1 b/man/mhstore.man1 index f05c10c..ec4c7a1 100644 --- a/man/mhstore.man1 +++ b/man/mhstore.man1 @@ -218,7 +218,9 @@ to store the content. If the formatting string starts with a '/', then the content will be stored in the full path given, else the file name will be relative to the value of \*(lqnmh-storage\*(rq or the current working directory. Any escapes (given below) will be -expanded, except for the a-escape. +expanded, except for the a-escape. Note that if \*(lqnmh-storage\*(rq +is not an absolute path, it will be relative to the folder that +contains the message(s). .PP A command or pathname formatting string may contain the following escapes. If the content isn't part of a multipart (of any subtype diff --git a/uip/mhstore.c b/uip/mhstore.c index 764237e..cb411d8 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -438,7 +438,7 @@ store_all_messages(CT *cts) */ if (autosw) dir = getcpy(cwd); - else if ((cp = context_find(nmhstorage)) && *cp) + if ((cp = context_find(nmhstorage)) && *cp) dir = getcpy(cp); else dir = getcpy(cwd); -- 1.7.10.4