File: imapfetch/HOW.txt

This file describes tests whose output is retained as usage examples in the
runlogs folder.  

See imapfetch.py's top docstring for all documentation; README.txt in the
SavedMailboxes-yourid-yourisp.net folder for save-mail file examples; and
the runlogs folder for outputs of the test runs here.

-----------------------------------------------------------------------------------------------

# TEST 1
# edit imapfetch.py for account parameters

HOST    = 'imap.earthlink.net'    
USER    = 'lutz@rmi.net'                  
SAVEDIR = b'SavedMailboxes-lutz.rmi.net'

# script started 7:45

C:\...\Code\imapfetch> imapfetch.py > runlogs\runlog-nov3015-lutz.txt

# script ended 12:30

-----------------------------------------------------------------------------------------------

# TEST 2
# edit imapfetch.py for account parameters

HOST    = 'imap.earthlink.net'    
USER    = 'python-training@earthlink.net' 
SAVEDIR = b'SavedMailboxes-pytrain-earthlink'

C:\...\Code\imapfetch> imapfetch.py > runlogs\runlog-nov3015-pytrain.txt

# ran appx 30 minutes

-----------------------------------------------------------------------------------------------

# TEST 3
# edit imapfetch.py for account parameters

HOST    = 'imap.secureserver.net'
USER    = 'lutz@learning-python.com'
SAVEDIR = b'SavedMailboxes-lutz.godaddy'

# run script in IDLE, copy/paste output to runlogs\runlog-dec0115-godaddy.txt

-----------------------------------------------------------------------------------------------

# TEST 4 
# run with script's Ask=True, MBOXSAVE=(selected folders only)
            
# edit imapfetch.py for account parameters and run modes (HOST + USER input at console)
   
Ask      = True
SAVEDIR  = b'SavedMailboxes-lutz.rmi.net'
MBOXSAVE = [b'pp3e-errata', b'lp3e-errata']

# run script with interactive prompts, cut/paste output here

C:\...\Code\imapfetch> imapfetch.py

Host name? imap.earthlink.net
User name? lutz@rmi.net
Password? xxxxxxxx
Skipping mailbox: b'"Virus Blocker"'
Skipping mailbox: b'"Sent Spam"'
Skipping mailbox: b'"Known spam"'
Skipping mailbox: b'"Suspect Email"'
Skipping mailbox: b'INBOX'
Skipping mailbox: b'Drafts'
Skipping mailbox: b'Sent'
Skipping mailbox: b'Trash'
Skipping mailbox: b'"Old Mail"'
Skipping mailbox: b'"Old Sent"'
Skipping mailbox: b'lp3e-errata-posted'
Skipping mailbox: b'lp3e-errata-wishes'
Skipping mailbox: b'lp4e-skipped'
Skipping mailbox: b'lp4e-updates-dec18'
Skipping mailbox: b'psf-stuff'
Skipping mailbox: b'py-announce-stuff'
Skipping mailbox: b'py-dev'

Downloading: b'lp3e-errata' to b'lp3e-errata' ...
1 2 

Downloading: b'pp3e-errata' to b'pp3e-errata' ...
1 2 3 4 5 6 

Finished: see mail files in b'SavedMailboxes-lutz.rmi.net'
Press Enter to close

-----------------------------------------------------------------------------------------------



[Home] Books Programs Blog Python Author Training Search Email ©M.Lutz