Skip to main content
Code Review

Return to Answer

replaced https://tools.ietf.org/html/rfc with https://www.rfc-editor.org/rfc/rfc
Source Link
  • This is the most complex part of the logic, so you should move some of the code into functions.

  • If you only want the Date header, then ask for just the Date header. (See RFC 3501 Sec 6.4.5 RFC 3501 Sec 6.4.5.)

    Depending on the IMAP server implementation, the Date might be stored in a more readily accessible index, and thus faster to retrieve. Also try using the INTERNALDATE rather than BODY[HEADER.FIELDS (DATE)] to see if it's faster. (The internal date is the time at which the message was introduced into the mailbox, rather than the time at which the sender claims to have sent the message.)

  • This is the most complex part of the logic, so you should move some of the code into functions.

  • If you only want the Date header, then ask for just the Date header. (See RFC 3501 Sec 6.4.5.)

    Depending on the IMAP server implementation, the Date might be stored in a more readily accessible index, and thus faster to retrieve. Also try using the INTERNALDATE rather than BODY[HEADER.FIELDS (DATE)] to see if it's faster. (The internal date is the time at which the message was introduced into the mailbox, rather than the time at which the sender claims to have sent the message.)

  • This is the most complex part of the logic, so you should move some of the code into functions.

  • If you only want the Date header, then ask for just the Date header. (See RFC 3501 Sec 6.4.5.)

    Depending on the IMAP server implementation, the Date might be stored in a more readily accessible index, and thus faster to retrieve. Also try using the INTERNALDATE rather than BODY[HEADER.FIELDS (DATE)] to see if it's faster. (The internal date is the time at which the message was introduced into the mailbox, rather than the time at which the sender claims to have sent the message.)

added 202 characters in body
Source Link
200_success
  • 145.6k
  • 22
  • 190
  • 479

Possible bug

Note that the minimum and the average only take into account days when there was mail. Any days with no mail at all are ignored. That may or may not be the intended behaviour.

Possible bug

Note that the minimum and the average only take into account days when there was mail. Any days with no mail at all are ignored. That may or may not be the intended behaviour.

added 97 characters in body
Source Link
200_success
  • 145.6k
  • 22
  • 190
  • 479
  • This is the most complex part of the logic, so you should move some of the code into functions.

    This is the most complex part of the logic, so you should move some of the code into functions.

  • If you only want the Date header, then ask for just the Date header. (See RFC 3501 Sec 6.4.5 .)

    If you only want the Date header, then ask for just the Date header. (See RFC 3501 Sec 6.4.5 .)

    Depending on the IMAP server implementation, the Date might be stored in a more readily accessible index, and thus faster to retrieve. Also try using the INTERNALDATE rather than BODY[HEADER.FIELDS (DATE)] to see if it's faster. (The internal date is the time at which the message was introduced into the mailbox, rather than the time at which the sender claims to have sent the message.)

  • This is the most complex part of the logic, so you should move some of the code into functions.
  • If you only want the Date header, then ask for just the Date header. (See RFC 3501 Sec 6.4.5 .)
  • This is the most complex part of the logic, so you should move some of the code into functions.

  • If you only want the Date header, then ask for just the Date header. (See RFC 3501 Sec 6.4.5 .)

    Depending on the IMAP server implementation, the Date might be stored in a more readily accessible index, and thus faster to retrieve. Also try using the INTERNALDATE rather than BODY[HEADER.FIELDS (DATE)] to see if it's faster. (The internal date is the time at which the message was introduced into the mailbox, rather than the time at which the sender claims to have sent the message.)

added 97 characters in body
Source Link
200_success
  • 145.6k
  • 22
  • 190
  • 479
Loading
added 97 characters in body
Source Link
200_success
  • 145.6k
  • 22
  • 190
  • 479
Loading
Source Link
200_success
  • 145.6k
  • 22
  • 190
  • 479
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /