Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unable to get Attachment Content #1

Open
nvijayap opened this Issue · 1 comment

2 participants

@nvijayap

Hello,

I am trying to get hold of the attachment content, but am seeing just these ...

[:attachment_id, :name, :content_type, :content_id]

Here's the code snippet I am using ...

email.each do |m|
  unless m.attributes[:is_read]
    if m.attributes[:has_attachments]
      attachments = []
      m.attributes[:attachments].each do |k,v|
        if v.is_a?(Hash)          # only one attachment
          p "..............................................."
          p k
          p "-----------------------------------------------"
          p v.keys
          p "..............................................."

How do I get the attachment content?

Thanks
Naga Vijay

@mccraigmccraig
Collaborator

hi naga,

i've not been working on this for quite a while, and i don't have an exchange testbed to hand, so i can't help directly

i never had a use for getting attachments while working on rews (i was interested in traffic analysis, which doesn't require any content access), so i don't know whether it works or otherwise : it sounds from your report that some more work might be required to get it working

if you want to have a go, and if you need any help in understanding the code, feel free to message me

:mccraig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.