Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/net/pop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ def reset
mails().each do |m|
m.instance_eval {
@deleted = false
@uid_fetched = false if @uid.nil?
}
end
end
Expand Down Expand Up @@ -747,6 +748,7 @@ def initialize(num, len, pop, cmd) #:nodoc:
@command = cmd
@deleted = false
@uid = nil
@uid_fetched = false
end

# The sequence number of the message on the server.
Expand Down Expand Up @@ -872,7 +874,7 @@ def deleted?
#
# This method raises a POPError if an error occurs.
def unique_id
return @uid if @uid
return @uid if @uid_fetched
@pop.set_all_uids
@uid
end
Expand All @@ -881,6 +883,7 @@ def unique_id

def uid=(uid) #:nodoc: internal use only
@uid = uid
@uid_fetched = true
end

end # class POPMail
Expand Down