allow for collapsed folder trees
[claws.git] / tools / filter_conv.pl
index f84802b7c2c3971ee320abdd6f260391cab6eea0..63dc5a5d62f13cc1a4befaac4d00ea244a8e47e9 100644 (file)
@@ -27,7 +27,9 @@ close FOLDERLIST;
 foreach $folderlist (@folderlist) {
        if ($folderlist =~ m/<folder type="mh"/) {
                $folderlist =~ s/<folder type="mh" name="//;
-                $folderlist =~ s/" path="[A-Z0-9]+">\n//ig;
+                $folderlist =~ s/" path="[A-Z0-9]+"//ig;
+               $folderlist =~ s/ collapsed="1"//;
+               $folderlist =~ s/>\n//ig;
                 $folderlist =~ s/^ +//;
                 $mailbox = $folderlist;
         }