I only know how to do it in *nix environments.  An example line from my alias file used with the RT system developed in perl.
 
support: "|/web/tyco/www/rt/bin/rt-mailgate --queue support --action correspond"
 
All mail sent to [EMAIL PROTECTED] will get piped to the rt-mailgate application.  That application can then access the information as STDIN.
 
If you add a line to the aliases (/etc/aliases, typically) on a *nix machine, don't forget to use the 'newaliases' command to have your changes updated, or it will not recognize those changes.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [e]agL�rT
Sent: Tuesday, July 09, 2002 9:47 AM
To: Adam Frielink; [EMAIL PROTECTED]
Subject: RE: forwarding an email address to a perl program and saving the message!!!

sorry, not smtp, i mean pop.. anyway, as i said, i do not want to make something like pop server, but you told a solution about it. is there anyway without poping? i saw that thing on a web site, it was a modul for a program (greymatter), and there was something to do that, not poping, just getting the new message. i mean, forwarding the new mail directly to the program. the program use STDIN and something like that. i thing i need to configure the mail alias to send the message to the program. could i explain?
----- Original Message -----
Sent: Tuesday, July 09, 2002 4:54 PM
Subject: RE: forwarding an email address to a perl program and saving the message!!!

Have you considered using POP from your application?  I am sure in Win32 it is possible to have the smtp server pipe the mail to a program, but I only know how to do that on *nix.  Consider POPing your message and then process the contents as necessary.  Put it in a loop.  Depending on how often you was to process your mail accounts, just have it POP on that interval.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [e]agL�rT
Sent: Tuesday, July 09, 2002 4:46 AM
To: [EMAIL PROTECTED]
Subject: forwarding an email address to a perl program and saving the message!!!

hi all.. i want to forqard an email address to my perl program and get message from the mail. but i dont know which modul to use and what to write inside of my program. can someone help me? not: i am not trying to do something like smtp server, i do not want the program to check mails, i want to send the new message directly to the program! thanks...

Reply via email to