Skip to content

Instantly share code, notes, and snippets.

@johnnygoodman
Created March 13, 2013 16:58
Show Gist options
  • Save johnnygoodman/5154077 to your computer and use it in GitHub Desktop.
Save johnnygoodman/5154077 to your computer and use it in GitHub Desktop.
1.9.3p194 :009 > message.api.request(:get, message.body_parts.resource_url)
=> [{"type"=>"text/plain", "charset"=>"utf-8", "content"=>"X applied to the Y position posted on Indeed. You will find their information below and resume attached (if one was provided).\r\n\r\nhttps://employers.indeed.com/m#candidates/view?id=Z\r\n\r\nName: X\r\nEmail:Y\r\nNote: the attached resume has not been scanned for viruses, be careful when opening attachments.", "body_section"=>"1.1"}, {"type"=>"text/html", "charset"=>"utf-8", "content"=>"<!doctype html><html><head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\"></head><body style=\"line-height:16px;font-family:Arial,sans-serif\"><div style=\"width:500px;margin:0 0 10px 0;font-size:12px;padding-left:10px\"><div><img src=\"https://ads.indeed.com/images/email/indeed-logo-small.png\"/></div><div style=\"margin:10px;\"><div style=\"color:#666666\">You've received a new application for the job:</div><div style=\"margin-top:3px;font-weight:bold;\">X - Houston, TX</div><div style=\"margin:10px;\"><div style=\"width:300px; float:left;\"><div style=\"font-weight:bold;font-size:20px;\">X</div><div style=\"margin-top:3px;\"><a href=\"mailto:X\" target=\"_blank\">Y</a></div><div style=\"margin-top:3px;\">713-539-9980</div><div style=\"margin-top:3px;\">X.doc&nbsp;<span style=\"color:#666666\">(attached)</span></div></div><div style=\"max-width:175px; float:right;\"><div style=\"font-weight:bold;\">Set Candidate Status:</div></div></body></html>", "body_section"=>"1.2"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment