]> git.cworth.org Git - sup/commitdiff
better attachment filename detection
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 3 May 2007 19:04:43 +0000 (19:04 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 3 May 2007 19:04:43 +0000 (19:04 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@385 5c8cc53c-5e98-4d25-b20a-d8db53a31250

doc/TODO
lib/sup/message.rb

index 8a9f3b179e08e70fb6b84a21f257835dbf1b59dd..2ed5f79d4deb0368b452dc7a6e855ff1b086aa5e 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -1,15 +1,16 @@
 for 0.0.9
 ---------
+_ bugfix: need a way to force an address to a particular name, for things like evite addresses
 _ bugfix: read before thread-index has finished loading then hides the thread?!? wtf. (on jamie)
 _ bugfix: ferret flakiness: just added message but can't find it.
 _ bugfix: when one new message comes into an imap folder, we don't
    catch it until a reload (sometimes?)
 _ bugfix: add new message counts until keypress
-_ bugfix: attachment filenames sometimes not detected (filename=)
 _ bugfix: readlock
 _ split out threading & message chunk parsing to a separate library
 _ decode RFC 2047 ("encoded word") headers
   - see: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/101949, http://dev.rubyonrails.org/ticket/6807
+x bugfix: attachment filenames sometimes not detected (filename=)
 x bugfix: rmail multipart error
 x bugfix: sup-add not prompting for old accounts, i think? possibly because
     sources no longer respond_to? :username due to Recoverable wrapping
index da3d0af8d1e48809a16cc335ff010ba56e3e07f5..e6aa21c885e5d9e0f00e3ef8c8de201fa3f28ab5 100644 (file)
@@ -34,7 +34,7 @@ class Message
       @desc = desc
       @part = part
       @file = nil
-      desc =~ /filename="(.*?)"/ && @filename = $1
+      desc =~ /filename="?(.*?)("|$)/ && @filename = $1
     end
 
     def view!