client that can run perl or php on message body?
client that can run perl or php on message body?
am 22.07.2005 04:06:24 von dn
Is there a Windows or Unix mail client that can be configured to run a
script on the body of an arriving e-mail? I'd like to have a script take
the contents of a mail message and extract certain information from the
contents of a mail form submission and then save it to a file. Thanks.
Re: client that can run perl or php on message body?
am 22.07.2005 05:02:30 von Alan Connor
On comp.mail.misc, in
, "DN" wrote:
> Is there a Windows or Unix mail client that can be configured
> to run a script on the body of an arriving e-mail? I'd like to
> have a script take the contents of a mail message and extract
> certain information from the contents of a mail form submission
> and then save it to a file. Thanks.
Before I answer your question, ansswer one of mine:
Why are you filling out so many webforms that you need to
process them with a script?
[Note: I don't read the posts of "Sam" or any of his
many aliases, nor any responses to them. Before this
jerk's posts (and any responses to them) reach my
newsreader, the subjects are replaced by XXXXXXX.]
AC
--
http://home.earthlink.net/~alanconnor/
http://angel.1jh.com./nanae/kooks/alanconnor.html
Re: client that can run perl or php on message body?
am 22.07.2005 05:21:30 von dn
Alan Connor wrote in news:alZDe.6427$dU3.3622
@newsread2.news.pas.earthlink.net:
> On comp.mail.misc, in
> , "DN" wrote:
>
>> Is there a Windows or Unix mail client that can be configured
>> to run a script on the body of an arriving e-mail? I'd like to
>> have a script take the contents of a mail message and extract
>> certain information from the contents of a mail form submission
>> and then save it to a file. Thanks.
>
> Before I answer your question, ansswer one of mine:
>
> Why are you filling out so many webforms that you need to
> process them with a script?
We have customer inquiries coming in via email from a webform so we want to
figure out ways to import the contents of the email into a database for
storing and later access. Thanks.
Re: client that can run perl or php on message body?
am 22.07.2005 05:52:57 von Alan Connor
On comp.mail.misc, in
, "DN" wrote:
> Alan Connor wrote in
> news:alZDe.6427$dU3.3622 @newsread2.news.pas.earthlink.net:
>
>> On comp.mail.misc, in
>> , "DN" wrote:
>>
>>> Is there a Windows or Unix mail client that can be configured
>>> to run a script on the body of an arriving e-mail? I'd like
>>> to have a script take the contents of a mail message and
>>> extract certain information from the contents of a mail form
>>> submission and then save it to a file. Thanks.
>>
>> Before I answer your question, ansswer one of mine:
>>
>> Why are you filling out so many webforms that you need to
>> process them with a script?
>
> We have customer inquiries coming in via email from a webform
> so we want to figure out ways to import the contents of the
> email into a database for storing and later access. Thanks.
Thanks.
On comp.mail.misc, in
, "DN" wrote:
> Is there a Windows or Unix mail client that can be configured
> to run a script on the body of an arriving e-mail? I'd like to
> have a script take the contents of a mail message and extract
> certain information from the contents of a mail form submission
> and then save it to a file. Thanks.
Procmail. Works on windoze or unix/linux.
PROC ess MAIL
It's not a mail client, but an MDA (Mail Delivery Agent). It
processes incoming (or outgoing or local) mail before delivering
it remotely or locally; filtering that mail through external
scripts is one of its most basic functions. Easy. See the man
pages.
The common procmail recipe for your purposes would be:
:0 fb
| scriptname
The "f" means to treat the pipe (|) as a filter: To send each
mail to the script and then return the mail to procmail at
that point in the procmailrc for further processing or delivery
recipes. The "b" means to send only the body to the script.
That would often by followed by a simple delivery recipe:
:0
mailbox
That's it. You're done.
http://www.procmail.org/
Procmail is an exceedingly excellent tool that you would
never regret installing and learning to use. And it is
free.
(I run Linux/Unix, so keep that in mind here. Don't know windoze
except for a year's experience with XP that taught me to avoid
that OS like the plague. I truly feel sorry for anyone that has
to do anything involving networking using that nightmare OS.)
[Note: I don't read the posts of "Sam" or any of his
many aliases, nor any responses to them. Before this
jerk's posts (and any responses to them) reach my
newsreader, the subjects are replaced by XXXXXXX.]
AC
--
http://home.earthlink.net/~alanconnor/
http://angel.1jh.com./nanae/kooks/alanconnor.html
Re: client that can run perl or php on message body?
am 22.07.2005 06:23:55 von dn
Alan Connor wrote in news:t4_De.1972$0C.700
@newsread3.news.pas.earthlink.net:
> On comp.mail.misc, in
> , "DN" wrote:
>
>> Alan Connor wrote in
>> news:alZDe.6427$dU3.3622 @newsread2.news.pas.earthlink.net:
>>
>>> On comp.mail.misc, in
>>> , "DN" wrote:
>>>
>>>> Is there a Windows or Unix mail client that can be configured
>>>> to run a script on the body of an arriving e-mail? I'd like
>>>> to have a script take the contents of a mail message and
>>>> extract certain information from the contents of a mail form
>>>> submission and then save it to a file. Thanks.
>>>
>>> Before I answer your question, ansswer one of mine:
>>>
>>> Why are you filling out so many webforms that you need to
>>> process them with a script?
>>
>> We have customer inquiries coming in via email from a webform
>> so we want to figure out ways to import the contents of the
>> email into a database for storing and later access. Thanks.
>
> Thanks.
>
> On comp.mail.misc, in
> , "DN" wrote:
>
>> Is there a Windows or Unix mail client that can be configured
>> to run a script on the body of an arriving e-mail? I'd like to
>> have a script take the contents of a mail message and extract
>> certain information from the contents of a mail form submission
>> and then save it to a file. Thanks.
>
> Procmail. Works on windoze or unix/linux.
>
> PROC ess MAIL
>
> It's not a mail client, but an MDA (Mail Delivery Agent). It
> processes incoming (or outgoing or local) mail before delivering
> it remotely or locally; filtering that mail through external
> scripts is one of its most basic functions. Easy. See the man
> pages.
>
> The common procmail recipe for your purposes would be:
>
>:0 fb
>| scriptname
>
> The "f" means to treat the pipe (|) as a filter: To send each
> mail to the script and then return the mail to procmail at
> that point in the procmailrc for further processing or delivery
> recipes. The "b" means to send only the body to the script.
>
> That would often by followed by a simple delivery recipe:
>
>:0
> mailbox
>
> That's it. You're done.
>
> http://www.procmail.org/
>
> Procmail is an exceedingly excellent tool that you would
> never regret installing and learning to use. And it is
> free.
>
> (I run Linux/Unix, so keep that in mind here. Don't know windoze
> except for a year's experience with XP that taught me to avoid
> that OS like the plague. I truly feel sorry for anyone that has
> to do anything involving networking using that nightmare OS.)
>
Alan, thanks for the detailed info! That definitely gives me enough to go
on. And Windows certainly is painful.
FAQ: Canonical list of questions Beavis refuses to answer (V1.40) (was Re: client that can ru
am 22.07.2005 12:50:50 von Sam
This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.
--=_mimegpg-commodore.email-scan.com-26662-1122029455-0002
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Usenet Beavis writes:
> Before I answer your question, ansswer one of mine:
>
> When was the last time you met Bigfoot?
That, Beavis, is covered in your FAQ, below.
> [Note: it's not my fault that I'm a complete dumbass. I was dropped
> on my head as a child. See http://angel.1jh.com/nanae/kooks/alanconnor.shtml
> for more information]
FAQ: Canonical list of questions Beavis refuses to answer (V1.40)
This is a canonical list of questions that Beavis never answers. This FAQ is
posted on a semi-regular schedule, as circumstances warrant.
For more information on Beavis, see:
http://angel.1jh.com/nanae/kooks/alanconnor.shtml
Although Beavis has been posting for a long time, he always remains silent
on the subjects enumerated below. His response, if any, usually consists of
replying to the parent post with a loud proclamation that his Usenet-reading
software runs a magical filter that automatically identifies anyone who's
making fun of him, and hides those offensive posts. For more information
see question #9 below.
============================================================ ================
1) If spammers avoid forging real E-mail addresses on spam, then where do
all these bounces everyone reports getting (for spam with their return
address was forged onto) come from?
2) If your Challenge-Response filter is so great, why do you still munge
when posting to Usenet?
3) Do you still believe that rsh is the best solution for remote access?
(http://tinyurl.com/5qqb6)
4) What is your evidence that everyone who disagrees with you, and thinks
that you're a moron, is a spammer?
5) How many different individuals do you believe really post to
comp.mail.misc? What is the evidence for your paranoid belief that everyone,
except you, who posts here is some unknown arch-nemesis of yours?
6) How many times, or how often, do you believe is necessary to announce
that you do not read someone's posts? What is your reason for making these
regularly-scheduled proclamations? Who do you believe is so interested in
keeping track of your Usenet-reading habits?
7) When was the last time you saw Bigfoot (http://tinyurl.com/23r3f)?
8) If your C-R system employs a spam filter so that it won't challenge spam,
then why does any of the mail that passes the filter, and is thusly presumed
not to be spam, need to be challenged?
9) You claim that the software you use to read Usenet magically identifies
any post that makes fun of you. In http://tinyurl.com/3swes you explain
that "What I get in my newsreader is a mock post with fake headers and no
body, except for the first parts of the Subject and From headers."
Since your headers indicate that you use slrn and, as far as anyone knows,
the stock slrn doesn't work that way, is this interesting patch to slrn
available for download anywhere?
10) You regularly post alleged logs of your procmail recipe autodeleting a
bunch of irrelevant mail that you've received. Why, and who exactly do you
believe is interested in your mail logs?
11) How exactly do you "enforce" an "order" to stay out of your mailbox,
supposedly (http://tinyurl.com/cs8jt)? Since you issue this "order" about
every week, or so, apparently nobody wants to follow it. What are you going
to do about it?
12) What's with your fascination with shit? (also http://tinyurl.com/cs8jt)?
13) You complain about some arch-nemesis of yours always posting forged
messages in your name. Can you come up with even a single URL, as an example
of what you're talking about?
14) You always complain about some mythical spammers that pretend to be
spamfighters (http://tinyurl.com/br4td). Who exactly are those people, and
can you post a copy of a spam that you supposedly received from them, that
proves that they're really spammers, and not spamfighters?
--=_mimegpg-commodore.email-scan.com-26662-1122029455-0002
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQBC4M+Px9p3GYHlUOIRAu8JAJ0Q/+jGkvkWLeQWhCVOk9ohCkdwsQCf UOD+
3NQCYd5oBlsYkY7Kd8IlTzg=
=vWrD
-----END PGP SIGNATURE-----
--=_mimegpg-commodore.email-scan.com-26662-1122029455-0002--