mlist 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 13
2
+ :patch: 14
3
3
  :major: 0
4
4
  :build:
5
5
  :minor: 1
@@ -43,10 +43,11 @@ module MList
43
43
 
44
44
  def process_folder(folder)
45
45
  @imap.select(folder)
46
- @imap.search(['ALL']).each do |message_id|
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(['ALL']) { message_ids }
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 13
9
- version: 0.1.13
8
+ - 14
9
+ version: 0.1.14
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Williams