From 4573c37f45fa59aa93fe25b03e3b60c9e915dd66 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Thu, 3 May 2007 19:04:43 +0000 Subject: [PATCH] better attachment filename detection git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@385 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- doc/TODO | 3 ++- lib/sup/message.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/TODO b/doc/TODO index 8a9f3b1..2ed5f79 100644 --- 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 diff --git a/lib/sup/message.rb b/lib/sup/message.rb index da3d0af..e6aa21c 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -34,7 +34,7 @@ class Message @desc = desc @part = part @file = nil - desc =~ /filename="(.*?)"/ && @filename = $1 + desc =~ /filename="?(.*?)("|$)/ && @filename = $1 end def view! -- 2.45.2