From 5d70f7b458d0e3100be62c9bffee9a8dfd4c0f50 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 14 Aug 2009 21:29:43 -0700 Subject: [PATCH] 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. --- lib/sup/maildir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb index c6577c1..a2dbae4 100644 --- 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 -- 2.45.2