summaryrefslogtreecommitdiff
path: root/lib/feed2imap/maildir.rb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace RMail by Mail. This also reduces the handling we have to do ourselves.René 'Necoro' Neumann2016-03-251-9/+10
|
* Fix cleanup of maildirsAntonio Terceiro2014-10-071-1/+1
| | | | Thanks to Sylvain L. Sauvage for the bug report
* Fix MaildirAccount class; add testsAntonio Terceiro2013-08-131-5/+19
|
* Merge remote-tracking branch 'chimrod/master'Lucas Nussbaum2012-04-261-1/+1
|\
| * Remove dev logChimrod2011-08-311-1/+0
| |
| * Corrected maildir_file_info methodChimrod2011-08-311-1/+2
| |
* | Use global sequence numberLucas Nussbaum2012-04-261-6/+4
|/ | | | | Using a per feed sequence number made it possible to have duplicate entries when several feeds were pointing to the same Maildir folder.
* Also add reupload_if_updated for MaildirsLucas Nussbaum2010-11-301-1/+4
|
* Patch to use feed item pubDate in Maildir file namesBernie Maier2010-07-051-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi! I've just subscribed to the list, having downloaded feed2imap a few days ago. Since I want to just write RSS feeds to a local Maildir, this looked like just what I needed. Unfortunately, the release 1.0 version seems to randomise the order of the feed items when doing the first fetch for a new feed. Looking at maildir.rb, there is a "TODO: handle `date'" comment and it looks like the code is just generating maildir filenames using the timestamp at the time the items are being written into the maildir. Since all the initial items are written at the same time, and the maildir file name has a random element, this loses the original ordering from the mail feed. The solution is to use the timestamp corresponding to the pubDate in the feed item as the initial component of the maildir file name. Also, instead of using a random integer to force uniqueness in the second component of the file name, I think it is better to use a sequence number for each feed item, which will still be unique for the feed and also preserve item order. My patch follows (it's the first piece of Ruby code I've ever written / modified)... Cheers, Bernie
* fix to use Message-Id instead of X-CacheIndexLucas Nussbaum2009-09-041-5/+2
|
* Add lib/feed2imap/maildir.rbLucas Nussbaum2009-09-031-0/+173
Apparently git am forgot to add it.