Copy functio in imaplib

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raghul

    #1

    Copy functio in imaplib

    What is message_set in the python documentation for copy in imaplib? Is
    they referring message set to the particular mail message in my inbox
    or something else.

    copy( message_set, new_mailbox)
    Copy message_set messages onto end of new_mailbox.

  • Max M

    #2
    Re: Copy functio in imaplib

    Raghul wrote:[color=blue]
    > What is message_set in the python documentation for copy in imaplib? Is
    > they referring message set to the particular mail message in my inbox
    > or something else.
    >
    > copy( message_set, new_mailbox)
    > Copy message_set messages onto end of new_mailbox.[/color]

    A sequence of numbers encoded as a string. In one of the forms:

    '1,2,3,4' or '1:4'

    The numbers can be either message sequence numbers or uids.

    --

    hilsen/regards Max M, Denmark


    IT's Mad Science

    Comment

    • Grant Edwards

      #3
      Re: Copy functio in imaplib

      On 2005-02-22, Raghul <raghulj@gmail. com> wrote:
      [color=blue]
      > What is message_set in the python documentation for copy in imaplib?[/color]

      It's a list of message numbers. The ones returned by a
      "SEARCH" command.
      [color=blue]
      > Is they referring message set to the particular mail message
      > in my inbox or something else.[/color]

      ?

      Have you read the IMAP RFC?

      http://www.faqs.org/rfcs/rfc2060.html

      --
      Grant Edwards grante Yow! Are you mentally here
      at at Pizza Hut??
      visi.com

      Comment

      Working...