From 839d0201be7bf093a3e86d25fb505222d64c622f Mon Sep 17 00:00:00 2001 From: Matthew Krafczyk Date: Sat, 26 Sep 2015 10:48:51 +0200 Subject: [PATCH] offlineimap.conf: fix a typo in the new mail hook example Also add --play-and-stop since if vlc is being used with the loop option, at the same time that cvlc is executed, the sound will play endlessly. Signed-off-by: Matthew Krafczyk Signed-off-by: Nicolas Sebrecht --- offlineimap.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap.conf b/offlineimap.conf index 7ced4b8..1db5b52 100644 --- a/offlineimap.conf +++ b/offlineimap.conf @@ -304,7 +304,7 @@ remoterepository = RemoteExample # # This feature is experimental. # -#newmail_hook = lambda: os.sytem("cvlc --play-and-exit /path/to/sound/file.mp3" + +#newmail_hook = lambda: os.system("cvlc --play-and-stop --play-and-exit /path/to/sound/file.mp3" + # " > /dev/null 2>&1")