hm_dir config bug.. (fwd)

---------

From: Daniel Stenberg (Daniel.Stenberg@frontec.se)
Date: Wed Sep 15 1999 - 03:41:05 CDT


FYI

-- 
  Daniel Stenberg, Unix-nisse på Tekniksystem, 0708-317742
---------- Forwarded message ----------
Date: Wed, 15 Sep 1999 18:34:13 +1000 (EST)
From: Charlie Brady <charlieb@aurema.com>
To: Daniel Stenberg <Daniel.Stenberg@sth.frontec.se>
Subject: hm_dir config bug..
Here is a change to make the cookies work when the directory is set in the
config fule - currently only works from command line.
The documentation is also slighly inaccurate - you say "you can tell
Hypermail to archive messages in directories by the date they were
received". In reality, it is by the date that hypermail is run - the
messages may be old, but you don't get the received date, you just get the
current date :-(
Charlie Brady
Aurema Pty Ltd (formerly Softway Pty Ltd)
 PO Box 305, Strawberry Hills, NSW 2012, Australia
Email:charlieb@aurema.com, Tel: +61 2 9698 2322, Fax: +61 2 9699 9174
  "I think it would be a good idea." Ghandi, on Western Civilisation.
---------- Forwarded message ----------
Date: Wed, 15 Sep 1999 18:31:07 +1000 (EST)
From: Charlie Brady <charlieb@aurema.com>
--- hypermail.c.orig	Mon May  3 17:44:15 1999
+++ hypermail.c	Wed Sep 15 18:30:42 1999
@@ -239,7 +239,7 @@
 	  /* config file from pre-config options */
 	  break;
 	case 'd':
-	  set_dir = strreplace(set_dir, dirpath(optarg));
+	  set_dir = strreplace(set_dir, optarg);
 	  break;
 	case 'i':
 	  use_stdin = TRUE;
@@ -341,6 +341,8 @@
     ihtmlfooterfile = expand_contents(set_ihtmlfooter);
     mhtmlheaderfile = expand_contents(set_mhtmlheader);
     mhtmlfooterfile = expand_contents(set_mhtmlfooter);
+
+    if (set_dir) set_dir = strreplace(set_dir, dirpath(set_dir));
 
     /*
     ** Default names for directories and labels need to be figured out.

---------

This archive was generated by hypermail 2.1.5.