
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Implements Gmail OAuth access methods for Net::IMAP and Net::SMTP
Fully working examples (including fetching the access_token) for smtp and imap are in examples/
require 'gmail-oauth'
imap = Net::IMAP.new('imap.gmail.com',993,true)
# For 3legged oauth provide an OAuth::AcessToken
imap.authenticate('XOAUTH', "example@gmail.com", :access_token => access_token)
# For 2legged oauth just provide the OAuth::Consumer
#imap.authenticate('XOAUTH', "example@gmail.com", :consumer => consumer)
imap.list("*","*").each do |folder|
puts folder.name
end
require 'gmail-oauth'
raw_email = generate_email()
smtp = Net::SMTP.new('smtp.gmail.com')
smtp.enable_starttls
smtp.start('gmail.com', "example@gmail.com", {:access_token => access_token}, :xoauth)
smtp.send_message raw_email, "example@gmail.com", "destination@gmail.com"
smtp.finish
Copyright (c) 2010 Bob Potter. See LICENSE for details.
FAQs
Unknown package
We found that gmail-oauth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.