- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- email to dir to web page
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
01-22-2004 05:44 AM
01-22-2004 05:44 AM
Has anyone out there had the occasion to want to have an email from another system be placed into a web server directory automatically? I believe that there is a way to modify an id to deal with mail diffently than just storing in a mailbox - but it has many years since I have seen this done - anyone doing this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 05:47 AM
01-22-2004 05:47 AM
Re: email to dir to web page
More useful though would be a script to read your mailbox, do fancy html stuff with incoming mails and place them, pre-formatted in the directory you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 08:36 AM
01-22-2004 08:36 AM
Re: email to dir to web page
As suggested, I did some pre formatting to include HTML tages etc, then just used ftp to automagically put it where I wanted it.
I found this a little easier than using procmail at the time.
I used ftp -i -n (from memory).
If you do want to use email, a neat way of doing it is to set up a mailbox on your server that automatically "prints" all incomming mails. Instead of sending them to a real printer, you can just send them to a script which does the formatting and places it in the correct spot (I've used this before as well - just remember to delete the email after processing if you don't want to keep them).
Hope this helps.
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 02:09 PM
01-22-2004 02:09 PM
Re: email to dir to web page
Or you can make the documentroot on the httpd server equal the user name that owns the html docs /var/mail folder.
This may however present security problems.
I've tried to figure out why you want to do it, but I don't understand.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 03:14 PM
01-22-2004 03:14 PM
Solutionas a preformat HTML tag and then store the rest of the message in an appropriate web location. For example:
/etc/mail/aliases:
tapefaq: " | /usr/contrib/bin/mail2 "
where mail2 is the above mentioned script. Be sure to run newaliases after editing the aliaases file. Also, the script is not run by root but by the daemon user (sendmail/rmail) so watch permissions and ownerships.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 03:35 PM
01-22-2004 03:35 PM
Re: email to dir to web page
- I like Perl because it has good string handling
- I put the data written by the "mail catching" script in a place where permissions like daemon:other are not going to compromise the security of other code/data
- to perform some elementary validation, I typically examine some header field (such as sender or subject). It's not much, but it at least helps avoid random mail.
- I also use these scripts to perform processing, sometimes quite complicated, on the data that is mailed to them
In addition to using this method with a web server, I've also used it as a method to transfer data between systems. It queues when there are transmission problems and there is at least elementary logging ( /var/adm/syslog/mail.log ).
Mic