]> git.cworth.org Git - sup/commitdiff
minor bugfix for sent labels
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 21 Feb 2007 00:29:42 +0000 (00:29 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 21 Feb 2007 00:29:42 +0000 (00:29 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@336 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/imap.rb
lib/sup/sent.rb

index 92c0b5c6bebe086d7a1d1aeb10d5a765e67d9b7b..6abe536f16aa2cb31da93a2c4cd2d3a0bdc87d63 100644 (file)
@@ -2,6 +2,7 @@ require 'uri'
 require 'net/imap'
 require 'stringio'
 require 'time'
+require 'rmail'
 
 ## fucking imap fucking sucks. what the FUCK kind of committee of
 ## dunces designed this shit.
@@ -62,6 +63,8 @@ class IMAP < Source
     x.nil? || x.empty? ? 'INBOX' : x
   end
   def ssl?; @parsed_uri.scheme == 'imaps' end
+
+  ## is this necessary? TODO: remove maybe
   def == o; o.is_a?(IMAP) && o.uri == self.uri && o.username == self.username; end
 
   def load_header id
index 53b3b85d77e786daea13cb7f9b68e8f93dc88ec2..0761bbc1573264c3c656ad05d3c66493db4ed246 100644 (file)
@@ -22,7 +22,7 @@ class SentManager
       yield f
     end
     @source.each do |offset, labels|
-      m = Message.new :source => @source, :source_info => offset, :labels => labels
+      m = Message.new :source => @source, :source_info => offset, :labels => self.labels
       Index.add_message m
       UpdateManager.relay self, :add, m
     end