IMAP Speed Improvements for 1.9.3 branch #193
tonyarkles
added
some commits
Oct 6, 2012
test/net/imap/test_imap_messageset.rb
| + @strings = [] | ||
| + end | ||
| + def put_string(s) | ||
| + @strings << s | ||
| + end | ||
| + attr_accessor :strings | ||
| +end | ||
| + | ||
| +class IMAPMessageSetTest < Test::Unit::TestCase | ||
| + | ||
| + ### Validation Tests | ||
| + | ||
| + def assert_messageset_ok_with(set) | ||
| + ms = Net::IMAP::MessageSet.new(set) | ||
| + assert_nothing_raised do | ||
| + ms.validate |
|
tenderlove
Is
tonyarkles
I don't think so. It throws an exception if things don't validate, but I think that's about it. There's a bunch of #validate methods on other objects that do nothing at all.
shugo
You're right. validate is supposed to return nothing and to raise an exception if the receiver is not valid. |
|
This issue should be for @shugo, but I can't seem to assign it to him. |
tonyarkles
commented
Oct 12, 2012
|
I can definitely file a ticket for trunk. This is kind of addressing a few issues at once; should I just make a single ticket for all of them, or should I make a separate ticket for each? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


My initial problem was that I couldn't specify "1:*" for the range to pull all of the messages from the selected mailbox. After I could retrieve them all, I encountered a few bugs parsing the emails in my inbox.
I originally patched the 1.9.3 branch, and have made a separate patch for the trunk branch. This is the 1.9.3 branch, I will make a separate pull request for the trunk.