Path: utzoo!attcan!uunet!jarthur!usc!wuarchive!zaphod.mps.ohio-state.edu!know!pluto.hemel.bull.co.uk!ckaye From: ckaye@hemel.bull.co.uk (Chris Kaye) Newsgroups: comp.mail.elm Subject: Re: ELM 2.3 PL11 doesn't like Daylight Savings Time Keywords: DST and ELM Message-ID: <1991Mar2.182122.27698@hemel.bull.co.uk> Date: 2 Mar 91 18:21:22 GMT References: <1751@svin02.info.win.tue.nl> Sender: @hemel.bull.co.uk Organization: Bull HN UK Lines: 35 Nntp-Posting-Host: brno devet@wsinis03.info.win.tue.nl (Arjan de Vet) writes: >I was using ELM 2.3 PL11 to read usenet news stored in mail format, when I >discovered that some folders were reported being 'Corrupt' by ELM. After >deleting all kind of headers, special symbols etcetera I finally tried >deleting the 'DST' from 'MET DST' (Middle European Time Daylight Savings >Time) and then everything worked just fine. This 'DST' is present in the >'From ' line. >Has anyone noticed this before when using ELM for reading usenet news stored >in mail folders? Whilst investigating a different problem, I built and ran ELM 2.3 PL11 with debug configured (see Makefile in src). When I receive any mail with a timezone in the 'From ' line, a message is reported in the debugfile complaining about the timezone. The problem appears to be a bug in function get_unix_date() in addr_util.c. This function calls tz_lookup whilst pointing to the timezone in the 'From ' line. Unfortunately, tz_lookup assumes that the timezone is the only thing left in the buffer, which is all well and good when it is called from parse_arpa_date(), but not from get_unix_date(). The problem described by Arjan de Vet also appears to be a bug in the same file (addr_util.c). This time the function is real_from() which can only deal with 7 and 8 fielded 'From ' lines. Unfortunately, DST timezones generate _9_ fielded 'From ' lines! >-- >Arjan de Vet | E-mail : devet@win.tue.nl >Dept. of Math. and Computing Science | tel: + 31 40 473705 >Eindhoven University of Technology | + 31 40 472733 >the Netherlands | fax: + 31 40 436685 -- -----------------------------+ Chris.Kaye@hemel.bull.co.uk | Bull HN Ltd., Maxted Road, | Hemel Hempstead, HP2 7DZ, UK | -----------------------------+