Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] deleting files from source
@ 2010-10-19  1:52 Daniel Hernández
  2010-10-19 11:31 ` Daniel Hernández
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Daniel Hernández @ 2010-10-19  1:52 UTC (permalink / raw)
  To: sup talk

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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-19  1:52 [sup-talk] deleting files from source 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
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Daniel Hernández @ 2010-10-19 11:31 UTC (permalink / raw)
  To: sup talk

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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-19 11:31 ` Daniel Hernández
@ 2010-10-19 12:18   ` Pedro F. «pancho» Horrillo
  0 siblings, 0 replies; 12+ messages in thread
From: Pedro F. «pancho» Horrillo @ 2010-10-19 12:18 UTC (permalink / raw)
  To: sup-talk

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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-19  1:52 [sup-talk] deleting files from source Daniel Hernández
  2010-10-19 11:31 ` Daniel Hernández
@ 2010-10-20  5:26 ` Chris Parsons
  2010-10-20 14:17   ` Daniel Hernández
  2010-10-21 18:11 ` Hamish D
  2010-10-24 10:52 ` Alexander Ulrich
  3 siblings, 1 reply; 12+ messages in thread
From: Chris Parsons @ 2010-10-20  5:26 UTC (permalink / raw)
  To: sup-talk

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-20  5:26 ` Chris Parsons
@ 2010-10-20 14:17   ` Daniel Hernández
  2010-10-20 15:11     ` Helge Titlestad
  0 siblings, 1 reply; 12+ messages in thread
From: Daniel Hernández @ 2010-10-20 14:17 UTC (permalink / raw)
  To: sup-talk

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@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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-20 14:17   ` Daniel Hernández
@ 2010-10-20 15:11     ` Helge Titlestad
  0 siblings, 0 replies; 12+ messages in thread
From: Helge Titlestad @ 2010-10-20 15:11 UTC (permalink / raw)
  To: sup-talk

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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-19  1:52 [sup-talk] deleting files from source Daniel Hernández
  2010-10-19 11:31 ` Daniel Hernández
  2010-10-20  5:26 ` Chris Parsons
@ 2010-10-21 18:11 ` Hamish D
  2010-10-24 10:52 ` Alexander Ulrich
  3 siblings, 0 replies; 12+ messages in thread
From: Hamish D @ 2010-10-21 18:11 UTC (permalink / raw)
  To: Daniel Hernández; +Cc: sup talk

> 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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-19  1:52 [sup-talk] deleting files from source Daniel Hernández
                   ` (2 preceding siblings ...)
  2010-10-21 18:11 ` Hamish D
@ 2010-10-24 10:52 ` Alexander Ulrich
  2010-10-24 20:11   ` Damien Leone
  3 siblings, 1 reply; 12+ messages in thread
From: Alexander Ulrich @ 2010-10-24 10:52 UTC (permalink / raw)
  To: sup-talk

> 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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-24 10:52 ` Alexander Ulrich
@ 2010-10-24 20:11   ` Damien Leone
  2010-12-15  7:57     ` Matthias Vallentin
  0 siblings, 1 reply; 12+ messages in thread
From: Damien Leone @ 2010-10-24 20:11 UTC (permalink / raw)
  To: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 1434 bytes --]

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@fensalir.fr>

Web: http://dleone.fensalir.fr/
GPG: 0x82EB4DDF

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-10-24 20:11   ` Damien Leone
@ 2010-12-15  7:57     ` Matthias Vallentin
  2010-12-15 11:53       ` Damien Leone
  0 siblings, 1 reply; 12+ messages in thread
From: Matthias Vallentin @ 2010-12-15  7:57 UTC (permalink / raw)
  To: Damien Leone; +Cc: sup-talk

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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-12-15  7:57     ` Matthias Vallentin
@ 2010-12-15 11:53       ` Damien Leone
  2010-12-18  4:09         ` Matthias Vallentin
  0 siblings, 1 reply; 12+ messages in thread
From: Damien Leone @ 2010-12-15 11:53 UTC (permalink / raw)
  To: sup-talk

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@fensalir.fr>

Web: http://dleone.fensalir.fr/
GPG: 0x82EB4DDF
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [sup-talk] deleting files from source
  2010-12-15 11:53       ` Damien Leone
@ 2010-12-18  4:09         ` Matthias Vallentin
  0 siblings, 0 replies; 12+ messages in thread
From: Matthias Vallentin @ 2010-12-18  4:09 UTC (permalink / raw)
  To: Damien Leone; +Cc: sup-talk

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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-12-18  4:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-19  1:52 [sup-talk] deleting files from source 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox