Q1) The filter writes folders like this:
      $MAILDIR/INBOX.Trash
   instead of like this:
      $MAILDIR/.Trash

A1) You need to setup the Default Folder prefix:
    1) Run the SquirrelMail conf.pl
    2) Select option 3 (Folder Settings)
    3) Select option 1 and enter 'INBOX.'


