Menu

How to get the Attachment ID??

Help
2004-10-17
2013-04-03
  • mingkit_Chung

    mingkit_Chung - 2004-10-17

    I have Read about the Connector Class. I would like to use getAttachmentAsStream method but how can i get the Attachment ID for this method?
    Thx

     
    • SiuYing

      SiuYing - 2004-10-18

      Hi,

      You need a conversation entry which contains attachment details. It can be retrived using request(GM_REQ_CONVERSATION, conv_id, "0")

      An example conversation entry is: [GMConversationEntry: { index: 1, id: feede5cea8203bb, sender:
      Francis Chong, sender_email: siuying.net@gmail.com, recv: me, recv_email: ?? <si
      u.ying@gmail.com>, reply_email: Francis Chong <siuying.net@gmail.com>, dt_easy:
      Sep 11, dt: Sat, 11 Sep 2004 22:29:14 +0800, subj: Test attach text files, snipp
      et: , body:  Another test, attaching multiple text file<br><br>, attachment: [{t
      ype=text/x-java, size=729, filename=parsepacketexception.java, id=0.1}, {type=te
      xt/x-java, size=3533, filename=utilities.java, id=0.2}]} ],  labels: []}

      which contains attachment information: {t
      ype=text/x-java, size=729, filename=parsepacketexception.java, id=0.1}

      The 0.1 is the id of the attachment in that message.

      Good luck!

       

Log in to post a comment.