summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorschnoebe <schnoebe>2012-08-31 00:50:04 +0000
committerschnoebe <schnoebe>2012-08-31 00:50:04 +0000
commit30338b514f132ceeecbeffd8665fa668a22488eb (patch)
tree61950b48b4d5d14f571eacc3ffafc5bdc0ed0a83 /mail
parent6011519093ac70704bbe3da9c40f93a60b96044c (diff)
downloadpkgsrc-30338b514f132ceeecbeffd8665fa668a22488eb.tar.gz
Add a patch to fix the "-r" functionality in folder.
Diffstat (limited to 'mail')
-rw-r--r--mail/nmh/distinfo3
-rw-r--r--mail/nmh/patches/patch-uip_folder.c26
2 files changed, 28 insertions, 1 deletions
diff --git a/mail/nmh/distinfo b/mail/nmh/distinfo
index 4b0d27a99c2..65bd0841d12 100644
--- a/mail/nmh/distinfo
+++ b/mail/nmh/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2012/07/27 19:28:58 drochner Exp $
+$NetBSD: distinfo,v 1.16 2012/08/31 00:50:04 schnoebe Exp $
SHA1 (nmh-1.5.tar.gz) = 9d8c034206f793d6d796b514c9a8242422f0d4f7
RMD160 (nmh-1.5.tar.gz) = 12c6aae9c02c5895593e4d5bff95a061c71b623c
@@ -7,3 +7,4 @@ SHA1 (patch-ba) = 380baae827368e97b03691b5bf2fd2c83123209a
SHA1 (patch-bb) = 8ff2a2b8a7a79e0b38b7d8a2cb0266dccd66af7e
SHA1 (patch-ca) = 756dfb664a6fb51f8fe5024f2fef13c9d9175acb
SHA1 (patch-cd) = 9ce049cc2861d13b89fe38259921640d5733924e
+SHA1 (patch-uip_folder.c) = ab3c40af88cda668f98ce14440e3febabdae479d
diff --git a/mail/nmh/patches/patch-uip_folder.c b/mail/nmh/patches/patch-uip_folder.c
new file mode 100644
index 00000000000..c1bcdf74cc9
--- /dev/null
+++ b/mail/nmh/patches/patch-uip_folder.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-uip_folder.c,v 1.1 2012/08/31 00:50:05 schnoebe Exp $
+
+Promote the changing of directory to restore the functionality of
+``folder -r''
+
+Reported as 37230 (https://savannah.nongnu.org/bugs/index.php?37230)
+
+--- uip/folder.c.orig 2012-06-11 04:06:19.000000000 +0000
++++ uip/folder.c
+@@ -341,13 +341,13 @@ main (int argc, char **argv)
+ /*
+ * Scan the folders
+ */
++ /* change directory to base of nmh directory for crawl_folders */
++ if (chdir (nmhdir) == NOTOK)
++ adios (nmhdir, "unable to change directory to");
+ if (all || ftotal > 0) {
+ /*
+ * If no folder is given, do them all
+ */
+- /* change directory to base of nmh directory for crawl_folders */
+- if (chdir (nmhdir) == NOTOK)
+- adios (nmhdir, "unable to change directory to");
+ if (!argfolder) {
+ if (msg)
+ admonish (NULL, "no folder given for message %s", msg);