Hello, 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? Thanks, Daniel
Excerpts from Daniel Hern?ndez''s message of Mon Oct 18 22:52:54 -0300 2010:> Hello, > > 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?I found the answer in the faq. 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. And this not works with maildir folders. Daniel
Hi! I think that using mutt for this deletion was suggested some time ago... Cheers, Excerpts from Daniel Hern?ndez''s message of Tue Oct 19 13:31:23 +0200 2010:> Excerpts from Daniel Hern?ndez''s message of Mon Oct 18 22:52:54 -0300 2010: > > Hello, > > > > 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? > > I found the answer in the faq. > > 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. > > And this not works with maildir folders. > > Daniel-- Pedro F. ?pancho? Horrillo
On Tue, 19 Oct 2010 02:52:54 +0100, Daniel Hern?ndez <daniel at 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"
Excerpts from Chris Parsons''s message of Wed Oct 20 02:26:13 -0300 2010:> On Tue, 19 Oct 2010 02:52:54 +0100, Daniel Hern?ndez <daniel at 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!The reason because I need to delete some emails is that I read emails in several computers. In each computer I have sup installed and I synchronize the maildir with other maildirs using a primary imap server. Thus I like to delete some unimportant emails to reduce the network traffic. I started with this practice using mutt and the wanderlust email client, but I prefer the sup email client. I like the tagging system of sup and its capacity to manage threads. But now I have another problem, because tags are not stored in the maildir and I don''t know how to synchronize tags in several computers.> # 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"That works fine, but I have written some modifications because my maildir don''t store emails using the message-id. Thanks, Daniel
Excerpts from Daniel Hern?ndez''s message of Wed Oct 20 16:17:11 +0200 2010:> The reason because I need to delete some emails is that I read emails > in several computers. In each computer I have sup installed and I > synchronize the maildir with other maildirs using a primary imap > server. Thus I like to delete some unimportant emails to reduce the > network traffic.Could I suggest running sup on only one machine under screen, and then ssh''ing in to that machine and attaching the screen from any of the other computers? Sup is not (yet:) designed for syncing back tags and read/delete-flags to a central server. There''s been talk both about sync-back features to update Maildir/IMAP and a specialized sup server for distributing the index, but we''re not there yet. -- Helge
> 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?You can''t do it with maildir, but if you have mbox you should be able to do: sup-sync-back --drop-deleted mbox:/home/name/mail/mbox sup-sync --changed mbox:/home/name/mail/mbox Make sure sup is NOT running when you do this, and obviously put the path to your own mbox there. Also note that currently the git version says that sup-sync-back doesn''t work ... Hamish
> 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?Apparently this hasn''t been mentioned before: There is a ''maildir-sync'' branch in the git repository by Damien Leone which does what you want. It adds a tool ''sup-sync-back-maildir'' for syncing back manually and an option '':sync_back_to_maildir:'' which does the sync automatically. The branch has worked quite well for me so far in normal operation, although I haven''t done extensive testing. How are chances to have the branch merged to master? Alex
Hello, Some news about this, I have been testing the branch for months and months without trouble so I guess it is stable enough, however I still have a todo list to finish and some commits to push. I did not have time to do this yet but I hope I''ll finish soon. However this thread reminds me to add an option to whether delete emails from Maildirs or just mark them as deleted (the T flag) and let another software (such as offlineimap) handle them. Cheers, Excerpts from Alexander Ulrich''s message of Sun Oct 24 12:52:17 +0200 2010:> > 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? > > Apparently this hasn''t been mentioned before: There is a > ''maildir-sync'' branch in the git repository by Damien Leone which does > what you want. It adds a tool ''sup-sync-back-maildir'' for syncing back > manually and an option '':sync_back_to_maildir:'' which does the sync > automatically. > > The branch has worked quite well for me so far in normal operation, > although I haven''t done extensive testing. > > How are chances to have the branch merged to master? > > Alex-- Damien Leone <damien.leone at fensalir.fr> Web: http://dleone.fensalir.fr/ GPG: 0x82EB4DDF -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101024/c864bc5d/attachment.bin>
On Sun, Oct 24, 2010 at 10:11:49PM +0200, Damien Leone wrote:> However this thread reminds me to add an option to whether delete > emails from Maildirs or just mark them as deleted (the T flag) and let > another software (such as offlineimap) handle them.Adding the T flag appears to be the current behavior. Having an option in sup to delete the actual file would be great. How do you delete a mail marked as deleted with offlineimap by the way? I am looking forward to seeing this functionality in master! Matthias
Hello, Excerpts from Matthias Vallentin''s message of mer. d?c. 15 08:57:14 +0100 2010:> Adding the T flag appears to be the current behavior. Having an option > in sup to delete the actual file would be great. How do you delete a > mail marked as deleted with offlineimap by the way?It depends on the configuration, AFAIK by default there is "realdelete = no", see offlineimap documentation for more information. [0]> I am looking forward to seeing this functionality in master!I will try to work on it as soon as my exams are finished (late January). Cheers, [0] : http://www.docunext.com/wiki/Example_OfflineIMAP_configuration_file -- Damien Leone <damien.leone at fensalir.fr> Web: http://dleone.fensalir.fr/ GPG: 0x82EB4DDF
On Wed, Dec 15, 2010 at 12:53:32PM +0100, Damien Leone wrote:> It depends on the configuration, AFAIK by default there is "realdelete > = no", see offlineimap documentation for more information. [0]That does the trick, thanks.> I will try to work on it as soon as my exams are finished (late > January).Sounds great, good luck on your exams! (I just finished mine last week.) Matthias