procmail
[Top] [All Lists]

Re: Sending attachment to URL via HTTP POST

2002-04-18 21:00:44
At 22:50 2002-04-18 -0400, Jeff Kowalczyk did say:
I would like to have the flexibility to add HTTP headers such as basic
auth, suggesting that I would call a script in perl or preferably
python. However, it isn't a requirement in the short term.

There are a number of auth components in the CPAN archive.

Can anyone recommend a starting point to get this running on RH 7.1?

If you're in control of the website at the far end, you might consider setting it up so that a script on the website fetches the email - PHP makes this trivial, or a CGI over there could retrieve the message from a LOCALLY published location - then all you really need to do is drop the message into a local spool and hit the webserver with a basic request containing the name of the local file, and the webserver takes it from there.

In any event, what you want to do is entirely outside the scope of procmail, beyond this simple bit which will hand the message to whatever EXTERNAL program or script it is you settle on using:


:0
* someconditions_identifying_the type_of_message_you_process_vs_spam
| somescript options


Where options might be the URL for the remote server or the username/password for your auth operation. If you need to extract the attachment, you'll need to run the message through mimencode or similar.

I trust you're not doing this _on_ adelphia, which from my vantage point seems to have a lot of repeated email problems (incl. "unknown user" when the account does in fact exist). I manage a coupld of medium-sized mailing lists (1000 and 4000 users respectively), and I see that frequently with adelphia.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>