Home > Domino Tips > Developer > LotusScript action button manages Lotus Notes mail files
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

LOTUSSCRIPT

LotusScript action button manages Lotus Notes mail files


Jessica Fyke
10.30.2008
Rating: -3.45- (out of 5) Hall of fame tip of the month winner


Lotus Notes and Domino tips, tutorials and how-to articles
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


This action button features sub-actions that lets Lotus Notes
Related resources from SearchDomino.com:
Top 10 LotusScript tips

LotusScript Learning Guide

LotusScript Reference Center

users manage their mail files, investigate file sizes, get quota details, delete attachments and empty trash bins using a single button.

Apply this action button to any view or folder in Lotus Notes mail files. "Inbox," "All Documents," "Sent," and a custom view for "all with Attachments" work well.

Although some of these actions are redundant and can be accessed elsewhere, users benefit from having them bundled.

  1. Create an action button with sub actions. You'll want to a use title similar to "Mail Management Tools."
  2. Create an action under "Mail Management Tools" and call it "Get Mail File Size." Add the following LotusScript to the On Click event:
    Sub Click(Source As Button)
            Dim MFSsession As New NotesSession
            Dim MFSdb As NotesDatabase
            Set MFSdb = MFSsession.CurrentDatabase
            FileSize=MFSdb.Size/1024/1024
            Messagebox "Your Mail file size is 
    currently " & Cstr(FileSize)& " MB",64,"Mail File Size"
            End Sub
    
  3. Create an action under "Mail Management Tools" and call it "Get Quota Details." Add the following LotusScript to "Initialize."

    Note: This will only work if you use quotas on your mail files.

    LotusScript for action button
    (Click on code for enlarged view and script download.)

  4. Create an action under "Mail Management Tools" and call it "Delete Selected Attachment(s)." Next, add the following LotusScript to "Initialize."

    LotusScript for action button
    (Click on code for enlarged view and script download.)

  5. Create a View to display email messages with attachments and use the @Attachments function in the view selection criteria.
  6. Create an action under "Mail Management Tools" and call it "View all with Attachments." Add this Formula language code to the action:
    @PostedCommand([OpenView];"Attachments")
    
  7. Create an action under "Mail Management Tools" and call it "Empty Trash." Add the following Formula language code to the action:
    @PostedCommand([OpenView];"($SoftDeletions)");
    @Command([ToolsRunMacro];"(Empty Trash)")
    

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member Jessica Fyke. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

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.


Submit a Tip




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



RELATED CONTENT
E-mail
Secure Lotus Notes/Domino 8.x from mail to unknown recipients
Domino server setting and email policy tricks admins must know
Top 10 Lotus Notes/Domino administration tips of 2008
Can Lotus Notes/Domino and Microsoft SharePoint play nice together?
Using Formula language code to sort Lotus Notes messages by subject
Exploring Lotus Notes Domino 8.0.1 and beyond
LotusScript agent moves tagged spam email to junk mail folder
Send SMS text messages between Lotus Notes 7 and mobile devices
Update to Exchange Server 2003 Connector for Lotus Notes
Two fast and easy Domino Web Access performance tips

LotusScript
LotusScript finds the first occurrence of a string from the right
Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
Search Microsoft Active Directory with LotusScript
Three steps to trap and handle save conflicts with LotusScript
Troubleshoot agents by displaying LotusScript variables online
LotusScript sorts lists alphabetically
LotusScript code rebuilds corrupted busytime.nsf file
Soft-code item names to facilitate LotusScript management
LotusScript agent automates selective mail file replication
LotusScript filters and attaches files to a Notes form

Lotus Notes Domino Mailbox Management
Secure Lotus Notes/Domino 8.x from mail to unknown recipients
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
Customize the principal field of outgoing email messages
JavaScript error encountered when opening Lotus Notes email
Bringing MailRule documents back into view
LotusScript agent moves tagged spam email to junk mail folder
Limit the size of incoming email attachments to a Lotus Domino server

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