<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -21,9 +21,9 @@ class MailFetcher
     # * &lt;tt&gt;finish&lt;/tt&gt; - So, the Net::POP docs say to close the connection with pop#finish, but for some odd
     #   reason calling the below function when connected to GMail resets POP3 access and won't allow you to reconnect.
     #   This plugin was tested with a GMail account, hence the need for this option.
-    # * &lt;tt&gt;manipulate_connection&lt;/tt&gt; - Used in conjunction with IMAP, in that it passes the IMAP object to the
+    # * &lt;tt&gt;use_imap&lt;/tt&gt; - Used in conjunction with IMAP, in that it passes the IMAP object to the
     #   mailer_class to do whatever it wishes with the connection (since IMAP allows for more features than POP3).
-    #   Just pass in the name of the method(s) to pass the IMAP object to: :manipulate_connection =&gt; :use_imap.
+    #   Just pass in the name of the method(s) to pass the IMAP object to: :use_imap =&gt; :process_with_imap.
     def fetch(options={})
       options = prepare_options(options)
       check_mailer!(options)
@@ -48,8 +48,8 @@ class MailFetcher
       imap = Net::IMAP.new(config[:server], config[:port], true)
       imap.login(config[:username], config[:password])
       
-      if options[:manipulate_connection]
-        [options[:manipulate_connection]].flatten.each {|method| mailer_class.send(method, imap)}
+      if options[:use_imap]
+        [options[:use_imap]].flatten.each {|method| mailer_class.send(method, imap)}
       else
         imap.examine('INBOX')
         imap.search(['ALL']).each do |message_id|</diff>
      <filename>lib/mail_fetcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -152,7 +152,7 @@ describe MailFetcher do
         Mailer::IMAP_EMAILS.size.should == 0
         Mailer::EMAILS.size.should == 0
         
-        MailFetcher.fetch(:manipulate_connection =&gt; :use_imap)
+        MailFetcher.fetch(:use_imap =&gt; :process_with_imap)
         Mailer::IMAP_EMAILS.size.should &gt; 0
         Mailer::EMAILS.size.should == 0
       end
@@ -179,7 +179,7 @@ class Mailer &lt; ActionMailer::Base
     Mailer::EMAILS &lt;&lt; email
   end
   
-  def self.use_imap(imap)
+  def self.process_with_imap(imap)
     imap.examine('INBOX')
     imap.search(['ALL']).each do |message_id|
       IMAP_EMAILS &lt;&lt; TMail::Mail.parse(imap.fetch(message_id,'RFC822')[0].attr['RFC822'])</diff>
      <filename>spec/models/mail_fetcher_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eb20cb29f4f235e3f3f3a4ae35e20e5ec243c23e</id>
    </parent>
  </parents>
  <author>
    <name>siannopollo</name>
    <email>siannopollo@db1baf47-51e4-401b-90a3-79adba8d9aa3</email>
  </author>
  <url>http://github.com/siannopollo/mail_fetcher/commit/12b5fa742ac62f6d1f7abc354a1fb246e721eb87</url>
  <id>12b5fa742ac62f6d1f7abc354a1fb246e721eb87</id>
  <committed-date>2008-02-19T13:00:07-08:00</committed-date>
  <authored-date>2008-02-19T13:00:07-08:00</authored-date>
  <message>improved syntax for using imap

git-svn-id: svn+ssh://rubyforge.org/var/svn/mail-fetcher/trunk@7 db1baf47-51e4-401b-90a3-79adba8d9aa3</message>
  <tree>d2372be1adfe7ba31532cb6295f85a5cd822b48c</tree>
  <committer>
    <name>siannopollo</name>
    <email>siannopollo@db1baf47-51e4-401b-90a3-79adba8d9aa3</email>
  </committer>
</commit>
