RE: Retrieving priority information from messages
- From: Philip Van Hoof <spam pvanhoof be>
- To: Dirk-Jan Binnema nokia com
- Cc: tinymail-devel-list gnome org
- Subject: RE: Retrieving priority information from messages
- Date: Tue, 10 Apr 2007 11:20:56 +0200
On Tue, 2007-04-10 at 12:13 +0300, Dirk-Jan Binnema nokia com wrote:
> >Just set the X-Priority header in the top level MIME part and don't
> >(yet) care to much about those SMTP servers.
> And, I would guess, the X-MS-Priority as well; unfortunately,
> these two priorities with overlapping if not identical semantics
> are both in use. It's not clear which one should be used if
> a message had both, but differed in priority...
The X-Priority. Merging by taking the average of the two sounds a bit
silly to me ;-)
> if exists (X-Priority)
> prio = val (X-Priority)
> else if exists (X-MS-Priority)
> prio = val (X-MS-Priority)
> prio = PRIO_NORMAL
> set_val (X-Priority, prio);
> set val (X-MS-Priority, prio);
> Of course, the "val/set_val" function is a bit different
> for both priorities, but hey, it's pseudocode.
> Would Tinymail not be the place where to put the above logic?
> Every tinymail-using client would probably do something like
Yes, tinymail is the place where to put this logic. Especially the
reading part of it. Right now is the reading part implemented in
For the writing part, I would simply override the "set_flags" of the
TnyHeader implementation for new messages, to write both in the TnyMsg
instance's top level MIME part (or replace or remove in case of removing
or changing the flag).
] [Thread Prev