mlist 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +8 -0
- data/VERSION.yml +1 -1
- data/lib/mlist/email_server/imap.rb +2 -1
- data/spec/integration/imap_email_server_spec.rb +2 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
*0.1.14 [Bug Fix] (2010-04-02)
|
2
|
+
|
3
|
+
* Better to ask for not deleted messages, and expunging after processing. [aiwilliams]
|
4
|
+
|
5
|
+
*0.1.13 [Enhancement] (2010-04-02)
|
6
|
+
|
7
|
+
* Added an IMAP server for reading multiple folders. [aiwilliams]
|
8
|
+
|
1
9
|
*0.1.12 [Enhancement] (2010-03-26)
|
2
10
|
|
3
11
|
* Added footers to html parts of email. [aiwilliams]
|
data/VERSION.yml
CHANGED
@@ -43,10 +43,11 @@ module MList
|
|
43
43
|
|
44
44
|
def process_folder(folder)
|
45
45
|
@imap.select(folder)
|
46
|
-
@imap.search(['
|
46
|
+
@imap.search(['NOT','DELETED']).each do |message_id|
|
47
47
|
process_message_id(message_id)
|
48
48
|
archive_message_id(message_id)
|
49
49
|
end
|
50
|
+
@imap.expunge
|
50
51
|
end
|
51
52
|
|
52
53
|
def process_message_id(id)
|
@@ -43,7 +43,8 @@ describe MList::EmailServer::Imap, 'processing' do
|
|
43
43
|
it 'should examine the specified folder and process all the messages' do
|
44
44
|
message_ids = [1,2]
|
45
45
|
mock(@imap_server).select('folder')
|
46
|
-
mock(@imap_server).search(['
|
46
|
+
mock(@imap_server).search(['NOT','DELETED']) { message_ids }
|
47
|
+
mock(@imap_server).expunge
|
47
48
|
mock(@imap).process_message_id(1)
|
48
49
|
mock(@imap).archive_message_id(1)
|
49
50
|
mock(@imap).process_message_id(2)
|