title: Accessing Gmail account from Google App Engine
body: <p>I built an IMAP client using this library:</p>
  
  <p>Gmail IMAP and SMTP using OAuth - Libraries and Samples
  <a href="http://code.google.com/apis/gmail/oauth/code.html" rel="nofollow">http://code.google.com/apis/gmail/oauth/code.html</a></p>
  
  <p>I need to <strong>search all the emails in the Inbox and return only those emails matching with my "subject" and which are sent in last 24hrs</strong>. Once i have that email i want to read the body and do some processing. I was able to do all of this using above library but when i deploy this code on GAE it fails with with "Security violation" as my code is trying to set some of the following system properties:</p>
  
  <pre><code>props.put("mail.imaps.sasl.enable", "true");
  props.put("mail.imaps.sasl.mechanisms", "XOAUTH");
  props.put(XoauthSaslClientFactory.OAUTH_TOKEN_PROP, oauthToken);
  </code></pre>
  
  <p>What are my other alternatives to achieve this task? Few people were talking about RSS feed. Can we achieve what i am looking for using this technique? Any inputs will be appreciated.</p>
  
  <p>Thank You.</p>