https://github.com/tpltnt/sup-purge
purge emails from sup
https://github.com/tpltnt/sup-purge
Last synced: 2 months ago
JSON representation
purge emails from sup
- Host: GitHub
- URL: https://github.com/tpltnt/sup-purge
- Owner: tpltnt
- Created: 2012-02-20T19:23:11.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-24T12:39:31.000Z (about 13 years ago)
- Last Synced: 2025-01-23T00:41:10.148Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This is a small Ruby-script to purge emails from sup.
Yes, purging means physically deleting them from your
maildir. This will most likely break your (xapian)
search index.**status:** abandoned
Looks like i made a wrong assumption about how the mail is
processed locally. Until i figured it out (and the itch is still
there) i abandon this project.## Why?
To quote the FAQ:>Q: How do I delete a message?
>
>A: Why delete? Unless it's spam, you might as well just archive it.
>
>Q: C'mon, really now!
>
>A: Ok, press the 'd' key.
>
>Q: But I want to delete it for real, not just add a 'deleted' flag in
> the index. I want it gone from disk!
>
>A: Currently, for mbox sources, there is a batch deletion tool that
> will strip out all messages marked as spam or deleted.There are people who use maildir. Although harddrives are cheap,
cruft does not have to be tolerated.## Two versions?
Yes, there are two versions.### sup-purge
This is the hackish version to be used in scripts.**Usage:**```sup-purge ```
### sup-purge2
This is the point-and-click version based on "sup-purge". Give it the sup-config directory and it will do the rest.**Usage:**```sup-purge2 ```
## Hints
* To back up your index run:
```sup-dump > ```
The dumpfile is plain text and can be compressed easily.
* To restore your index run:
```
rm -rf ~/.sup/xapian;
sup-sync --all-sources --all --restore
```
* run tests: ```cucumber features/sup-purge.features```
* the dump saves message-id, not filename# License
This code is published under the GPLv3 license.# References
* [sup homepage](http://sup.rubyforge.org/)
* [development repository](http://gitorious.org/projects/sup)
* [sup FAQ](http://sup.rubyforge.org/FAQ.txt)
* [sup wiki](http://sup.rubyforge.org/wiki/wiki.pl)
* [maildir specification](http://cr.yp.to/proto/maildir.html)
* [Xapian](http://xapian.org/)
* testframework: [Cucumber](http://cukes.info/)
* [RDoc](http://rdoc.rubyforge.org/RDoc/Markup.html)