ehaupt / cleanup-maildir Goto Github PK
View Code? Open in Web Editor NEWScript for cleaning up and archiving mails in Maildir folders based on arival date
License: MIT License
Script for cleaning up and archiving mails in Maildir folders based on arival date
License: MIT License
INFO:MaildirCleaner:Archiving #7 to Archive.2017: FW: 17095 ETHERNET
Traceback (most recent call last):
File "/data/vmail/cleanup-maildir", line 528, in
cleaner.clean(mode, dir, minAge)
File "/data/vmail/cleanup-maildir", line 425, in clean
self.__mdWriter.deliver(msg, sfPath)
File "/data/vmail/cleanup-maildir", line 153, in deliver
self.logger.INFO("deliver: attempt copy %s to %s" %
AttributeError: Logger instance has no attribute 'INFO'
Is any possibility to resolve this?
Hi,
I used cleanup-maildir.py for quite some time with the python-2.7 version and now switched to your more recent version.
I have a problem when I try to archive mails, I get the following error message:
./cleanup-maildir.py --archive-folder=${ARCHIVEBASE}INBOX--maildir-root=$BASE --folder-prefix --age=30 -d 1 -k -u -v archive INBOX
DEBUG:cleanup-maildir:Mode is archive
INFO:cleanup-maildir:Cleaning up INBOX...
INFO:MaildirCleaner:Scanning threads...
DEBUG:MaildirCleaner:Processed 0 mails...
Traceback (most recent call last):
File "/home/foo/src/cleanup-maildir/scripts/./cleanup-maildir.py", line 535, in <module>
cleaner.clean(mode, dir, minAge)
File "/home/foo/src/cleanup-maildir/scripts/./cleanup-maildir.py", line 391, in clean
self.scanThreads(maildir)
File "/home/foo/src/cleanup-maildir/scripts/./cleanup-maildir.py", line 341, in scanThreads
for ref in msg.getReferences():
File "/home/foo/src/cleanup-maildir/scripts/./cleanup-maildir.py", line 173, in getReferences
return [mid for mid in re.split('\s+', references) if mid[0] == '<' and mid[-1] == '>']
File "/home/foo/src/cleanup-maildir/scripts/./cleanup-maildir.py", line 173, in <listcomp>
return [mid for mid in re.split('\s+', references) if mid[0] == '<' and mid[-1] == '>']
IndexError: string index out of range
any idea what might be wrong there?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.