Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

optional param

  • Loading branch information...
commit 3041b387b12536e8bddbf88a9c5216b49074bca4 1 parent 01d231c
@chrisduesing authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/gmail/mailbox.rb
  2. +1 −1  lib/gmail/message.rb
View
2  lib/gmail/mailbox.rb
@@ -24,7 +24,7 @@ def to_s
end
def all
- @gmail.imap.fetch('1:100 FULL').collect do |response| ##{@gmail.uid_next}
+ @gmail.imap.fetch('1:100 FULL').collect do |response| # #{@gmail.uid_next}
uid = response.attr['UID']
body = response.attr['BODY']
messages[uid] ||= Message.new(@gmail, self, uid, body)
View
2  lib/gmail/message.rb
@@ -1,6 +1,6 @@
module GmailBase
class Message
- def initialize(gmail, mailbox, uid, body)
+ def initialize(gmail, mailbox, uid, body=nil)
@gmail = gmail
@mailbox = mailbox
@uid = uid
Please sign in to comment.
Something went wrong with that request. Please try again.