-
Notifications
You must be signed in to change notification settings - Fork 96
Running More Than One Sup At A Time
Ferret doesn't allow concurrent access to the same index.
As of 0.2, Sup locks the index explicitly to prevent this.
Thus, the only way to run more than one Sup at a time is if they're pointed at two different, independent indexes.
This is probably not useful in practice, but can be very useful for development purposes, as it allows you to avoid running run untested code against your actual mail index.
Sup checks the environment variable SUP_BASE
to determine the
location of the sup directory.
If that's not specified, it uses $XDG_CONFIG_HOME/sup
for its
configuration and $XDG_DATA_HOME/sup
for the data. On most linux
installations they resolve to:
$XDG_CONFIG_HOME: ~/.config $XDG_DATA_HOME: ~/.local/share
If any of these variables is not defined, it takes these values by default
So in bash you can do something like:
export SUP\_BASE=/tmp/sup-test
ruby -I lib bin/sup-add <some source\>
to start up sup, create the new sup directory and all requisite files automatically, and add the source.
Then sup-sync
and sup
as normal.