Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Tip: Issue a warning about sending unsigned messages with attachments

Andreas Arning (ARNING@de.ibm.com), Software Developer, IBM, Boeblingen, Germany
Andreas Arning is a software developer at the IBM Lab in Boeblingen, Germany. He works on the workflow component which is part of the WebSphere Product. You can reach Andreas at ARNING@de.ibm.com.

Summary:  This tip describes how to create pop-up warning any time you attempt to send an unsigned mail message with a file attachment.

Date:  09 Nov 2004
Level:  Intermediate

Activity:  2722 views
Comments:  

Because spam mail senders sometimes send worms and viruses using a bogus user ID, it is increasingly important to distinguish authenticated user IDs from unauthenticated ones. To address this issue, Lotus Notes offers a digital signature for mail messages, which may be checked automatically by the receiver's mail client, assuming the receiver's mail client is a Lotus Notes client. However, this feature works only when users sign their mail messages. Setting the Notes mail option Always sign mails is not safe because this default is not always in effect (for instance, when resending an already sent mail message).

This tip describes a simple programmatic solution that prompts you before sending an unsigned mail message with an attachment as shown in the following screen:


Figure 1. Mail not signed yet prompt
Mail not signed yet prompt

NOTE: If you refresh your mail template, then you must repeat the following steps.

  1. Open your mail template in Domino Designer.
  2. Open the Memo form. Accept the warning that this change will be lost when the template is refreshed.
  3. In the programmer's pane, click the Send (Action) in the Object tab.

    NOTE: If you cannot edit the Send (Action) in the programmer's pane, go to the Shared Code - Actions view to open the Send shared action instead.
  4. In the programming window for the "Send (action): Click" formula, add the following code to the beginning of the formula:
    @If(Sign!="1"&@Attachments>0;
     @If(@Prompt([YESNO];"Mail not signed yet";
      "This mail carries "+@Text(@Attachments)+
      " attachment(s) but is not signed yet. Do you want to send it anyway?");
      "";
     @Return(""));
    "");


  5. Save the formula.
  6. Click the Send and File (Action) in the Object tab.

    NOTE: If you cannot edit the Send and File (Action) in the programmer's pane, go to the Shared Code - Actions view to open the Send and File shared action instead.
  7. In the field for the formula, add the above code to the very beginning of the formula.
  8. Save the formula.
  9. Save and close the Memo form.

You may repeat this for the Reply and Reply/History forms. Follow the above instructions for those forms.

Additional comments

  • This modification allows you to send unsigned mail messages with attachments. When prompted, click Yes to send the message without a digital signature. Click No to stop from sending the message. The message remains open in edit mode. You can sign the email, then send it again.
  • Advanced users can place this formula further down in the code after the check for the empty list of adressees.
  • You can modify the formula so it warns you whether or not there are attachments in a message. In this case, use the following code instead:
    @If(Sign!="1";
     @If                 (@Prompt([YESNO];"Mail not signed yet";
      "This mail is not signed yet. Do you want to send it anyway?");
      "";
     @Return(""));
    "");


Resources

About the author

Andreas Arning is a software developer at the IBM Lab in Boeblingen, Germany. He works on the workflow component which is part of the WebSphere Product. You can reach Andreas at ARNING@de.ibm.com.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Lotus
ArticleID=102292
ArticleTitle=Tip: Issue a warning about sending unsigned messages with attachments
publish-date=11092004
author1-email=ARNING@de.ibm.com
author1-email-cc=Copy email address

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

For articles in technology zones (such as Java technology, Linux, Open source, XML), Popular tags shows the top tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), Popular tags shows the top tags for just that product zone.

For articles in technology zones (such as Java technology, Linux, Open source, XML), My tags shows your tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), My tags shows your tags for just that product zone.

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Special offers