From: John R. <jo...@no...> - 2011-07-29 15:22:18
|
On 07/29/2011 06:48 AM, David Newcomb wrote: > I have a couple of questions that I would like a bit of help with. > > 1) Is there anything like this or that does this already? I suppose I > should have asked this before I started, but hey! I believe Gianluca has done something similar using the SOAP API, although I don't know if it's publicly available anywhere. > 2) Most of the APIs require a user name and password but when the email > pops out of the email system I infer the user name from the email > address so at that stage there is no password. Is there anyway to get > around this? Assuming that your email server is validating the sender using SPF [1], then I would find you could reasonably make the assumption that any message sent from an email address associated with an account should be legitimate. If a message passes the SPF inspection, then there's no reason to assume that it isn't legitimate; from a technical standpoint, the only reason it wouldn't be legit is if the user's account was hacked, but at that point you can't trust their password in Mantis either. > 3) Is there a call I can make to add a bugnote that handles all the > extras of sending emails to all the other people registered on the issue? I'm not sure about the SOAP API, but the core API via PHP has a function bugnote_add(), and the last parameter determines whether it will automatically send an email, and it defaults to true. > 4) Is there anyway of turning the email bugnote history up-side-down? > When you are reading the bugnote email on a blackbery or mobile device > you have to do _a_lot_ of scrolling before you get to the most recently > added bugnote. This is a per-user setting in your account preferences. You can specify Notes Sort Order to descending, which will also change the order of bugnotes in your email notifications. [1] http://en.wikipedia.org/wiki/Sender_Policy_Framework Cheers -- John Reese noswap.com |