Skip to content

Commit

Permalink
remove IMAP source
Browse files Browse the repository at this point in the history
  • Loading branch information
rlane committed Mar 21, 2010
1 parent bbfd0b3 commit 52e29ba
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 371 deletions.
10 changes: 0 additions & 10 deletions bin/sup
Expand Up @@ -159,16 +159,6 @@ begin
mbox+ssh sources are deprecated and will be removed in the next release.
Running rsync in your before-poll hook is a good alternative.
Press enter to continue.
EOS
$stdin.gets
end

if Redwood::SourceManager.sources.any? { |x| x.is_a? Redwood::IMAP }
$stderr.puts <<EOS
IMAP sources are deprecated and will be removed in the next release.
Running offlineimap or fetchmail in your before-poll hook is a good alternative.
Press enter to continue.
EOS
$stdin.gets
Expand Down
12 changes: 1 addition & 11 deletions bin/sup-recover-sources
Expand Up @@ -58,17 +58,7 @@ ARGV.each do |fn|
next if Redwood::SourceManager.source_for fn

## TODO: merge this code with the same snippet in import
source =
case fn
when %r!^imaps?://!
print "Username for #{fn}: "
username = $stdin.gets.chomp
print "Password for #{fn} (warning: cleartext): "
password = $stdin.gets.chomp
Redwood::IMAP.new(fn, username, password, nil, !$opts[:unusual], $opts[:archive])
else
Redwood::MBox::Loader.new(fn, nil, !$opts[:unusual], $opts[:archive])
end
source = Redwood::MBox::Loader.new(fn, nil, !$opts[:unusual], $opts[:archive])

source_ids = Hash.new 0
count = 0
Expand Down
1 change: 0 additions & 1 deletion lib/sup.rb
Expand Up @@ -309,7 +309,6 @@ def check_library_version_against v
require "sup/source"
require "sup/mbox"
require "sup/maildir"
require "sup/imap"
require "sup/person"
require "sup/account"
require "sup/thread"
Expand Down
349 changes: 0 additions & 349 deletions lib/sup/imap.rb

This file was deleted.

0 comments on commit 52e29ba

Please sign in to comment.