diff --git a/bin/imapnotify b/bin/imapnotify index 5ee657c..9097381 100755 --- a/bin/imapnotify +++ b/bin/imapnotify @@ -240,7 +240,7 @@ function executeOnNotify(config) { return function notify(box, event) { var formattedBox = replace(box.toLowerCase(), '/', '-') , formattedCommand = printf(commandIsEventMap ? command[event] || '': command, formattedBox) - , formattedPostCommand = printf(postCommandIsEventMap ? postCommand[event] || '': command, formattedBox) + , formattedPostCommand = printf(postCommandIsEventMap ? postCommand[event] || '': postCommand, formattedBox) return executeCommands(formattedCommand, formattedPostCommand) } }