Giter Site home page Giter Site logo

Comments (17)

aspiers avatar aspiers commented on May 27, 2024

@kdeldycke Please can you clarify? I can't use the new version until I understand this.

from mail-deduplicate.

micressor avatar micressor commented on May 27, 2024

Me too. I'd like to use this script, but how?

from mail-deduplicate.

jult avatar jult commented on May 27, 2024

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.

kdeldycke avatar kdeldycke commented on May 27, 2024

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.

jult avatar jult commented on May 27, 2024

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.

aspiers avatar aspiers commented on May 27, 2024

@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.

jult avatar jult commented on May 27, 2024

OK, I will. Just found another good option to look at: http://wiki2.dovecot.org/Tools/Doveadm/Deduplicate

from mail-deduplicate.

kdeldycke avatar kdeldycke commented on May 27, 2024

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.

aspiers avatar aspiers commented on May 27, 2024

@kdeldycke maybe you could tag that commit for convenience, or even create a stablebranch off it.

The doveadm command seems to do extremely naive deduplication based on the help text for the -m switch.

from mail-deduplicate.

jult avatar jult commented on May 27, 2024

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.

kdeldycke avatar kdeldycke commented on May 27, 2024

@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.

jult avatar jult commented on May 27, 2024

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.

kdeldycke avatar kdeldycke commented on May 27, 2024

@jult Now that's another issue. I created a dedicated ticket at: #25 . Please continue the discussion over there.

from mail-deduplicate.

kdeldycke avatar kdeldycke commented on May 27, 2024

Installation instructions added in commit 324d447. The remaining work required to make the script useable again is now ported by #26.

from mail-deduplicate.

jult avatar jult commented on May 27, 2024

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.

kdeldycke avatar kdeldycke commented on May 27, 2024

@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.

github-actions avatar github-actions commented on May 27, 2024

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)

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.