default path to files

11 views
Skip to first unread message

Svanto

unread,
Feb 16, 2011, 9:51:12 PM2/16/11
to vmail-users
Hi,

is there a way to change the default path, where all vmail-created
files are stored?
At the moment it's the home directory. I would like to store the files
in a hidden folder.

Svanto

Daniel Choi

unread,
Feb 16, 2011, 10:12:09 PM2/16/11
to Svanto, vmail-users, dhc...@gmail.com
Yes, you can create a directory and run vmail from there. This will keep
the files out of your home directory.

There's a ticket to store everything in a ~/.vmail folder. This patch
may be implemented in the next few weeks.

Dan

--
Sent from vmail. http://danielchoi.com/software/vmail.html

Svanto

unread,
Mar 19, 2011, 12:53:45 PM3/19/11
to vmail-users
Thanks for the answer,

I created a hidden directory with a subdirectory for a gmail account:
~/.vmail/gmail-accout

Then I made a startup script, so I do not need to cd to the directory:
[code]
#!/bin/bash
cd /home/user/.vmail/gmail-account
echo -e 'Would you like to update/create your contacts-completion-
list? [\e[1;32mYes\e[0m/\e[1;31mNo\e[0m] \c'
read answer
case $answer in
[Yy]* ) echo -e '\e[1;32mOK, lets create the list!\e[0m'; sleep 1;
vmail -g;;
[Nn]* ) ;;
* ) echo -e '\e[1;31mAssuming you do not wish to create the
completion-list.\e[0m'; sleep 1;;
esac
sleep 1
echo -e '\e[1;32mGoing to your mailbox now...\e[0m'
vmail
[/code]

Named it vmail-gmail-account, made it executable and put it to
executable path.

This way I can use vmail with multiple gmail accounts.
In connection with screen it works great for me:)

Daniel Choi

unread,
Apr 8, 2011, 10:53:04 AM4/8/11
to vmail-users


Thanks Svanto!
Reply all
Reply to author
Forward
0 new messages