Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: "Edward Z. Yang" <ezyang@MIT.EDU>
To: Damien Leone <damien.leone@fensalir.fr>
Cc: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] Maildir synchronizing other labels
Date: Tue, 21 Aug 2012 10:35:45 -0400	[thread overview]
Message-ID: <1345559230-sup-5105@javelin> (raw)

I think it would be nice if we at least support the :inbox label,
so that we can keep our inboxes tidy and our OfflineIMAP sync
times down.

Proposed implementation strategy:

    - Define a label/source mapping, as well as a default source for
      unrecognized labels and an ordering on labels if there is
      a conflict.  (Each Maildir folder is its own source.)

    - Implement moving messages between Maildir sources in Sup.
      Probably the easiest way is to do this:

        1. Copy message form old Maildir to new Maildir
        2. Add new Maildir copy to index (with all other tags
           and metadata added on)
        3. Delete old Maildir copy from index

      OfflineIMAP will then DTRT as long as SEARCH is supported,
      I think.

    - Hook in this behavior on the right places (label change,
      after message add)

    - Implement a script to go through old mail and move it.

Edward
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


             reply	other threads:[~2012-08-21 14:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21 14:35 Edward Z. Yang [this message]
2012-08-22  5:45 ` [sup-devel] [PATCH] Implement moving message between Maildir sources based on label Edward Z. Yang
2012-08-22  5:54   ` Edward Z. Yang
2012-08-22 20:09     ` Edward Z. Yang
2012-08-23 14:40       ` Edward Z. Yang
2012-08-23 14:52         ` Alvaro Herrera
2012-08-23 15:28           ` Edward Z. Yang
2012-08-23 18:20           ` Edward Z. Yang

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=1345559230-sup-5105@javelin \
    --to=ezyang@mit.edu \
    --cc=damien.leone@fensalir.fr \
    --cc=sup-devel@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