Filter and Forward Mail module - wrong path when creating IMAP folders

Fresh install of Ubuntu 14.04 and Virtualmin GPL

Usermin > Filter and Forward Mail > Add a new email filter

If I choose "Save to new folder named" and enter "whatever" then I get the following :

$HOME/mail/whatever/

but it should be

$HOME/Maildir/.whatever/

(note both the wrong path, and also the missing [.])

Status: 
Active

Comments

Sounds like the default folder path isn't setup correctly. What does the mailbox_dir line in your system's /etc/usermin/mailbox/uconfig file contain?

It should be like :

mailbox_dir=Maildir

I can confirm that the line in /etc/usermin/mailbox/uconfig is already set as it should be :

mailbox_dir=Maildir

So I guess it must be something else?

That looks fine. However, can you also check for the same line in the .usermin/mailbox/config file under the home directory of the user logging into Usermin?

I don't know if this would help, but on my virtualmin gpl,
".usermin/mailbox/config" file under the home directory of the user logging into Usermin, that file does not exist. The folder exists, and contains other files and folders, but that file doesn't exist.

That's ok, if that file is missing Usermin will fall back to /etc/usermin/mailbox/uconfig

So does /etc/usermin/mailbox/uconfig contain mail in any of the settings?

Same as Chris_C, I have an existing folder at /home/[DOMAIN]/.usermin/mailbox but there is no config file. The only file in there is inbox.imap.

@Jamie
My /etc/usermin/mailbox/uconfig contains only one line:

mailbox_dir=Maildir

Can you also post your /etc/usermin/mailbox/config file ?

noindex_hostname=1
folder_types=local,ext,pop3,imap
folder_virts=virt,comp
show_to=0
from_format=1
from_map=/etc/postfix/virtual
pop_locks=1
top_buttons=1
spam_always=0
mail_system=4
mail_style=0
mail_dir=/var/spool/mail
spam_report=
server_attach=0
mail_dir_qmail=Maildir
sendmail_path=/usr/lib/sendmail
perpage=20
nologout=1
mail_file=mbox
no_crlf=0
no_mailer=0
shortindex=0
edit_from=1
no_orig_ip=1
wrap_width=80
send_mode=localhost
mail_qmail=
pop3_server=localhost

Are you sure that when you created a new filter, you selected the "Save to new folder named" option? Because I don't see any references to the mail directory in any of those config files.