notmuch, on multiple computers. Though you can do this with "notmuch
dump" and "notmuch restore", it is often preferable to be able to use
notmuch on a remote computer as if it were present on a local
notmuch, on multiple computers. Though you can do this with "notmuch
dump" and "notmuch restore", it is often preferable to be able to use
notmuch on a remote computer as if it were present on a local
server. [Here](http://www.debian-administration.org/articles/152) is a
good page on how to set it up.
server. [Here](http://www.debian-administration.org/articles/152) is a
good page on how to set it up.
if your connection is too slow, this won't be very pleasant to use,
and certainly won't seem transparent.)
if your connection is too slow, this won't be very pleasant to use,
and certainly won't seem transparent.)
check_socket_dir_owner_and_perm ()
{
[ "$(stat -c %U ${SOCKET_DIR})" = "$(whoami)" ] &&
[ "$(stat -c %a ${SOCKET_DIR})" = "700" ]
}
check_socket_dir_owner_and_perm ()
{
[ "$(stat -c %U ${SOCKET_DIR})" = "$(whoami)" ] &&
[ "$(stat -c %a ${SOCKET_DIR})" = "700" ]
}
start_socket ()
{
dtach_command="${DTACH} -n ${DTACH_SOCKET} ${SSH_BIN} -M -S ${SSH_SOCKET} ${USER}@${SSH_HOST}"
command -v ${DTACH} &>/dev/null && ${dtach_command}
}
start_socket ()
{
dtach_command="${DTACH} -n ${DTACH_SOCKET} ${SSH_BIN} -M -S ${SSH_SOCKET} ${USER}@${SSH_HOST}"
command -v ${DTACH} &>/dev/null && ${dtach_command}
}
Save this to a file, "remote-notmuch.sh", in your path.
Now you can run "remote-notmuch.sh new". You can call the script
Save this to a file, "remote-notmuch.sh", in your path.
Now you can run "remote-notmuch.sh new". You can call the script