Hi Matt,
I'm glad that explanation helped. I haven't written very much about the
architecture of Hep, so I was glad you asked a question that gave me
reason to do so.
> Your explanation also helps me to understand better the issue with the
> folder tree rebuilding and why hep's IMAP doesn't support flagging
> messages. Messages can't be modified if they aren't stored anywhere
> on hep's server. I think I was confused initially because, to me,
> IMAP implies that I am managing resources dedicated to me on the
> server. I have now reoriented my view of hep toward a more "universal
> translator" angle. I'll have to look into yarn a bit to further
> refine that understanding.
Actually, flagging messages can and will be supported. For each
resource you're connected to, Yarn keeps a local file containing
metadata - which messages you've seen, the time you first recieved each
message, etc. This is how Hep's IMAP server keeps track of whether
you've seen a message or not. It should only take a couple lines of
code to support saving the 'flagged' attribute, but I just haven't had
the time to do it yet.
> By all means, make sure you take the time to do things right. It is
> your duty to guard the integrity of hep's architecture, not to bow to
> the whims of some crackpot user like myself. If there is no place for
> this sort of statefulness in your vision of hep, you should also make
> that call, too.
Wow, you really are an experienced developer! :-) I appreciate that,
but in this case I think your instincts as a user are correct. There
should be a way to keep messages around even when the disappear from the
source. I've been thinking about the best way to make this happen, and
I'll let you know when I have a plan that I'm happy with.
> Am I right in thinking that this also implies that if I'm not
> "checking mail" via hep regularly and an RSS server such as Slashdot
> "overwrites" the older messages in their feed I could be missing
> messages? I guess the way to get the behavior of other RSS readers,
> in this case, would be to ensure my mail reader is set to retrieve via
> POP every hour.
That's right.
> I'll have to experiment a bit to see if I can get the behavior I want
> without hacking hep. One thought is to configure an IMAP server of my
> own (which I have been considering anyway) and use some scripts to
> call up hep periodically to populate the server's folders. One
> advantage to this approach is that I could use an industrial-strength
> IMAP implementation and my regular e-mail could sit in folders right
> alongside RSS messages delivered by hep.
While I certainly don't want to _require_ you to do stuff like that,
_allowing_ you to is what Hep is all about. The data isn't locked in to
any one protocol, so you're free to copy it into other systems, convert
it to different formats, etc.
Abe