in reply to problem in Rfc2080 date of imap server

Why do you think that Rfc2060_datetime returns the time of the server? The man page of Mail::IMAPClient says different:

"The Rfc822_date method accepts one input argument, a number of seconds since the epoch date. It returns an RFC822 compliant date string for that date (without the 'Date:' prefix). Useful for putting dates in message strings before calling append, search, etcetera."

  • Comment on Re: problem in Rfc2080 date of imap server

Replies are listed 'Best First'.
Re^2: problem in Rfc2080 date of imap server
by wol (Hermit) on Sep 24, 2008 at 12:57 UTC
    Surely it does/should return the time on the server if the supplied parameter is time() ?

    --
    .sig : File not found.

      He seems to program a client (executed on the client machine), so time() should get the date and time of the client not the server.
        D'oh! I've been writing too much CGI code that runs on servers - in my head I've confounded "server" and "machine".

        More meaningful thoughts can now be posted...

        --
        .sig : File not found.