Loading ...
Sorry, an error occurred while loading the content.
 

Re: [tmail2000] TM2k v.1.10.1 - detecting dates, another bug

Expand Messages
  • Marcello
    Hi Mr Mike, That s correct, however, you have to notice that Loop-1 can be out of bounds in the first iteration. If your Delphi s range checking is disabled,
    Message 1 of 2 , Jan 16, 2002
      Hi Mr Mike,

      That's correct, however, you have to notice that Loop-1 can be out of
      bounds in the first iteration. If your Delphi's range checking is
      disabled, you can be trashing the contents of the memory.

      I believe a better implementation is:

      if (Loop > 1) and (sDateStr[Loop] in [#32, ':', '/']) and not
      (sDateStr[Loop-1] in [#32, ':', '/']) then

      Regards,


      > I've made a small correction in MailDateToDelphiDate() and it seems
      > to solve the date issue (using the code from the previous date fix).
      > I changed the line:
      >
      > if sDateStr[Loop] in [#32, ':', '/'] then
      >
      > To:
      >
      > if (sDateStr[Loop] in [#32, ':', '/']) and not (sDateStr[Loop-1] in
      > [#32, ':', '/']) then
      >
      >
      > Why:
      > It couldn't handle a mail header like this:
      >
      > Date: Wed, 3 Jan 2002 19:59:18 +0100 (CET)
      >
      > Thanks for the best mail component,
      >
      > Mike
      >
      >

      =====
      Marcello "Panda" Tavares
      mycelo@...
      http://mpanda.8m.com
      http://groups.yahoo.com/group/piadasdopanda
      http://groups.yahoo.com/group/tmail2000
      ICQ 5831833
      Sorocaba/SP BRAZIL

      _______________________________________________________________________________________________
      Yahoo! GeoCities
      Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil e grátis!
      http://br.geocities.yahoo.com/
    Your message has been successfully submitted and would be delivered to recipients shortly.