Giter Site home page Giter Site logo

Hardlink Dupes about mail-deduplicate HOT 4 OPEN

Mathias-Ro avatar Mathias-Ro commented on August 25, 2024
Hardlink Dupes

from mail-deduplicate.

Comments (4)

leggewie avatar leggewie commented on August 25, 2024

Since you are mentioning hardlinks, I will assume you refer to maildir settings only. For mbox this request is obviously impossible and unlikely to be what you had in mind. The problem then comes down to a) files are identical (same hash from a filesystem perspective) and b) files are identical for the purpose of mdedup but not for the FS.

I'd think that implementing the requested feature is likely feature creep with a lot of potential cornercases. In situation a) you are better off with existing lint binaries (I maintain fslint in Debian, that's 1 option, another is duperemove or hardlink). Just choose what suits you best. I'm not sure that b) is enough of a problem to justify to tackle it.

from mail-deduplicate.

Mathias-Ro avatar Mathias-Ro commented on August 25, 2024

If the same mail is stored in different boxes the mails have different x-headers, so they are no dupes for linux. For the user it's the same to see his own sent mail or a hardlink of the received mail in his sent folder.
If there are forwarding rules all could use hardlinks of the same mail file.
With a little shell script I found in different organisations a medium of about 2 till 4 identical mails in different folders.

from mail-deduplicate.

leggewie avatar leggewie commented on August 25, 2024

I'm not saying there is no use case for this. I'm just not sure there is enough of a use-case for mdedup to add this feature. If as you say "For the user it's the same to see his own sent mail or a hardlink of the received mail in his sent folder." then I have to wonder why the user is sending CC: to himself. I don't, for that exact reason to avoid unnecessary dupes. Others might want the dupes and want to keep them.

I'm just worried that this adds very little benefit and lots and lots of new cornercases and things to consider. Hardlinking files that are not identical brings back memories of the Xerox workcentre scandal. It's one thing to drop files. It's not the same to subtly and undetectably alter stuff. The more I think about this idea, the bigger my reservations.

from mail-deduplicate.

Mathias-Ro avatar Mathias-Ro commented on August 25, 2024

If as you say "For the user it's the same to see his own sent mail or a hardlink of the received mail in his sent folder." then I have to wonder why the user is sending CC: to himself.

In imap folders the mail client stores a copy of the sent mails in the .sent folder of the acccount. It's the only way to see the sent mails at all his devices.

Some users or organisations use mails rules for some copys of the same mail inside the organisation. Here we also could replace the copies with hard links.

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.