commit 5d70f7b458d0e3100be62c9bffee9a8dfd4c0f50
parent 7a9fd216f3acbab30ea4f6f9de1fad33de1f05a1
Author: Carl Worth <cworth@cworth.org>
Date: Fri, 14 Aug 2009 21:29:43 -0700
maildir: allow ', ' in the unique-name portion of a maildir filename
The maildir specification says the following about unique names:
A unique name can be anything that doesn't contain a colon (or
slash) and doesn't start with a dot.
[http://cr.yp.to/proto/maildir.html]
So disallowing a unique name to have a comma breaks maildir import on
systems where there is a comma in the names.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
@@ -212,7 +212,7 @@ private
def maildir_data msg
fn = File.basename @ids_to_fns[msg]
- fn =~ %r{^([^:,]+):([12]),([DFPRST]*)$}
+ fn =~ %r{^([^:]+):([12]),([DFPRST]*)$}
[($1 || fn), ($2 || "2"), ($3 || "")]
end