diff options
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/imap.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/feed2imap/imap.rb b/lib/feed2imap/imap.rb index 63cd733..6840c11 100644 --- a/lib/feed2imap/imap.rb +++ b/lib/feed2imap/imap.rb @@ -102,10 +102,10 @@ class ImapAccount end # update a mail - def updatemail(folder, mail, idx, date = Time::now) + def updatemail(folder, mail, id, date = Time::now) create_folder_if_not_exists(folder) @connection.select(folder) - searchres = @connection.search(['HEADER', 'X-CacheIndex', "-#{idx}-"]) + searchres = @connection.search(['HEADER', 'Message-Id', id]) flags = nil if searchres.length > 0 # we get the flags from the first result and delete everything |