From: dtk <d.t.k@gmx.de>
To: Patrick Totzke <patricktotzke@googlemail.com>
Cc: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] multiple accounts
Date: Wed, 11 May 2011 17:08:48 +0200 [thread overview]
Message-ID: <1305126047-sup-8239@minibox> (raw)
In-Reply-To: <1305109172-sup-2288@minibox>
Excerpts from d.t.k's message of Mi Mai 11 12:41:14 +0200 2011:
> Excerpts from Patrick Totzke's message of Mi Mai 11 11:41:44 +0200 2011:
> > I agree: a single send-sink seems totally unnatural.
> > In fact, we have the same problem with drafts.
> yeah, actually I can think of some more situations in which I would wish for
> account specific sources: I'd love to add a :spam_source (e.g. 'Junk') and a :ham_source (e.g. INBOX) where mails
> are moved when the 'spam' label is set/removed, so that operation is mapped onto
> folders (I use a server side spamassassin to automagically learn from specified
> folders)
>
> > I recently mentioned both shortcomings on sup-devel
> > (http://rubyforge.org/pipermail/sup-devel/2011-May/001095.html).
> > As you say: a quick glance at the code confirms that one can only
> > specify one send-sink, as well as draft-sink.
> > However, there is some sort of "DraftManager" object. I guess one can
> > play with that..
> actually, as a dirty hack it shouldn't be too hard to do: message objects know
> about their sources. Now we could reference the account a source belongs to in
> every source in addition to fields like labels, usual, archived, etc. Et voila.
> From the related account we could then get any required sink: draft, sent, spam,
> ham, ...
uah, what was I thinking? Actually, for the first two cases (draft, sent), it
should be /way/ easier. There already /is/ a mechanism for correllating those
messages to an account. I think it is acceptable to assume that sent mails as
well as drafts have the from: header (which is most probably where the acct
correllation hooks in) set (this may not be true for the spam/ham scenario). So
since there is a mechanism to get the account to such a mail, all we would need
to do is to provide account objects with a :sent_source and a :draft_source of
type location. Case solved.
Now that's gonna be easy ;)
dtk
PS depending on the direction this discussion is taking, I wonder whether I
should subscribe to and include sup-devel :|
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2011-05-11 15:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-10 20:17 dtk
2011-05-10 21:36 ` Wirt Wolff
2011-05-10 22:52 ` dtk
2011-05-10 23:23 ` Matthieu Rakotojaona
2011-05-11 0:16 ` dtk
2011-05-11 9:41 ` Patrick Totzke
2011-05-11 10:41 ` d.t.k
2011-05-11 15:08 ` dtk [this message]
2011-05-11 12:10 ` Ruthard Baudach
2011-05-11 13:20 ` Patrick Totzke
2011-05-11 13:50 ` dtk
-- strict thread matches above, loose matches on Subject: below --
2007-11-29 6:52 [sup-talk] Multiple accounts Alexander Panek
2007-12-01 11:33 ` Magnus Therning
2007-12-08 22:03 ` William Morgan
2007-05-23 8:49 [sup-talk] multiple accounts Brian
2007-05-28 3:15 ` William Morgan
2007-06-08 23:43 ` 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=1305126047-sup-8239@minibox \
--to=d.t.k@gmx.de \
--cc=patricktotzke@googlemail.com \
--cc=sup-talk@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