Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] labels for updated messages
@ 2008-01-16 17:38 Grant Hollingworth
  2008-01-19 17:18 ` William Morgan
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Hollingworth @ 2008-01-16 17:38 UTC (permalink / raw)


When a message is updated, source labels are not applied to it.

PollManager.do_poll:
  add_messages_from source do |m, offset, entry|
    ## always preserve the labels on disk.
    m.labels = entry[:label].split(/\s+/).map { |x| x.intern } if entry

This means that when I write to a mailing list, the message never gets a list
label applied, even when the message is updated from a source for that list.
The thread will be missing its label unless someone replies to my message.

The code above could merge in the source labels. It seems to me that it would
be uncommon to remove a label only to have it re-added when the message is
updated. It still bugs me to leave that unaddressed, though. We could keep
track of deleted labels, but that seems like a lot of work for an uncommon
situation.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-19 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-16 17:38 [sup-talk] labels for updated messages Grant Hollingworth
2008-01-19 17:18 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox