Overview
Comment: | don't yell when server politely asks to wait |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
973a1d241e478806c43f7452ed7f4abe |
User & Date: | arcade@b1t.name on 2015-10-13 17:44:45.000 |
Other Links: | branch diff | manifest | tags |
Context
2016-09-17
| ||
06:27 | fix python version check-in: 295fec7f85 user: arcade@b1t.name tags: master, trunk | |
2015-10-13
| ||
17:44 | don't yell when server politely asks to wait check-in: 973a1d241e user: arcade@b1t.name tags: master, trunk | |
2015-10-12
| ||
17:03 | first commit check-in: 3205f8a9ae user: arcade@b1t.name tags: master, trunk | |
Changes
Modified nntpdup.py
from [acf4f11a52]
to [85cad86f7d].
1 2 3 4 5 6 7 8 9 | #!/usr/bin/env python3.4 import configparser, email.utils, getpass, imaplib, nntplib, re, sqlite3, sys imaplib._MAXLINE = 1024 * 1024 nntplib._MAXLINE = 1024 * 1024 config = configparser.ConfigParser(allow_no_value = True) config.read('nntpdup.conf') | > | > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/env python3.4 import configparser, email.utils, getpass, imaplib, nntplib, re, sqlite3, sys imaplib._MAXLINE = 1024 * 1024 nntplib._MAXLINE = 1024 * 1024 config = configparser.ConfigParser(allow_no_value = True) config.read('nntpdup.conf') try: server = nntplib.NNTP_SSL(config['connection']['newsserver']) except nntplib.NNTPTemporaryError as err: if err.response.startswith('400 load at '): print(err.response) exit(0) else: raise(err) mserver = imaplib.IMAP4_SSL(config['connection']['mailserver']) reMessageId = re.compile('(<[-\][a-zA-Z0-9@.%/=_\$+!&~#\?}]+>)"?\)\)(\d+ \(FLAGS\(\)\))?$') mserver.login(config['connection']['mail_user'], config['connection']['mail_password']) if 'mail_limit' in config['connection']: mailLimit = int(config['connection']['mail_limit']) else: mailLimit = 100 |
︙ | ︙ |