Skip to content

Commit

Permalink
Fix re-fetching of message body for every attribute request
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffyoungs committed Dec 1, 2010
1 parent 73c0543 commit 96e4f6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/gmail/message.rb
Expand Up @@ -145,6 +145,7 @@ def save_attachments_to(path=nil)

# Parsed MIME message object
def message
return @message if @message
require 'mail'
_body = @gmail.in_mailbox(@mailbox) { @gmail.imap.uid_fetch(uid, "RFC822")[0].attr["RFC822"] }
@message ||= Mail.new(_body)
Expand Down

0 comments on commit 96e4f6c

Please sign in to comment.