Subject: Re: [sup-talk] deleting files from source

From: Damien Leone <[email-masked]>
Date: Wed, 15 Dec 2010 12:53:32 +0100

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 <[email-masked]>

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

---

From: Daniel Hernández <[email-masked]>
Date: Wed, 20 Oct 2010 11:17:11 -0300

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 <[email-masked]>  
> 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

---

From: Pedro F. «pancho» Horrillo <[email-masked]>
Date: Tue, 19 Oct 2010 14:18:17 +0200

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 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
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Daniel Hernández <[email-masked]>
Date: Tue, 19 Oct 2010 08:31:23 -0300

Daniel

---

From: Matthias Vallentin <[email-masked]>
Date: Tue, 14 Dec 2010 23:57:14 -0800

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.

   Matthias

---

From: Damien Leone <[email-masked]>
Date: Sun, 24 Oct 2010 22:11:49 +0200

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.

Cheers,

Excerpts from Alexander Ulrich's message of Sun Oct 24 12:52:17 +0200 2010:
> 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

---

From: "Chris Parsons" <[email-masked]>
Date: Wed, 20 Oct 2010 06:26:13 +0100

---

From: Hamish D <[email-masked]>
Date: Thu, 21 Oct 2010 19:11:12 +0100

> 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

---

From: Alexander Ulrich <[email-masked]>
Date: Sun, 24 Oct 2010 12:52:17 +0200

Alex

---

From: Helge Titlestad <[email-masked]>
Date: Wed, 20 Oct 2010 17:11:59 +0200

> server. Thus I like to delete some unimportant emails to reduce the

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

---

From: Matthias Vallentin <[email-masked]>
Date: Fri, 17 Dec 2010 20:09:41 -0800

> = 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

Sounds great, good luck on your exams! (I just finished mine last week.)

   Matthias

---

From: Daniel Hernández <[email-masked]>
Date: Mon, 18 Oct 2010 22:52:54 -0300

Hello,

Thanks,
Daniel