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?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: How to create a folder using IMAPLib?
Date Wed, 18 Nov 2015 22:58:47 +0100
Lines 22
Message-ID <mailman.428.1447883936.16136.python-list@python.org> (permalink)
References <564CD930.9000005@cajuntechie.org> <CAPTjJmqDBicF6+xLvFS+D8ow5e3Tmx+xx=n7MMhDvJkXVvKVGw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
X-Trace news.uni-berlin.de B260JfOJIJKsSbLKVMvBhAaf2i54mIYIqLSuQndsByNQ==
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'spec': 0.09; 'subject:create': 0.09; 'subject:using': 0.09; 'thu,': 0.15; '>on': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:folder': 0.16; 'wrote:': 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'cc:no real name:2**0': 0.22; 'am,': 0.23; 'command': 0.26; 'chris': 0.26; 'host': 0.28; 'received:se': 0.29; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.30; 'folder': 0.30; 'anyone': 0.32; 'another': 0.32; 'source': 0.33; 'url:python': 0.33; 'machine.': 0.33; "i'll": 0.33; 'url:listinfo': 0.34; 'server': 0.34; 'list': 0.34; 'nov': 0.35; 'quite': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'delete': 0.38; 'sure': 0.39; 'does': 0.39; 'url:mail': 0.40; 'called': 0.40; 'header:Message-Id:1': 0.61; 'here.': 0.62; 'sample': 0.63; 'here:': 0.63; 'special': 0.73; 'obvious': 0.76; '>with': 0.84; 'header:In-reply-to:1': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1447883929; bh=rN59V5W+LTQRhYenKZqcdd7xEPUqQaPppQ97X3PXVBE=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=W1Qn2d+BEAWD6/X7fBXxBBXqAnbiVkbZaxHlJT2nVufDEpJxR6we66WFgUiVORYOM dYYL4XsYYMvjSuV+KAOt02v6IUBP19HPiOjwUIQWgu0bYK6/oAUG/q/x7Wgw0qfWnN eqMJhlJOKLbNZVkajtnbFWxdUN3tdkFGS/1lJC94=
In-reply-to <CAPTjJmqDBicF6+xLvFS+D8ow5e3Tmx+xx=n7MMhDvJkXVvKVGw@mail.gmail.com>
Comments In-reply-to Chris Angelico <rosuav@gmail.com> message dated "Thu, 19 Nov 2015 07:35:36 +1100."
Content-ID <27193.1447883927.1@fido>
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Wed, 18 Nov 2015 22:58:49 +0100 (CET)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:99001

Show key headers only | 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