Skip to content

Commit

Permalink
Merge pull request mailman#89 from timcase/master
Browse files Browse the repository at this point in the history
update Listen message send to use new Listen 2.2.0 API
  • Loading branch information
titanous committed Nov 18, 2013
2 parents 84928f3 + 224fe3e commit 65938dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/mailman/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ def run
end
end

@listener = Listen.to(File.join(@maildir.path, 'new'), :relative_paths => true).change(&callback)
@listener.start!
@listener = Listen::Listener.new(File.join(@maildir.path, 'new'), :relative_paths => true, &callback)
@listener.start
sleep
end
end
end
Expand Down

0 comments on commit 65938dd

Please sign in to comment.