Comments (4)
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.
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.
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.
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)
- `--help` option and naked `mdedup` calls must print the same help screen 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
- Broken links HOT 1
- Create a new, deduplicated mailbox with unique emails too (Documentation: What is "discarded"?) HOT 3
- TypeError: 'NoneType' object is not subscriptable (mail with no Date) HOT 1
- Broken links
- 🎁 Multiple strategies
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.