So -- the client runs something like this: //--- #!/bin/bash REMOTE_HOME=/home/myself LOCAL_HOME=/home/myself if [ "$#" -ne 1 ] then echo "Please give the maildir name!" exit 1 fi declare -A local_config local_config=( ["personal"]="$LOCAL_HOME/.notmuch-config.personal" ["work"]="$LOCAL_HOME/.notmuch-config.work" ) declare -A remote_program remote_program=( ["personal"]="$REMOTE_HOME/config/email/syncmail-wrapper-personal.sh" ["work"]="$REMOTE_HOME/config/email/syncmail-wrapper-work.sh" ) arg=$1 muchsync -C ${local_config[$arg]} -r ${remote_program[$arg]} -- myserver.org //--- And in the server, ~/config/email/syncmail-wrapper-work.sh for example is: //--- #!/bin/sh CONFIG=/home/myself/.notmuch-config.work MAILDIR=/var/mail/vmail/my_mailbox@work LOCK_WAIT_MAX=5 MUCHSYNC=/usr/bin/muchsync PID=`/usr/lib/dovecot/maildirlock ${MAILDIR} ${LOCK_WAIT_MAX}` if [ -z "$PID" ] then echo "Maildir was locked for more than ${LOCK_WAIT_MAX} seconds" else $MUCHSYNC --config=$CONFIG $@ kill $PID fi //--- J. On Fri, Jan 18, 2019 at 09:02:11PM -0700, jpellegrini wrote: > Hello, > > Sorry, it seems that the code in me previous email was removed by nabble. > > I'll post again from a real email client :-) > > > Regarding your first question: yes, it's my primary mail server. I use a > virtual machine > at Linode. > > J. > > > > -- > Sent from: http://notmuch.198994.n3.nabble.com/ > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch