Re: Problem with %M %y cookies

---------

From: Paul Haldane (Paul.Haldane@newcastle.ac.uk)
Date: Fri Aug 20 1999 - 11:49:07 CDT


The expansion of the tokens works if the path is specified on the command
line with the -d flag. Try this patch for hypermail.c

*** src/hypermail.c Fri Aug 20 17:44:43 1999
--- ../../x/hypermail-2a24/src/hypermail.c Mon May 3 08:44:15 1999
***************
*** 239,245 ****
            /* config file from pre-config options */
            break;
          case 'd':
! set_dir = strreplace(set_dir, optarg);
            break;
          case 'i':
            use_stdin = TRUE;
--- 239,245 ----
            /* config file from pre-config options */
            break;
          case 'd':
! set_dir = strreplace(set_dir, dirpath(optarg));
            break;
          case 'i':
            use_stdin = TRUE;
***************
*** 316,326 ****
      }
  
      /*
- ** Expand any magic tokens in the directory name
- */
- set_dir = strreplace(set_dir, dirpath(set_dir));
-
- /*
      ** Did they decide to use stdin by specifying it on the command line ?
      ** If not then check and see if that is the default they wanted from
      ** the options.h or environment values.
--- 316,321 ----

On Fri, 20 Aug 1999, Enzo De Noia wrote:

> I mounted hypermail-2a24 with 2a24.patch submitted by Daniel Stenberg on 10 Aug on a Solaris 7 box. It seems OK but I can't obtain the cookies %M etc. to work.
>
> I have a line like this in hmrc file
> hm_dir = /usr/local/apache/htdocs/hypermail/tidfcnr96/%y/%M
> which worked fine with hypermail-20b3 putting articles in ....tidfcnr/1999/Aug/ directory.
>
> Now hypermail creates a directory tidfcnr96/%y/%M and put there my html files.
>
> What's wrong? Thanks in advance.
>
> Enzo
>
> ---
> Enzo De Noia
>
> Universita' degli Studi di Milano
> Div. Telecomunicazioni - Uff. Servizi di Comunicazione Interpersonale
> v. G. Colombo, 46 20133 MILANO
> tel. 02 7575204 E-mail: Enzo.DeNoia@unimi.it
>
> PGP Fingerprint: 7E59 10A1 DBC7 7D5B 63E7 FEEA BA0D 6699 0CE9 94D5
>
>


---------

This archive was generated by hypermail 2.1.5.