Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99001

Re: How to create a folder using IMAPLib?

From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: How to create a folder using IMAPLib?
Date 2015-11-18 22:58 +0100
Message-ID <mailman.428.1447883936.16136.python-list@python.org> (permalink)
References <564CD930.9000005@cajuntechie.org> <CAPTjJmqDBicF6+xLvFS+D8ow5e3Tmx+xx=n7MMhDvJkXVvKVGw@mail.gmail.com>

Show all headers | View raw


In a message of Thu, 19 Nov 2015 07:35:36 +1100, Chris Angelico writes:
>On Thu, Nov 19, 2015 at 7:01 AM, Anthony Papillion
><anthony@cajuntechie.org> wrote:
>> I'm writing a program to help migrate mail from one host to another
>> with a few special circumstances. I'm able to get a list off of the
>> source IMAP server using the .list() command but I'm not quite sure
>> how to create a folder on the target machine.
>>
>> Does anyone know how to create a folder using IMAPlib?
>
>They're called "mailboxes", which I'll admit is not the most obvious
>name, but imaplib is following the IMAP spec here. You can create them
>with .create() and delete them with .delete().
>
>ChrisA
>-- 
>https://mail.python.org/mailman/listinfo/python-list

Sample code here:
https://pymotw.com/2/imaplib/

Laura

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to create a folder using IMAPLib? Laura Creighton <lac@openend.se> - 2015-11-18 22:58 +0100

csiph-web