Commit 307e495f15c72212758ac524909c0878abd4eed2

Authored by Marius Hanne
1 parent 031c4c1aeb
Exists in master

create maildir if it doesn't exist

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

maildrop_serializer.rb
... ... @@ -5,6 +5,11 @@
5 5 "if (#{filter_expressions(filter)})",
6 6 "{",
7 7 " exception {",
  8 + " `test -d '#{dest_folder(filter)}'",
  9 + " if( $RETURNCODE == 1 )",
  10 + " {",
  11 + " `maildirmake #{dest_folder(filter)}`",
  12 + " }",
8 13 " to #{dest_folder(filter)}",
9 14 " }",
10 15 "}"].join("\n")