c++ - checking if Sign/Encrypt are checked in the Delivery Options of an outgoing email -


i'm writing c++ plugin lotus notes. when user sends email, know whether sign/encrypt options checked in delivery options of outgoing email.

i tried use nsfnoteissignedorsealed, supplying handle outgoing note, returns false when sign/encrypt checked. (i guess because email not yet encrypted/signed when plugin called). saw in header file stdnames.h defines item_name_note_forcesign , item_name_note_forceseal, sound promising. how check value of items using handle note?

i'm little surprised you're writing notes plugin module without having learned how read text item value document, or @ least without having learned in documentation can go find out how. code below literally cut/paste notes c api users guide, chapter 5-3, reading documents, except i've taken liberty of changing field name constant used in sample code on page match 1 of 2 fields you're looking for.

/* sign field within note. */   field_found = nsfitemispresent (note_handle,                 item_name_note_forcesign,                 strlen (item_name_note_forcesign));    /* if sign field there, contents , print it.    if sign field not there, print message.*/   if (field_found)    {    field_len = nsfitemgettext (note_handle,                  item_name_note_forcesign,                 field_text,                 sizeof (field_text));    printf ("item_name_note_forcesign field is: %s\n", field_text);    }   else    printf ("item_name_note_forcesign field not found.\n"); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -