Hi David,
* David T-G <[EMAIL PROTECTED]> [Mit 24 Apr 2002 07:47:36 GMT]:
> Gregor --
[ ... ]
> % set sendmail="tee >(lbdb-fetchaddr -a)|/usr/lib/sendmail -oem -oi"
> % in muttrc. But when I send mail, there is an exec error 127.
> % 
> % On the command line 
> % cat email | tee >(lbdb-fetchaddr -a)|/usr/lib/sendmail -oem -o -- addr@domain
> % works fine.
> 
> What shell are you using?  What shell is mutt using?  
[ ... ] 
> I suspect that you're using bash for your interactive shell but that mutt
> is using sh (perhaps bash in Bourne mode) for its shell, and the >() is
> not a Bourne thing.
> 

You were right. In muttrc I now
set sendmail="~/bin/mysendmail"
and ~/bin/mysendmail executes via bash:

#!/bin/bash
tee >(lbdb-fetchaddr -a)|/usr/lib/sendmail -oem -oi $@


This works fine.

Thanks, Gregor
-- 
Kommunikation benoetigt gemeinsame     /"\    ASCII Ribbon Campaign   
Standards --> unformatierter Text      \ /    Respect for open standards
in E-Mails, als Anhaenge nur offene     X     No HTML/RTF in email     
Standards, keine Micro$oft-Dateien     / \    No M$ Word docs in email

Reply via email to