zclass = self.config.get('ZephyrPlugin', 'class')
if zclass == '':
return
- p = subprocess.Popen(['zwrite', '-q', '-l', '-d',
- '-c', zclass,
+ command = self.config.get('ZephyrPlugin', 'command').split(' ')
+ if not command:
+ command = ['zwrite', '-q', '-l', '-d']
+ p = subprocess.Popen(command +
+ ['-c', zclass,
'-i', 'trac-#%s' % id],
stdin=subprocess.PIPE)
p.stdin.write(message.encode('utf-8', 'replace'))