You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== Start phase #1: load mails and compute hashes.
Opening maildir at .............Archives.2001 ...
2 mails found.
100%|##########################################################################################################################################################|
=== Start phase #2: deduplicate mails.
The delete-newer strategy will be applied on each duplicate set.
---
Check that mail differences are within the limits.
Traceback (most recent call last):
File "/usr/local/bin/mdedup", line 11, in <module>
load_entry_point('maildir-deduplicate==2.2.0', 'console_scripts', 'mdedup')()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "build/bdist.linux-x86_64/egg/maildir_deduplicate/cli.py", line 209, in deduplicate
File "build/bdist.linux-x86_64/egg/maildir_deduplicate/deduplicate.py", line 554, in run
File "build/bdist.linux-x86_64/egg/maildir_deduplicate/deduplicate.py", line 206, in dedupe
File "build/bdist.linux-x86_64/egg/maildir_deduplicate/deduplicate.py", line 192, in apply_strategy
File "build/bdist.linux-x86_64/egg/maildir_deduplicate/deduplicate.py", line 279, in delete_newer
File "/usr/local/lib/python2.7/dist-packages/boltons/cacheutils.py", line 660, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "build/bdist.linux-x86_64/egg/maildir_deduplicate/deduplicate.py", line 99, in oldest_timestamp
File "/usr/local/lib/python2.7/dist-packages/boltons/cacheutils.py", line 660, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "build/bdist.linux-x86_64/egg/maildir_deduplicate/mail.py", line 82, in timestamp
File "/usr/lib/python2.7/email/_parseaddr.py", line 154, in mktime_tz
if data[9] is None:
TypeError: 'NoneType' object has no attribute '__getitem__'
The culprit: I've tracked the bug down to two duplicate mails which are simply missing a date header. If I add the following line to the mails the program completes successfully.
Hi,
thanks for your software. I encountered a bug.
The command:
The version (installed from source):
OS version
The log:
The culprit: I've tracked the bug down to two duplicate mails which are simply missing a date header. If I add the following line to the mails the program completes successfully.
Maybe this case is related #24 ?
Example mail (reduced case)
The text was updated successfully, but these errors were encountered: