Code Monkey home page Code Monkey logo

cleanup-maildir's Introduction

cleanup-maildir's People

Contributors

ehaupt avatar grince avatar mhyllander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cleanup-maildir's Issues

error message with an Index

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?

During cleaning proceee i reciver: propably reason is polish language char.

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.