SOLVED (was: Re: lbdb-fetchaddr for outgoing mail)

2002-04-26 Thread Gregor Zattler

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



lbdb-fetchaddr for outgoing mail

2002-04-24 Thread Gregor Zattler

Hi everybody,

i want ldbd-fetchaddr to collect email addresses from outgoung
email. Therefore I 
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.

Any ideas?


Ciao, 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



Re: lbdb-fetchaddr for outgoing mail

2002-04-24 Thread David T-G

Gregor --

...and then Gregor Zattler said...
% 
% Hi everybody,

Hello!


% 
...
% 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?  


% 
% Any ideas?

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.


% 
% 
% Ciao, 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


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg27589/pgp0.pgp
Description: PGP signature