0

Various problems and questions

Hi there,

I'm having a few random problems I hope you can help with.

I've written a desktop application which uses the Mail Web Services API to create a draft message. I then want to launch a web browser and take the user straight to that message so they can edit it. I know the messageId (e.g. 1_3553_AJ7FtEQAAShlTYYBMA3OLUAw4UM) from the result of my web service work.

1. Is there some way to go straight to a draft message just using a URL? There used to be some querystring parameters some years ago for this kind of thing, but I can't find any reference to them any longer in the API.

2. Assuming you can't just do it using a URL, I've started writing a Mail Application. This has the messageId passed to it as a parameter. Next problem: I can pick up the parameter fine in the Beta version of Yahoo! Mail. In the current version though, the data part of the JSON object is empty. Any ideas?

3. Ignoring problem #2, even if I hard code the messageId in my main.html file, a call to openmail.Mail.draft({ 'messageId' : '1_3553_AJ7FtEQAAShlTYYBMA3OLUAw4UM' }); does absolutely nothing anyway and returns no errors! openmail.Mail.compose(); works fine, but it's obviously not what I want to do.

4. Finally, assuming I can get past the problems above, I understand that I can't share the app I'm writing anyway, which probably makes the whole endeavor rather pointless! Surely that's not the case?

Can anybody help with the above questions, or suggest an alternate means of accomplishing my goal? At the moment, it all seems rather more complicated than it should be!

Chris

by
7 Replies
  • One clarification to this: actually number 3 does work on the non-beta version of Mail, just not on the beta version.

    Chris
    0
  • I've now got most things working. With regards to my above questions

    1. Use of querystrings - would still appreciate an answer on this, though I've now got a Mail Application working that does this for me.

    2. Despite the documentation stating that the "click" event view is used for this unless a "url" view is given, you *have* to use a "url" view to get launch parameters in the current version of Mail. In the Beta version, the "click" view also works.

    3. Showing a draft message works fine in the current version of Mail, but does absolutely nothing in the Beta version of mail.

    4. I noticed the "Share" button in the current version of Mail (must have missed it in beta). I sent the share email to my wife's Yahoo! account to see if she could add my Application, but the link just takes her to the Gallery page where my app isn't listed (I'm assuming because it's private). Can somebody at Yahoo! tell me what the next steps need to be to get this listed in the gallery? The Application I've written is designed to work with a new version of Affixa (www.affixa.com), an application that is essentially a MAPI provider for webmail systems. I hope to make the new version available in the next couple of months.

    Thanks for your help!

    Chris
    0
  • QUOTE (Chris @ Mar 20 2011, 09:11 AM) <{POST_SNAPBACK}>
    I've now got most things working. With regards to my above questions

    1. Use of querystrings - would still appreciate an answer on this, though I've now got a Mail Application working that does this for me.

    2. Despite the documentation stating that the "click" event view is used for this unless a "url" view is given, you *have* to use a "url" view to get launch parameters in the current version of Mail. In the Beta version, the "click" view also works.

    3. Showing a draft message works fine in the current version of Mail, but does absolutely nothing in the Beta version of mail.

    4. I noticed the "Share" button in the current version of Mail (must have missed it in beta). I sent the share email to my wife's Yahoo! account to see if she could add my Application, but the link just takes her to the Gallery page where my app isn't listed (I'm assuming because it's private). Can somebody at Yahoo! tell me what the next steps need to be to get this listed in the gallery? The Application I've written is designed to work with a new version of Affixa (www.affixa.com), an application that is essentially a MAPI provider for webmail systems. I hope to make the new version available in the next couple of months.

    Thanks for your help!

    Chris


    Hi Chris,

    1. If you have a message id that is fairly fresh (i.e. you fetched it from the Yahoo! Mail Web Service and it hasn't since been moved/deleted/flagged by user activity),
    this URL should open the message directly in Yahoo! Mail:

    mrd.mail.yahoo.com/msg?APPID_HERE

    Let us know if this works out alright for you.

    2. Yes, we're only focused on making this work in the beta as that will replace the current version of Mail in due time.

    3. I will file a bug for this. Sounds broken in the beta. For Yahoo's researching this, the bug number is 4417244.

    4. It will frankly be way easier if you can do 1) than to get into the gallery. We are still working on documenting the process for this, but it isn't light and
    generally only attractive if you have a broad audience. We've been brainstorming non-gallery ways of sharing, but have security concerns there. If
    you have a partner agreement, it _is_ possible to use ymdt to share your alpha app with a limited set of users. If you post your appid here, I will follow
    up with an email to your developer account to get you in touch with the right folks.

    -j
    0
  • Hi there,

    Thanks for the help, really appreciated!

    QUOTE (joecomotion @ Mar 21 2011, 04:40 PM) <{POST_SNAPBACK}>
    1. If you have a message id that is fairly fresh (i.e. you fetched it from the Yahoo! Mail Web Service and it hasn't since been moved/deleted/flagged by user activity),
    this URL should open the message directly in Yahoo! Mail:

    mrd.mail.yahoo.com/msg?APPID_HERE

    Let us know if this works out alright for you.


    This seems ideal, though I can't seem to get it to work, unfortunately. Just to check, is it definitely the APPID I put in there? If so, where to I put the message ID? I've tried the following as an example:

    http://mrd.mail.yahoo.com/msg?1_7175_AGjFt...kPFwJ0%2BA09b7U

    i.e. using the message ID, but it doesn't do anything (though I can see it says &action=showLetter in the final URL).

    If you could give me a quick example of a link to a draft message, that would be fantastic!

    Really appreciate your help!

    Chris
    0
  • Actually, got a bit further.. this takes me to a message in my inbox:

    mrd.mail.yahoo.com/msg?fid=Inbox&mid=1_1208241_AIPFtEQAAIeqTYed3ABH2gqPCfA

    But this doesn't take me to a draft:

    mrd.mail.yahoo.com/msg?fid=Draft&mid=1_7175_AGjFtEQAAPEHTYkPFwJ0%2BA09b7U

    Any thoughts?

    Chris
    0
  • Hi Chris,

    Yeah, in my original reply, I meant mid, not appid.

    What you show is how I would try to get at a Draft message, too. I've confirmed that it doesn't work, though.

    Let me ask around here and get back to you.

    -j
    0
  • Hi Chris,

    Confirmed that using the mrd URL to get to messages not in the inbox isn't actually supported right now, but the good news is that we are investigating supporting it within a couple of months.

    -j
    0
This forum is locked.

Recent Posts

in Yahoo! Mail Application Platform