summaryrefslogtreecommitdiff
path: root/lib/feed2imap (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix usage of filtersAntonio Terceiro2015-05-031-16/+19
| | | | | | | | - avoid accessing $? unless it is actually available - when calling a filter, make sure to release the mutex even if there is an exception during the filter handling. The long term solution is to drastically reorganize concurrency code.
* Handle being given numbers as feed nameAntonio Terceiro2015-01-131-0/+1
| | | | | Force feed names to be strings because they will be handled as strings later.
* 1.2.3 releaseAntonio Terceiro2014-10-071-1/+1
|
* Fix cleanup of maildirsAntonio Terceiro2014-10-071-1/+1
| | | | Thanks to Sylvain L. Sauvage for the bug report
* Release 1.2.2Antonio Terceiro2014-02-051-1/+1
|
* config: fix regression with arrays as targetAntonio Terceiro2014-02-051-1/+1
|
* Fix version number managementAntonio Terceiro2013-08-271-1/+1
| | | | | | Made the Rakefile read the version number from lib/feed2imap/feed2imap.rb instead of having it duplicated in both places.
* Pass feed URL to ruby-feedparserAntonio Terceiro2013-08-271-1/+1
| | | | | | | This will make ruby-feedparser automatically calculate the full URL of feed items whose link is present in the feed with only a path and not hostname. ruby-feedparser will add the hostname where the feed came from.
* Remove embedded copy of Net::IMAPAntonio Terceiro2013-08-252-3602/+1
| | | | This was actually causing problems to read IMAP data back.
* Only remove leading slash from IMAP mailboxesAntonio Terceiro2013-08-251-1/+2
| | | | Otherwise this breaks maildir support
* Revert "Keep the maildir path instact"Antonio Terceiro2013-08-251-0/+1
| | | | This reverts commit 2f0e3542adcf7242f8a3401363752aab4cfa1961.
* Fix MaildirAccount class; add testsAntonio Terceiro2013-08-131-5/+19
|
* Force encoding of data to UTF-8Antonio Terceiro2013-08-131-1/+1
|
* Keep the maildir path instactAntonio Terceiro2013-08-131-1/+0
| | | | So maildir:///path/to/maildir points to /path/to/maildir
* Modernize hancling of encodingsAntonio Terceiro2013-08-132-2/+4
| | | | | Also, instead of converting from utf-8 to iso-8858-1, we do the other way around since we now live in a utf-8 world.
* Merge remote-tracking branch 'chimrod/master'Lucas Nussbaum2012-04-265-24/+30
|\
| * Remove dev logChimrod2011-08-311-1/+0
| |
| * Cleanup dev logChimrod2011-08-311-1/+0
| |
| * Corrected maildir_file_info methodChimrod2011-08-311-1/+2
| |
| * Merged loopChimrod2011-08-311-16/+11
| |
| * Set timeout for feed fetchingChimrod2011-08-303-7/+19
| |
* | 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.
* httpfetcher: accept gzip encoding from serversEric Wong2011-02-181-5/+14
| | | | | | | | | | On supported servers, gzip encoding saves bandwidth and should be enabled on clients by default to avoid excessive bandwidth bills. "deflate" encoding could be enabled, too, but servers and clients tend to handle zlib headers (or lack thereof) inconsistently and it gets messy.
* add "parts" config optionEric Wong2011-02-182-10/+22
| | | | | This allows disabling either HTML or text parts to save bandwidth/disk space on the IMAP server.
* fix typo breaking debug-updated optionLucas Nussbaum2011-01-081-2/+2
|
* Encode the folder in UTF7Lucas Nussbaum2010-12-011-1/+17
| | | | | | | | | | | | Patch from René 'Necoro' Neumann <lists@necoro.eu>, who writes: > I wanted to wrap the folder name in a call to > "Net::IMAP::encode_utf7" > to allow special characters like umlauts in the folder name (see the > attached patch). > > Problem is, that the encode_utf7 (and the decode_utf7 FWIW) uses the > 'String::force_encoding' method, which some googling shows to be in > Ruby1.9 but not 1.8.
* robustify config parsingLucas Nussbaum2010-12-011-11/+22
|
* Also add reupload_if_updated for MaildirsLucas Nussbaum2010-11-301-1/+4
|
* Add a reupload_if_updated option (default: true)Lucas Nussbaum2010-11-303-8/+16
| | | | | | | | | | Following a discussion on feed2imap-devel, add a reupload_if_updated option. When set to false, if an item is updated, but was previously removed from the IMAP server, it is no longer re-uploaded. Also fix some config file parsing bugs for the disable-ssl-verification and include-images options. I should really switch to another way to describe F2I config...
* 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
* prepare releaseLucas Nussbaum2010-04-181-1/+1
|
* provide a way to disable SSL certificate verificationLucas Nussbaum2010-04-182-1/+8
|
* Update rubyimap.rbLucas Nussbaum2010-04-181-5/+38
| | | | Update rubyimap.rb to upstream revision 27336
* Avoid using "acme.com"Lucas Nussbaum2009-12-263-10/+18
| | | | | | | | | | | | | | | | Patch from Guido Berhoerster <guido@berhoerster.name>: Hello, here is a small patch that avoids using the valid(!) domain "acme.com" for generating message ids and email addresses. It adds a new global configuration option "default-email" which will be used in case a feed does provide one, currently feed2imap resorts to "feed2imap@acme.com". If this configuration option is not given it will basically default to <logname>@<hostname> as returned by Etc.getlogin and Socket.gethostname. Yours,
* fix to use Message-Id instead of X-CacheIndexLucas Nussbaum2009-09-041-5/+2
|
* added the forth arg to ConfigFeed::new for maildirLucas Nussbaum2009-09-031-1/+1
|
* Add lib/feed2imap/maildir.rbLucas Nussbaum2009-09-031-0/+173
| | | | Apparently git am forgot to add it.
* Add support for MaildirAndreas Rottmann2009-09-031-1/+7
| | | | | | | | | Allow delivering to local Maildir[0] boxes, with URLs specifying the path, like: maildir:/home/rotty/Maildir/.feeds.foobar [0] http://en.wikipedia.org/wiki/Maildir
* removed patch from haeger ; no longer needed with newer rubyimap.rbLucas Nussbaum2009-07-281-3/+1
|
* Added a patch from Haegar to fix problem with dovecot 1.2.1Lucas Nussbaum2009-07-271-11/+77
|
* Fix buffering problem with filtersLucas Nussbaum2009-06-181-3/+11
|
* prep release, config parsing fixLucas Nussbaum2009-05-152-2/+2
| | | | | | - prepared the release (still need to update the date) - allowed to re-use substrings in the yaml config file (+ doc) thanks to Bernhard Stoeckner for the tip.
* do not put header at top of text entries.Lucas Nussbaum2009-05-061-1/+1
|
* use multipart/related only if there are imagesLucas Nussbaum2009-05-061-8/+13
| | | | ... and only use multipart/alternative in the other case.
* added new version of Net::ImapLucas Nussbaum2009-05-061-246/+371
|
* Use Message-Id instead of X-CacheIndexLucas Nussbaum2009-05-063-7/+10
|
* Only include images once as attachments if the image is duplicated in the ↵Lucas Nussbaum2009-05-061-9/+13
| | | | item (thanks to Joachim Breitner for noticing)
* Fix encoding of From: and To: headersLucas Nussbaum2009-05-061-8/+4
|
* Encode the From: and To: email fields in Base64 encoded UTF-8Maxime Petazzoni2009-05-051-5/+10
| | | | | | Email headers are not supposed to be UTF-8 encoded and should be plain us-ascii. This change encodes the From: and To: fields of the emails sent out by feed2imap in Base64, using the =utf-8?b?...?= syntax.
* warn if feed takes too much time to be fetchedLucas Nussbaum2008-12-031-0/+5
|