- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script for mail IDs
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
04-06-2006 10:58 PM
04-06-2006 10:58 PM
script for mail IDs
We have around 1500 mail user with more 100 MB size. Right now we want around 1000 users which have 50 MB to reduce to 25 MB. what would be the script which can do for all the 1000 users
thanks in adv.
regards
wish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2006 11:18 PM
04-06-2006 11:18 PM
Re: script for mail IDs
could you please clarify:
1. What is 100Mb size?
2. What do you want to reduce from 50 to 25 for these 100 users?
Are you talking about individuals mail boxes in /var/mail?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2006 11:33 PM
04-06-2006 11:33 PM
Re: script for mail IDs
# find /var/mail -xdev -type f -size +25000000c
This will find (and list) all mail boxes whose size exceeds 25MB (well, properly, we should use 25*1024*1024).
See the manpages for 'find' for a detailed explanation.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2006 11:57 PM
04-06-2006 11:57 PM
Re: script for mail IDs
the mailbox size is 100MB, i want to reduce these to 25 MB, i want to know how to run the script and what would be the script
i have already found these (find /var/mail -xdev -type f -size +25000000c)
thanks you for reply
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 12:27 AM
04-07-2006 12:27 AM
Re: script for mail IDs
I don't think there is a clean solution.
You could just split each users mail file into 25Mb sizes (split -b) and remove all but the last split file. But this may mean the user can not use the mail file, as it would be in wrong format.
If you for example lose the From line the mail is not shown.
Best way may be to ask the users to read their mail!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2006 12:42 AM
04-07-2006 12:42 AM
Re: script for mail IDs
sorry to follow-up mail, but I became interested in this problem.
Doing a search did bring up a possible solution, not based on filesize but date !
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=958047
No doubt somebody is going to come up with a context sensitive cut perl program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 09:23 PM
04-10-2006 09:23 PM
Re: script for mail IDs
any update on this? Have you tried out any of the solutions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:24 PM
08-02-2006 07:24 PM
Re: script for mail IDs
We have to do it mannual only
Thanks and Regards
Wish