Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
maildropfilter execute shell command
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DumbAss
Apprentice
Apprentice


Joined: 30 Sep 2003
Posts: 247
Location: 't Steen

PostPosted: Mon Mar 22, 2004 11:03 pm    Post subject: maildropfilter execute shell command Reply with quote

Hi, I want, when I receive new email, execute a command. I want smbclient to send me a message.
I thought to be smart and add this line in /etc/maildroprc:
Quote:
xfilter "echo "You have got mail" | smbclient -M tim"

But then I get this error message:
Quote:
status=deferred (temporary failure. Command output: maildrop: error writing to filter. /usr/bin/maildrop: Unable to filter message. )

Then I get the message but the mail is not delivered. Is there another way to achieve what I want?
Back to top
View user's profile Send private message
DumbAss
Apprentice
Apprentice


Joined: 30 Sep 2003
Posts: 247
Location: 't Steen

PostPosted: Tue Mar 23, 2004 10:20 pm    Post subject: Reply with quote

Does anyone know the asnwer to this question? Or maybe another solution?
Back to top
View user's profile Send private message
DumbAss
Apprentice
Apprentice


Joined: 30 Sep 2003
Posts: 247
Location: 't Steen

PostPosted: Wed Mar 24, 2004 2:22 pm    Post subject: Reply with quote

OK. I found out myself. I know what was wrong.
It was supposed to be like this:
Quote:
'echo "You've got mail from $SENDER" |smbclient -M hostname'

It really works well now!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum