Comments (17)
@kdeldycke Please can you clarify? I can't use the new version until I understand this.
from mail-deduplicate.
Me too. I'd like to use this script, but how?
from mail-deduplicate.
Same here. +1. How to even run this? I tried to do # ./__init__.py
but it yields
import: unable to open X server `' @ error/import.c/ImportImageCommand/368.
import: unable to open X server `' @ error/import.c/ImportImageCommand/368.
import: unable to open X server `' @ error/import.c/ImportImageCommand/368.
import: unable to open X server `' @ error/import.c/ImportImageCommand/368.
import: unable to open X server `' @ error/import.c/ImportImageCommand/368.
import: unable to open X server `' @ error/import.c/ImportImageCommand/368.
./__init__.py: line 26: from: command not found
./__init__.py: line 27: from: command not found
./__init__.py: line 28: from: command not found
./__init__.py: line 29: from: command not found
./__init__.py: line 31: __version__: command not found
./__init__.py: line 33: syntax error near unexpected token `('
./__init__.py: line 33: `class InsufficientHeadersError(Exception):'
so yeah. Way to go on the documentation here. ;-)
from mail-deduplicate.
OK guys, I get the message ! I agree with all of you: the whole package is quite broken and the associated documentation is heavily user-unfriendly.
I'm going to refactor the package in the next few weeks. Stay tuned.
from mail-deduplicate.
Sad to hear that. Wanted to use it today ;-) Do you have an older script doing the same somewhere I can use on some dovecot Maildir mess with dupes?
from mail-deduplicate.
@jult just do what I'm doing and use the version from before the big change. It's easy to find in the git history.
from mail-deduplicate.
OK, I will. Just found another good option to look at: http://wiki2.dovecot.org/Tools/Doveadm/Deduplicate
from mail-deduplicate.
As @aspiers said: you'd better use an old version from the git history.
Here is the latest version before the packaging attempt: https://github.com/kdeldycke/maildir-deduplicate/tree/851b2e9f166b22ada55538bd58d3fc81f51dbaaf
from mail-deduplicate.
@kdeldycke maybe you could tag that commit for convenience, or even create a stable
branch off it.
The doveadm
command seems to do extremely naive deduplication based on the help text for the -m
switch.
from mail-deduplicate.
So, how does one run the old one? I found that it works from the current dir given as a first param and looks for /cur
/new
etc. but would be good to know if it fucks up or runs dry etc. I'm on a linux machine, with python.
from mail-deduplicate.
@aspiers : Just did that. Branch is now called legacy
and the home page of the project now points to that branch: https://github.com/kdeldycke/maildir-deduplicate/tree/legacy
from mail-deduplicate.
Old script runs, but is not very clear on what it's doing. It did give me something wrong after a run on some Maildir:
Traceback (most recent call last):
File "./maildir-deduplicate.py", line 204, in <module>
main()
File "./maildir-deduplicate.py", line 200, in main
duplicates = findDuplicates(mails_by_hash, delete)
File "./maildir-deduplicate.py", line 107, in findDuplicates
subject, count = re.subn('\s+', ' ', subject)
File "/usr/lib64/python2.6/re.py", line 162, in subn
return _compile(pattern, 0).subn(repl, string, count)
TypeError: expected string or buffer
from mail-deduplicate.
@jult Now that's another issue. I created a dedicated ticket at: #25 . Please continue the discussion over there.
from mail-deduplicate.
Installation instructions added in commit 324d447. The remaining work required to make the script useable again is now ported by #26.
from mail-deduplicate.
You closed this, but, even though the -h
works, it doesn't say a thing about stacking options.
What happens if you stack, say -dOns
, does that work?
from mail-deduplicate.
@jult don't worry, the CLI is supposed to stop and return an error message if a set of options is not allowed.
from mail-deduplicate.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from mail-deduplicate.
Related Issues (20)
- Implement *-discarded actions HOT 12
- Link to docs from `README.md` is broken HOT 3
- Add Python 3.6 support HOT 9
- warning messages do not go well with progress bar HOT 2
- Missing sub-directory in logged file name HOT 3
- `--help` option and naked `mdedup` calls must print the same help screen HOT 4
- Hardlink Dupes HOT 4
- warn users of the 3.x release of the unsupported status HOT 6
- Update GitHub project description and link HOT 4
- add pip to pyproject.toml? HOT 6
- Object has no attribute '_subdir' error HOT 8
- Add option to ignore single messages when performing any actions HOT 2
- AttributeError: 'MaildirDedupMail' object has no attribute '_subdir' HOT 2
- iteritems is python2-only HOT 3
- -s discard-newer -a delete-discarded isn't deleting any mail HOT 2
- `boltons.ecoutils.pprint` error on Python 3.10 HOT 7
- OOM: `mdedup` hangs then exits with message `Killed` HOT 8
- No docs HOT 4
- Broken links HOT 1
- Broken links HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail-deduplicate.