From: markus schnalke Date: Tue, 27 Mar 2012 13:11:24 +0000 (+0200) Subject: Fixed mhstore to honor nmh-storage profile entry even with -auto [Bug #35303]. X-Git-Tag: mmh-thesis-end~131 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=5aa54cbb20ba640e73e6c9132f9b8c13bec07607 Fixed mhstore to honor nmh-storage profile entry even with -auto [Bug #35303]. Pulled in from nmh. Thanks to David Levine. --- 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);