Project

email-spy

0.0
No release in over 3 years
Low commit activity in last 3 years
Retrieves contact list of email
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.11.0

Runtime

~> 1.1.5
~> 2.2.5
~> 2.5.1
~> 1.6.0
 Project Readme

email-spy

Usage

contacts = EmailSpy.fetch(account, password, emailtype)
contacts.each do |contact|
  puts "name: #{contact.name}, email: #{contact.email}"
end

Current Supported Email Type

  • gmail
  • hotmail
  • 126
  • 163
  • yahoo

Encoding

我们尚未对联系人姓名编码进行什么处理,应为我们觉得这会使Email Spy不够纯粹:它只返回web server响应的内容。也许之后会支持?:alien:

我们推荐 rCharDet19(https://github.com/oleander/rchardet) 来帮助你解决编码的问题:

EmailSpy.fetch(account,password,emailtype).map do |c| 
 c.name.encode('utf-8',CharDet.detect(c.name).encoding)
end

Change Log

  • 0.0.3 first release
  • 0.0.4 支持163