

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] parsing mail with a s...| From | Sent On | Attachments |
|---|---|---|
| ke...@pcintelligent.com | Mar 5, 2003 6:34 am | |
| Gregor Lawatscheck | Mar 5, 2003 7:23 am | |
| ke...@refriedgeeks.com | Mar 5, 2003 9:55 am | |
| Gregor Lawatscheck | Mar 5, 2003 10:51 am | |
| ke...@refriedgeeks.com | Mar 5, 2003 9:37 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] parsing mail with a script | Actions... |
|---|---|---|
| From: | ke...@refriedgeeks.com (ke...@refriedgeeks.com) | |
| Date: | Mar 5, 2003 9:55:43 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Hi there,
Thanks, I tried both examples however I am still having problems... I put this line in my .mailfilter file.
xfilter "/usr/local/bin/test.pl"
But I get this in the maillog, maildrop:_error_writing_to_filter./maildrop:_Unable_to_filter_message./
I don't know why it would have a problem, the perms on the file are 755 and I tested the script. It just takes STDIN and dumps it to a file.
I wish the error message was a little more informational cause I have tried several combinations and nothing helped.
Any suggestions?
Thanks Ken
At 14:37 05/03/2003, you wrote:
Hi there,
I have set up Qmail + Courier IMAP/POP + Maildrop on my new system. I couldn't be happier with it. I have one question however. I would like to pipe an email through a program rather than sending it to a mailbox and I am not sure how to do that. I can pipe it to a program via .qmail files however the email is not passed via STDIN as I thought. I have no idea where it is.
So how can I get the email sent to script for parsing???
I am of course using maildrop to deliver, my qmail rc file looks like this.
exec env - PATH="/var/qmail/bin:$PATH" qmail-start '|preline maildrop' splogger qmail
You could do it inside the maildrop with xfilter (i.e. xfilter "/bin/anyprogram") or by setting up a variable and executing it with backticks ` ` (i.e. VHOME=`/bin/anyprogram -d $EXT@$HOST` ).
So I think that at the point the .qmail file is read maildrop is in charge, correct me if I am wrong.
Yes. You could extend your command in qmail rc to "|preline anyprogram maildrop" but this assumes that the message is piped through (i.e. coming in and going out).
What I would really love something like a flow chart showing me what happens when the mail comes in and how it is passed from qmail to maildrop.
Have a look at http://www.nrg4u.com/ "The big qmail picture" -- maildrop would be right at the end of the local delivery chain between qmail-local and maildir delivery, because you set maildrop as default delivery.
- Gregor
------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________ Courier-maildrop mailing list Cour...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/courier-maildrop







