iis -- IMAP to IMAP Synchronization [Was: Re: comparsion of t wo lists]

Delaney, Timothy tdelaney at avaya.com
Sun Apr 28 20:48:21 EDT 2002


> From: Matej Cepl [mailto:cepl.m at neu.edu]
> 
> On Sat, Apr 27, 2002 at 12:17:01AM +0000, Van Gale wrote:
> > "Matej Cepl" wrote:
> > > I would like to compare two
> > > list of messages (in the local and remote folders) and create
> > > list of messages, to be deleted/downloaded. In plain Python, the
> > > part of deletion would go like this:
> 
> OK, I have created ALPHA version of my script!! Yeah (my first
> big script in Python :-)!!!
> 
> However, because the script should work with my real emails, I am 
> rather concerned, whether I have not made some stupid mistake. 
> Would you be so kind and review the attached script and comment 
> on it (especially safety of my emails and speed), please?

To test this type of thing, you should set up an IMAP server (or 2) on one
of your own boxes. Then you can create fake emails to your heart's content.
Never use real, live data for testing - there will *always* be something you
have missed which will delete everything you have.

Tim Delaney





More information about the Python-list mailing list