X-Launchpad-Message-Rationale header isn't for the most direct subscription

Bug #702250 reported by Jeremy Kerr
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Since I'm a member of quite a few launchpad teams, I get quite a bit of bug updates emailed to me. To make sure I don't miss out on anything important, I filter notifications about the bugs that I'm subscribed to into a separate mail folder (by looking at the X-Launchpad-Message-Rationale header.

Bugs that I'm directly subscribed to have:

 X-Launchpad-Message-Rationale: Subscriber

whereas bugs that I'm indirectly subscribed to (ie, through a team membership), have:

 X-Launchpad-Message-Rationale: Subscriber @dell-team

In case it helps, I use the following sieve code:

 if header :contains "X-Launchpad-Bug" "" {
  if header :is "X-Launchpad-Message-Rationale" "Subscriber" {
   fileinto "lp.subscribed";
  } else {
   fileinto "lp";
  }
 }

The problem is that the X-Launchpad-Message-Rationale value is not the most specific rationale. If both me *and* dell-team are subscribed to a bug, I get:

 X-Launchpad-Message-Rationale: Subscriber @dell-team

- indicating that I'm getting the mail from my membership to the dell team, rather than from my direct subscription to the bug itself. So, there is no way to filter these messages into my 'important' mailbox.

Is is possible to calculate the *most specific* rationale, and use that instead?

That's not feasible, is it possible to list all of the possible rationales? Something like "Subscriber, Subscriber @dell-team", or even multiple X-L-M-R headers would work.

Revision history for this message
Graham Binns (gmb) wrote :

I think this is a fine idea, and probably wouldn't be all that hard to do. For specificity's sake we should assume that direct subscription > structural subscription > subscription via a duplicate, I think.

Changed in launchpad:
status: New → Triaged
importance: Undecided → Medium
tags: added: story-better-bug-notification
summary: - X-Launchpad-Message-Rationale header isn't specific
+ X-Launchpad-Message-Rationale header isn't for the most direct
+ subscription
Changed in launchpad:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.