Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] More maildir
Date: Thu, 13 Sep 2007 20:42:15 -0700	[thread overview]
Message-ID: <1189740804-sup-800@south> (raw)
In-Reply-To: <20070913101519.GA22606@die.therning.org>

Excerpts from Magnus Therning's message of Thu Sep 13 03:15:19 -0700 2007:
> I've attached a patch that adds methods that'll make it easier for sup
> to play nice with other MUAs when using maildir for storage.

Applied! I merged in the several patches you sent into one revision. "svn
diff -r572:573" should give it to you.

I no longer use Maildir so it's up to you to test it. :)

>  - What's my Ruby like?  (I hadn't even looked at Ruby just 2 weeks
>  ago so please tell me if I'm doing strange things.)

It's great. I made one or two minor tweaks but that's it. (For example,
x = y || 3 instead of x = y ? y : 3).

>  - The methods names are maildir-centric, any suggestions for better
>    ones?

Seems fine to me. The only thing that's going to be globally called is
some kind of delete method.

>  - The maildir state (the flags) are related to some sup labels
>    ('trashed' is 'deleted' and '!seen' is 'unread').  Is it important to
>    keep them in sync?  (My thinking is no, at least not automatically.
>    The maildir state could be used when finding new mail during sync to
>    set the initial labels.  It would also be nice if state/labels on
>    known messages would sync--I think "read in either => read" and
>    "trashed in either => trashed" is good enough.)

This is basically right. Sup interacts with sources in two ways: getting
a new message, and during sup-sync-back, and in both places should
synchronize read/unread and deleted/undeleted flags. (Actually
sup-sync-back doesn't even do read/unread for mbox yet.) Other flags are
left alone, except we kindly allow you to delete spam messages as well.

-- 
William <wmorgan-sup at masanjin.net>


  parent reply	other threads:[~2007-09-14  3:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-13 10:15 Magnus Therning
2007-09-13 15:45 ` Magnus Therning
2007-09-13 15:56 ` Magnus Therning
2007-09-14  3:42 ` William Morgan [this message]
2007-09-17 10:55   ` Magnus Therning
2007-09-19 16:02     ` William Morgan

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=1189740804-sup-800@south \
    --to=wmorgan-sup@masanjin.net \
    /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