- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automate email processing
Operating System - HP-UX
1753518
Members
5049
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 08:44 PM
тАО10-03-2001 08:44 PM
Hi All,
Not sure if I can only do this using a list server (i.e. majordomo), but here goes...
I want to be able to receive email messages to a special alias and then process those messages via some script. The script will take data from the body and update database records based on the key info.
Anyone know of how to do this? Do you see any problems with this?
Thanks in advance,
mike
Not sure if I can only do this using a list server (i.e. majordomo), but here goes...
I want to be able to receive email messages to a special alias and then process those messages via some script. The script will take data from the body and update database records based on the key info.
Anyone know of how to do this? Do you see any problems with this?
Thanks in advance,
mike
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 08:57 PM
тАО10-03-2001 08:57 PM
Re: Automate email processing
I did a similar thing many years ago when I was working as a namespace admin.
We would receive emails, the emails would them be sorted, and the information in them would be stored in an SQL database.
Then we'd generate billing info from our database.
We used a bunch of perl scripts and elm mailboxes.
We used elm's sorting features to sort based on subject: "domain name renewal" went to one mailbox and so forth.
We did find though that email was not the best because people do not follow standard formats - we found in the end that a web form that updated the database directly was much easier for us to handle (less crap ending up in our database).
We used mySQL databases as an interim solution before moving to a full java backend with oracle.
Hope this helps.
Scott.
We would receive emails, the emails would them be sorted, and the information in them would be stored in an SQL database.
Then we'd generate billing info from our database.
We used a bunch of perl scripts and elm mailboxes.
We used elm's sorting features to sort based on subject: "domain name renewal" went to one mailbox and so forth.
We did find though that email was not the best because people do not follow standard formats - we found in the end that a web form that updated the database directly was much easier for us to handle (less crap ending up in our database).
We used mySQL databases as an interim solution before moving to a full java backend with oracle.
Hope this helps.
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 11:05 PM
тАО10-03-2001 11:05 PM
Solution
Hi Mike,
On your receiving server, create an alias with a pipe, e.g:
stats: "|/usr/local/bin/read_stats.sh"
Basically the message is read as input to the pipe, so for instance if you'd sent it as a uuencoded gzipped message, you could have something like this in the script:
/usr/bin/uudecode -p | /sbclocal/bin/gunzip -c > /tmp/message.$$ 2>>/tmp/message.out
etc...
Rgds, Robin
On your receiving server, create an alias with a pipe, e.g:
stats: "|/usr/local/bin/read_stats.sh"
Basically the message is read as input to the pipe, so for instance if you'd sent it as a uuencoded gzipped message, you could have something like this in the script:
/usr/bin/uudecode -p | /sbclocal/bin/gunzip -c > /tmp/message.$$ 2>>/tmp/message.out
etc...
Rgds, Robin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP