/[winpt]/trunk/Src/wptMAPI.cpp
ViewVC logotype

Diff of /trunk/Src/wptMAPI.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 121 by twoaday, Mon Dec 12 11:19:56 2005 UTC revision 129 by twoaday, Fri Dec 30 13:56:10 2005 UTC
# Line 376  mapi_send_message (gpgme_recipients_t rs Line 376  mapi_send_message (gpgme_recipients_t rs
376    
377    
378  static int  static int
379  add_recipient (gpgme_recipients_t * r_rset, const char * addr)  add_recipient (gpgme_recipients_t *r_rset, const char *addr)
380  {  {
381      gpg_keycache_t pub = keycache_get_ctx (1);      gpg_keycache_t pub = keycache_get_ctx (1);
382      gpgme_key_t key;      gpgme_key_t key;
383      gpgme_error_t rc;      gpgme_error_t rc;
384      const char * s;      char *uid;
385    
386      if (!*r_rset)      if (!*r_rset)
387          gpgme_recipients_new (&(*r_rset));          gpgme_recipients_new (&(*r_rset));
# Line 390  add_recipient (gpgme_recipients_t * r_rs Line 390  add_recipient (gpgme_recipients_t * r_rs
390          log_box (_("Add Recipient"), MB_ERR, _("Could not find key for '%s'"), addr);          log_box (_("Add Recipient"), MB_ERR, _("Could not find key for '%s'"), addr);
391          return -1;          return -1;
392      }      }
393      s = key->uids->uid;      if (key->uids->uid) {
394      if (s)          uid = utf8_to_wincp2 (key->uids->uid);
395          gpgme_recipients_add_name (*r_rset, s);          gpgme_recipients_add_name (*r_rset, uid);
396            free_if_alloc (uid);
397        }
398      return 0;      return 0;
399  } /* add_recipient */  } /* add_recipient */
400    

Legend:
Removed from v.121  
changed lines
  Added in v.129

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26