Copying Domino Mail Rules Between Databases

Mail rules can be created by users on their Lotus Notes mail files to filter and process incoming mail. Unfortunately they’re not easy to copy between different mail files.  A simple copy and paste copies nothing. The reason is that they’re protected by the no copying feature of notes that means you can control what happens to an email when it gets to the recipient (well if they’re on notes that is).

However, this setting can be switched off per document by clearing $KeepPrivate field.

This post by Chris Toohey @ details how the field can be cleared for no copy documents. However this can also be used on mail rule documents.

Here’s how:

1. Open up lotus notes and click on File -> Preferences.

2. Now select Toolbar -> Customize -> New -> Button

3. In caption text give the button a name (e.g. Clear KeepPrivate)

4. In the popup help type in something helpful (e.g. This will allow you to copy protected documents)

5. Now in the formula field paste in Chris’ code:

FIELD $KeepPrivate := $KeepPrivate; 
    @If($KeepPrivate != ""; 
        @Do( @SetField("$KeepPrivate";""); 
            @Prompt([OK];"$KeepPrivate Flag Disabled"; 
                "The selected message can now be forwarded/copied!") );
            @Prompt([OK];"$KeepPrivate Flag Not Found"; 
                "The selected message does not appear to have forwarding/copying disabled.") 

6. If you don’t want the prompts you can remove those from the code so it looks like this instead:

FIELD $KeepPrivate := $KeepPrivate;
@If($KeepPrivate != "";

7. Click Change Icon and select the icon you’d like and click OK

8. Next select the toolbar you want to add the icon to and select the icon and Add Button to add it to that toolbar. Click OK to exit preferences.

9. The icon should appear on your toolbar.

10. Select the mail rule you want to unprotect and then click on the newly created button in the toolbar

11. The document should now be copyable. CTRL+C then CTRL+V to copy it to the new location.

Thanks to Chris for posting the code!

Tagged , , , , ,

2 thoughts on “Copying Domino Mail Rules Between Databases

  1. dsvatz says:

    Can I use this to select multiple rules?

  2. Hiram Claudio says:

    This was a life saver … thank you!!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: