LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-18-2007, 12:03 AM   #1
nics
Member
 
Registered: Mar 2007
Posts: 31

Rep: Reputation: 15
sending mail when quota crosses soft limit


hello everyone!!
i 've written a script for sending mails to clients when their disk quota exceeds the soft limit..
but there is a problem. it sends mail to all including the subject but sends the body only to one and blank message to others.

this command is the main !!!
vi /tmp/email
ur mailbox is nearly full.
plz delete unnecessary mails from mailserver else ur account will be blocked
!wq

#find /var/spool/mail -size +5000k -exec mail -s "approaching account limit:mailbox nearly full" {}</tmp/email \;
(this command sends mail to all whose soft limit is exceeded but send the message body to all(only to one) ..
what can i do so that he message body appears in the mail of everyone????
any suggestions????
plzzzzzzzzzzz help!!!
 
Old 05-18-2007, 06:55 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I found the following web page by using Google.

http://www.computerhope.com/unix/umailx.htm

The interesting part is the carbon copy parameter. It says that if you want to carbon copy more than one person then you have to put the names in quotes. That may provide a clue to your situation.

On another note I can hardly believe that you would use that kiddie spelling in work. Your message "ur mailbox..." and "plz delete..." are incredibly immature and unprofessional.
 
Old 05-19-2007, 09:30 PM   #3
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by stress_junkie
I found the following web page by using Google.

http://www.computerhope.com/unix/umailx.htm

The interesting part is the carbon copy parameter. It says that if you want to carbon copy more than one person then you have to put the names in quotes. That may provide a clue to your situation.

On another note I can hardly believe that you would use that kiddie spelling in work. Your message "ur mailbox..." and "plz delete..." are incredibly immature and unprofessional.

hello!!
your answer was so childish!!!! according to u should i type each and every one's mail id in quotes(thousands of them) in quotes!!!u must be kidding me!!!!!
besides that was just a specimen..u r focussing in other things rather than the main topic.....
anyways thanks
 
  


Reply

Tags
mail, quota, sending


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate soft limit & hard limit for quotas kennyghh Suse/Novell 4 03-03-2011 12:49 PM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM
Location of mail storage once the quota has reached the limit jomy Linux - Enterprise 0 01-10-2005 07:09 AM
Users can't erase any e-mail by Horde (IMP) when reachs the quota hard limit. Why? Hackiller Linux - Software 2 04-02-2004 06:49 AM
Users can't erase any e-mail by Horde (IMP) when reachs the quota hard limit. Why? Hackiller Linux - General 1 04-02-2004 06:41 AM


All times are GMT -5. The time now is 12:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration