Contact Information

Chris Toohey

Like what you see? Help feed-the-beast by donating to the site and it's humbly thankful author!

My Twitpic Updates
    Site Resources

    RSS Site Content
    Syndicate This Site!
    DG Banner Logo
    Advertisements

    IBM Lotus Notes and Domino 7 now available

    Disabling $KeepPrivate documents!

    03/19/2003 03:20:57 PM | Chris Toohey | Saylorsburg, PA

    The other day I got an email that I thought that my boss should see. Of course, the originator sent the email message to me (and other people) having used the "Prevent Copying" attribute, which would not allow me to print, forward or copy the message. I could have always taken a screen print of this, but with my "Disable Privacy" SmartIcon I was able to forward the e-mail message along.

    Now before you start thinking about the moral conflicts in disabling the "Prevent Copying" safeguard; sharing information etc. that was FYEO, you have to understand that people who curse you out in an unprofessional tone (I say that having been cursed out before in quite a professional tone before) because you informed them that, due to company policy, they cannot send a 15 MB M$ Powerpoint presentation to 200 of their closest friends are not subject to the same treatment as someone who's sending you personal and confidential information. I'm not telling you to use this when your HR department sends you your payroll information, or your fellow co-workers send the server information for joining the MOHAA-LAN party. This is to be used for those times when the aforementioned non-professionals nasty-gram you just for doing your job.

    A slight modification (added logic and better client UI) of the old formula implementation sits in a SmartIcon that has saved me having to call people over to my desk to read something that wasn't meant for anyone else to see!

    Once you've selected the SmartIcon that you wish to use, have added it to the SmartIcon bar, paste this code into the Formula section:

    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."))

    Now, that you have your SmartIcon, let's use it!

    If the document's $KeepPrivate field value is set, it changes the value to "" or blank and lets you know that the message can now be forwarded and/or copied.


    If the $KeepPrivate field is not set, it simply lets you know that the message doesn't appear to have the "Prevent Copying" Delivery Option selected..

    After running this small-but-useful bit of formula, you can now forward that nasty-gram on!


    Like what you see? Help feed-the-beast by donating to the site and it's humbly thankful author!

    Comments

    Jan Michael Wrangel

    Some ";" are missing. I added them and everything works fine ;-)

    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.")
    	)
    
    


    lone vowel
    09/20/2007 10:01:57 AM

    Thank you, that was an awesome fix! Amazingly effective. Glad i learnt that the Prevent Copy is so easily disabled! Much respect to the author and the first commentator. =)


    Tom Gregg
    12/06/2007 01:48:57 PM

    I have Notes 7. I put in the button, and the message comes back that it disabled prevent copy, but it still cannot be copied. Repeated use of the button always says prevent copying has been disabled. It seems to recognize the flag, but cannot reset it. Using the button on notes that do not have keep private get the message that the flag was not found. Thanks


    Chris Toohey
    http://www.dominoguru.com
    12/06/2007 01:57:02 PM

    I've run into this as well - the Notes 6.5/7/(possibly)8 mail template triggers the UI code which locks (as far as I can tell) the ability to modify the $$KeepPrivate field/flag.

    Run this from the view, and you should be good to go!


    John Swick
    04/21/2008 10:03:35 AM

    This still doesnt allow me to forward. I try opening the email, running the script, I get the "selected message can now be forwarded/copied", but when I hit forward, it says its locked.

    Any ideas?? I have lotus notes 6.5


    John Swick
    04/21/2008 10:05:56 AM

    Nevermind, I did this from the view and it worked perfectly.

    Thanks Chris!


    Chevy
    05/14/2008 01:01:12 PM

    What do you mean "Run this from the view, and you should be good to go!". From the preview?
    I've tried it , but no luck. Thanks in advance.


    Chris Toohey
    http://www.dominoguru.com
    05/14/2008 01:49:17 PM

    @Chevy:

    Any UI rendering of the document - either Preview or by opening the email itself - will result in the code that "locks" the document from this edit. So you'll need to do trigger this SmartIcon while in your Inbox/View/Folder.


    Chevy
    05/14/2008 11:06:46 PM

    Thank You. That was awesome. I have a jerk that I work with that just tries to be difficult. By having the KeepPrivate flag on his email it forced me to have to reply to all without any context to the original email. This will make my life easier. You're the best.


    Jorge Gordillo
    11/04/2008 02:23:46 PM

    It works fine thanks a Lot.



    Add a New Comment


    (Not Published/Public)
    Remember my Information!

    (Enter the text from the image to proceed)

    (Full markup allowed in the comment field below; play nice!)

    Live Comments Preview