Comments (7)
Hey!
I think we should make it as easy to use as possible and try to remove any kind of redundancy. Also, we can use only the Gmail style search so we don't have to implement many things. What do you think of something like this?
https://gist.github.com/gabrielengel/201e9661b4f92b8f543d
from ruby-gmail.
@myobie I'm a user/maintaner of gmailgem/gmail (formerly nu7hatch/gmail which was originally forked from this repo.) We'd be very keen to join efforts on the gmailgem fork as our goals are the same, i.e. more usable API, better testing, etc.
from ruby-gmail.
@johnnyshields awesome. I'd like to get some tests started so we can all get it going soon. I've added you as a collaborator.
from ruby-gmail.
@gabrielengel regarding your gist I do have this feedback:
I don't think we need to manage any state, instead we can just return objects from every call. An example of what this would look like from your gist would be:
Gmail.new(username, password) do |gmail|
gmail.in('inbox').count # => 100
gmail.search('is:unread').count # => 60
gmail.search('is:read').count # => 40
gmail.search('before:2010-02-20 after:2010-03-20')
gmail.search('on:2010-04-15')
gmail.search('from:[email protected]')
gmail.search('to:[email protected]')
gmail.search('is:read from:[email protected] "you are a great employee"')
gmail.peek do |peek|
peek.in('Urgent').count
end
end
from ruby-gmail.
@myobie, I've added you to the gmailgem organization. Come over to our side--we have an awesome team and a reliable approach to test the gem on Travis CI with specs now green. Your suggested improvements are most welcome.
from ruby-gmail.
I think it would be useful in the new version to abandon username/password auth and using Gmail's API.
Until you use ruby (and ruby-gmail) on your desktop it's the same but using them on a webapp it drives to
Please log in via your web browser: http://support.google.com/mail/accounts/bin/answer.py?answer=78754 (Failure)
from ruby-gmail.
I'm closing this since it's so old.
from ruby-gmail.
Related Issues (20)
- Special characters in the :gm search option
- Can't send, then receive on the same session.
- Reading a message marks the message as read
- How do I select an email given it's id?
- Uncaught exception: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbuO6
- Open invitation: let's combine efforts at gmailgem/gmail
- How can I retrieve archived messages HOT 1
- No way to tell if I'm logged in
- Support for charset
- Gem is unusable, "Please log in via your web browser" HOT 7
- Google prevents signin HOT 1
- archive doesn't seem to work
- Collect email subject and body
- Sent emails
- Wrong format in to_imap_date method HOT 4
- How do I read the mail content? HOT 1
- How I can disable log message in stderr?
- <Net::IMAP::NoResponseError: Please log in via your web browser
- Managing HOT 1
- Impact on "Insecure apps disable connection to G Suite accounts"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-gmail.