From: "Chris Parsons" <cjparsons1@yahoo.co.uk>
To: sup-talk@rubyforge.org
Subject: Re: [sup-talk] deleting files from source
Date: Wed, 20 Oct 2010 06:26:13 +0100 [thread overview]
Message-ID: <op.vkuz1znr0495wc@localhost> (raw)
In-Reply-To: <1287452900-sup-9784@maullin>
On Tue, 19 Oct 2010 02:52:54 +0100, Daniel Hernández <daniel@degu.cl>
wrote:
> I started using sup recently. Now I have only one source that is a
> inbox maildir folder. I want to delete some emails from the source
> forever, but when I delete or kill emails they are not really deleted
> from the maildir folder. How can I clean the maildir folder, removing
> deleted or killed emails?
The design intent of sup is to specifically remove the need to worry about
deleting e-mails. But if you really need to do that then one way might be
to do the following (assuming your machine has the right tools installed).
Doing stuff like this could lose your messages. Info supplied for
education purposes only. Proceed at your own risk!
# change to top of the Maildir
cd ~/Mail
# get message id of all files with tag 'deleted' and put in temp file
FL=/tmp/del-filelist
rm -f $FL
for i in `sup-dump | grep deleted | cut -f 1 -d' '`; do grep -l -r $i
./* >> $FL;done
# delete the files in the file list
for i in `cat $FL`; do rm $i; done
# sync the index. New versions of sup-sync don't have the --changed
argument
sup-sync --verbose --changed
repeat for "killed" instead of "deleted"
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2010-10-20 6:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 1:52 Daniel Hernández
2010-10-19 11:31 ` Daniel Hernández
2010-10-19 12:18 ` Pedro F. «pancho» Horrillo
2010-10-20 5:26 ` Chris Parsons [this message]
2010-10-20 14:17 ` Daniel Hernández
2010-10-20 15:11 ` Helge Titlestad
2010-10-21 18:11 ` Hamish D
2010-10-24 10:52 ` Alexander Ulrich
2010-10-24 20:11 ` Damien Leone
2010-12-15 7:57 ` Matthias Vallentin
2010-12-15 11:53 ` Damien Leone
2010-12-18 4:09 ` Matthias Vallentin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.vkuz1znr0495wc@localhost \
--to=cjparsons1@yahoo.co.uk \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox