module GmailOauth
Net::IMAP raises an exception when fetching attributes related to Gmail IMAP extended attributes. Based on the patch by github.com/OXOS github.com/OXOS/gmail-oauth-thread-stats/blob/master/gmail_imap_extensions_compatibility.rb
Constants
- VERSION
Public Class Methods
authenticate(email, access_token)
click to toggle source
# File lib/gmail_oauth.rb, line 14 def self.authenticate(email, access_token) imap_client = Net::IMAP.new('imap.gmail.com', 993, usessl=true, certs=nil, verify=false) client = Client.new(imap_client, email, access_token) client.connect client end