Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] Ssummary URL reference error; wrong month

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun <address@concealed>
  • Cc: "'address@concealed'" <address@concealed>
  • Subject: Re: [sympa-dev] Ssummary URL reference error; wrong month
  • Date: Wed, 07 Nov 2001 15:40:31 +0100

> Straub Herbert wrote:
>
> In sympa 3.2.1 (and later) there is an error with the subscriber option
> summary.
>
> If the month change between two summary mail sendings, then the URL in the
> summary mail
> to the mail, is wrong. I think, the error occurs also, if the year change.

> The URL specification is wrong. If i changed the URL path 2001-11 to
> 2001-10 it works.
>
> In List.pm i found in the function send_msg_digest in loop index
> contruction the line
>
> $msg->{'month'} = &POSIX::strftime("%Y-%m", localtime(time)); ## Should be
> extracted from Date:

> I change this line with the following lines:
>
> my $send_date;
> $send_date=ParseDate($mail->head->get('date'));
>
> and it seems, that it works correct. At the beginning of List.pm you must
> add
>
> use Date::Manip;
>
> Is this a correct solution?

You solution has 2 disadvantages :
1/ it requires a new CPAN module 'Date::Manip' and Sympa already
suffers
from the amount of required CPAN modules.

2/ archived.pl does NOT use the Date: SMTP header field to determine
in which directory to store the mail. It uses the current date
instead.

Another cheap and efficient solution is to hard-code in arcsearch_id that it
should search for the message in the provided month and the previous one.

--
Olivier Salaün
Comité Réseau des Universités



Archive powered by MHonArc 2.6.19+.

Top of Page