Home > Domino Tips > Administrator > Mail > Mail quota info button
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

MAIL

Mail quota info button


Zane Vogelsberg
12.10.2001
Rating: -5.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Users exceeding their mail quota is something that occurs all the time. Going through the database properties box can be difficult and doesn't tell a user what their quota actually is. I created an action button that calls an agent in our corporate mail template on the $Inbox folder call Database Info. Users can click it and their database information is displayed to them including a warning window if they are over their quota. See code below.



Code

Action Button:
@Command([ToolsRunMacro] ; "(database properties)" )

Agent:

Agent Title: (database properties)
Agent Type: Shared, Hidden

Sub Initialize
	Dim session As New NotesSession
	Dim db As NotesDatabase
	Dim server As String
	Dim Size As Long
	Dim Quota As Double
	
	Set db = session.CurrentDatabase
	server=db.Server
	If server="" Then
		server="Local"
	End If
	size=db.Size/1056000
	quota=db.SizeQuota/1024
	Messagebox "Database Information:" &Chr(10)_
	&Chr(10)_
	& "Database Title: " & db.Title & Chr(10) _
	& "Resides on Server: " & server & Chr(10) _
	& "Full File Path name: " & db.FilePath & Chr(10) _
	&Chr(10)_
	& "Database Size Information:" & Chr(10) _
	&Chr(10)_
	& "Size (Mb): " & size & Chr(10) _
	& "Quota: (Mb): " & quota & Chr(10) _
	& "Percent used: " & db.PercentUsed & Chr(10) _
	&Chr(10)_
	& "Database Design Information:" & Chr(10) _
	&Chr(10)_
	& "Inherits from Template: " & db.DesignTemplateName & Chr(10)_
	& "Database is the Template: " & db.TemplateName & Chr(10)_
	& "Replica ID: " & db.ReplicaID,MB_OK+MB_ICONINFORMATION,"Database Property Synopsis"
	
	If quota <> 0 Then
		If size > quota Then
			Messagebox "You are Currently Over your quota" ,MB_OK+MB_ICONINFORMATION,"What this Agent Does"
		End If
	End If
End Sub

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Mail
Run or restart Notes/Domino agents via text messages
How to create mail files using a LotusScript agent
How to turn off the message recall feature in Lotus Notes 8
Domino server setting and email policy tricks admins must know
Top 10 Lotus Notes/Domino administration tips of 2008
Understanding a Lotus Notes Smart Upgrade rollout
Bringing MailRule documents back into view
Use SMTP outbound authentication to relay hosts in Lotus Notes Domino 8
Notes/Domino 6 version of 'Discover Folder'
Five tips to improve email performance

Management/Strategy
IBM tries to woo MS users to Lotus on Linux
Achiever finalist: Service (requests) with a smile
Radicati says Exchange 2003 trumps Domino in TCO
Lotusphere registration on par with last year
Lotus blends Domino into Workplace strategy
Exchange 2003 goes under the microscope
Workplace Messaging to give developers new options
Business use of IM threatened, but FaceTime offers help
Firm reacts to Notes, Domino security holes
IBM to "simplify" Lotus product names

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts