summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Nussbaum <lucas@xanadu.blop.info>2009-09-04 07:54:51 +0200
committerLucas Nussbaum <lucas@xanadu.blop.info>2009-09-04 07:54:51 +0200
commitec808b0f4bfd213b7b81996d8c46c1d98bbafa7c (patch)
treeadc9ef825955a7a88d6e990f03b1f281294a0892
parent3d25c0bd2772a8bbbdf073f8d395271b162fd168 (diff)
downloadfeed2imap-ec808b0f4bfd213b7b81996d8c46c1d98bbafa7c.tar.gz
feed2imap-ec808b0f4bfd213b7b81996d8c46c1d98bbafa7c.tar.bz2
feed2imap-ec808b0f4bfd213b7b81996d8c46c1d98bbafa7c.zip
fix to use Message-Id instead of X-CacheIndex
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/maildir.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/feed2imap/maildir.rb b/lib/feed2imap/maildir.rb
index b91fa64..a18e5aa 100644
--- a/lib/feed2imap/maildir.rb
+++ b/lib/feed2imap/maildir.rb
@@ -37,7 +37,6 @@ class MaildirAccount
mail_files = find_mails(dir, idx)
flags = nil
if mail_files.length > 0
- puts "UPDATE: #{mail_files}"
# get the info from the first result and delete everything
info = maildir_file_info(mail_files[0])
mail_files.each { |f| File.delete(File.join(dir, f)) }
@@ -138,10 +137,8 @@ class MaildirAccount
Dir[File.join(subdir, '*')].each do |fn|
File.open(fn) do |f|
mail = RMail::Parser.read(f)
- cache_index = mail.header['X-CacheIndex']
- next if not (cache_index and
- cache_index =~ /^-[0-9]+-/ and
- cache_index[1..-2].to_i == idx)
+ cache_index = mail.header['Message-Id']
+ next if not (cache_index and cache_index == idx)
dir_paths.push(File.join(d, File.basename(fn)))
end
end
tato/db/sql.py?id=dde6c85455fdcfd933c18c65a2c038c14093f525&follow=1'>Better debug messages when updating database formatsRené 'Necoro' Neumann1-0/+2 2010-03-14Show a dialog if no email is givenRené 'Necoro' Neumann5-44/+87 2010-03-14Send more files for bug mailsRené 'Necoro' Neumann4-118/+194 2010-03-14Rewrote Session as to use the normal ConfigParser and not our own oneRené 'Necoro' Neumann2-68/+50 2010-03-07Fix setup.pyRené 'Necoro' Neumann1-1/+1 2010-03-06Read translators from fileRené 'Necoro' Neumann4-9/+8 2010-03-06Updated NEWSRené 'Necoro' Neumann1-0/+3 2010-03-06Improved setup.py; also install the better-icon imageRené 'Necoro' Neumann1-8/+21 2010-03-06Only show best_icon, if the package can be installed w/o unmaskingRené 'Necoro' Neumann1-2/+2 2010-03-06Improved better_icon.René 'Necoro' Neumann1-78/+38 2010-03-06Show icon to signal the best package versionRené 'Necoro' Neumann1-1/+15 2010-03-06improved image handlingRené 'Necoro' Neumann2-7/+3 2010-03-05Use 'clear' instead of 'delete' for the search lineRené 'Necoro' Neumann1-1/+1 2010-03-05Corrected typoRené 'Necoro' Neumann6-9/+9 2010-03-05Updated german translationRené 'Necoro' Neumann2-538/+528 2010-03-05Reorderd parts of the menuRené 'Necoro' Neumann1-3/+3 2010-03-05Use existing translation for search typesRené 'Necoro' Neumann1-1/+1 2010-03-05Fixed bug in preference windowRené 'Necoro' Neumann1-2/+0 2010-03-05Fixed copyrightRené 'Necoro' Neumann66-66/+66 2010-03-05Handle portage warnings by our logging systemRené 'Necoro' Neumann1-0/+10 2010-03-05Ignore swap files in gitRené 'Necoro' Neumann1-0/+1 2010-03-05Clean up one 'deprecated' message from portageRené 'Necoro' Neumann1-1/+1 2010-03-05Save current search type in sessionRené 'Necoro' Neumann2-6/+17 2010-03-05Added combo box for selecting the search type to main windowRené 'Necoro' Neumann3-5/+43 2010-03-05Previous commits done more correct :PRené 'Necoro' Neumann2-6/+6 2010-03-05Fix commit 7449bc5fb8fRené 'Necoro' Neumann1-3/+3 2010-03-05Ignore swap files in gitRené 'Necoro' Neumann1-0/+1 2010-03-05Added some textual descriptionsRené 'Necoro' Neumann2-1/+8 2010-03-05Add description support to the databasesRené 'Necoro' Neumann4-8/+55 2010-03-04Also parse descriptions from eixRené 'Necoro' Neumann1-2/+2 2009-11-08Added Italian translation. Thanks to Ponsi.René 'Necoro' Neumann3-0/+1166 2009-11-05Remove the 'geneticize_list' stuff. It is so ancient, it stinks :PRené 'Necoro' Neumann1-19/+6