~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to alpine/alpine.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2008-09-23 12:17:56 UTC
  • mfrom: (2.1.8 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080923121756-6u4x8bwq89qlzt32
Tags: 2.00+dfsg-2
Update to package description: note that Alpine is no longer in
alpha. (Closes: #499640)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#if !defined(lint) && !defined(DOS)
2
 
static char rcsid[] = "$Id: alpine.c 938 2008-02-29 18:18:49Z hubert@u.washington.edu $";
 
2
static char rcsid[] = "$Id: alpine.c 1071 2008-06-03 22:31:05Z hubert@u.washington.edu $";
3
3
#endif
4
4
 
5
5
/*
22
22
#include "../pith/sort.h"
23
23
#include "../pith/options.h"
24
24
#include "../pith/list.h"
 
25
#include "../pith/conf.h"
25
26
 
26
27
#include "osdep/debuging.h"
27
28
#include "osdep/termout.gen.h"
58
59
#include "colorconf.h"
59
60
#include "print.h"
60
61
#include "after.h"
 
62
#include "smime.h"
61
63
#ifndef _WINDOWS
62
64
#include "../pico/osdep/raw.h"  /* for STD*_FD */
63
65
#endif
182
184
    pith_opt_pretty_var_name       = pretty_var_name;
183
185
    pith_opt_pretty_feature_name   = pretty_feature_name;
184
186
    pith_opt_closing_stream        = titlebar_stream_closing;
 
187
    pith_opt_current_expunged      = mm_expunged_current;
 
188
#ifdef  SMIME
 
189
    pith_opt_smime_get_passphrase  = smime_get_passphrase;
 
190
#endif
185
191
#ifdef  ENABLE_LDAP
186
 
    pith_opt_save_ldap_entry     = save_ldap_entry;
 
192
    pith_opt_save_ldap_entry       = save_ldap_entry;
187
193
#endif
188
194
 
189
195
    status_message_lock_init();
297
303
    mail_parameters(NULL, SET_SENDCOMMAND, (void *) pine_imap_cmd_happened);
298
304
    mail_parameters(NULL, SET_FREESTREAMSPAREP, (void *) sp_free_callback);
299
305
    mail_parameters(NULL, SET_FREEELTSPAREP,    (void *) free_pine_elt);
 
306
#ifdef  SMIME
 
307
    mail_parameters(NULL, SET_FREEBODYSPAREP,   (void *) free_smime_body_sparep);
 
308
#endif
300
309
 
301
310
    init_pinerc(pine_state, &init_pinerc_debugging);
302
311
 
424
433
 
425
434
    init_vars(pine_state, process_init_cmds);
426
435
 
 
436
#ifdef SMIME
 
437
    if(F_ON(F_DONT_DO_SMIME, ps_global))
 
438
      smime_deinit();
 
439
#endif /* SMIME */
 
440
 
427
441
#ifdef  ENABLE_NLS
428
442
    /*
429
443
     * LC_CTYPE is already set from the set_collation call above.
2264
2278
        srv->cmd = 'z';
2265
2279
        break;
2266
2280
 
 
2281
      case MC_SECURITY :        /* S/MIME setup screen */
 
2282
        srv->cmd = 'm';
 
2283
        break;
 
2284
 
2267
2285
      case MC_EXCEPT :
2268
2286
        srv->exc = !srv->exc;
2269
2287
        menu_clear_binding(sparms->keys.menu, 'x');
2315
2333
setup_menu(struct pine *ps)
2316
2334
{
2317
2335
    int         ret = 0, exceptions = 0;
2318
 
    int         printer = 0, passwd = 0, config = 0, sig = 0, dir = 0, exc = 0;
 
2336
    int         printer = 0, passwd = 0, config = 0, sig = 0, dir = 0, smime = 0, exc = 0;
2319
2337
    SCROLL_S    sargs;
2320
2338
    SRV_S      *srv;
2321
2339
    STORE_S    *store;
2345
2363
    dir++;
2346
2364
#endif
2347
2365
 
 
2366
#ifdef  SMIME
 
2367
    smime++;
 
2368
#endif
 
2369
 
2348
2370
    if(ps_global->post_prc)
2349
2371
      exc++;
2350
2372
 
2427
2449
    so_puts(store, _("    command key labels, the titlebar at the top of each page, and quoted\n"));
2428
2450
    so_puts(store, _("    sections of messages you are viewing.\n"));
2429
2451
 
 
2452
    if(smime){
 
2453
        so_puts(store, "\n");
 
2454
        so_puts(store, _("(M) S/MIME:\n"));
 
2455
        so_puts(store, _("    Setup for using S/MIME to verify signed messages, decrypt\n"));
 
2456
        so_puts(store, _("    encrypted messages, and to sign or encrypt outgoing messages.\n"));
 
2457
    }
 
2458
 
2430
2459
    so_puts(store, "\n");
2431
2460
    so_puts(store, _("(Z) RemoteConfigSetup:\n"));
2432
2461
    so_puts(store, _("    This is a command you will probably only want to use once, if at all.\n"));
2488
2517
    if(!dir)
2489
2518
      clrbitn(SETUP_DIRECTORY, sargs.keys.bitmap);
2490
2519
 
 
2520
    if(!smime)
 
2521
      clrbitn(SETUP_SMIME, sargs.keys.bitmap);
 
2522
 
2491
2523
    if(exc)
2492
2524
      menu_init_binding(sargs.keys.menu, 'x', MC_EXCEPT, "X",
2493
2525
                        N_("eXceptions"), SETUP_EXCEPT);
2644
2676
        break;
2645
2677
#endif
2646
2678
 
 
2679
#ifdef  SMIME
 
2680
        /*--- S/MIME --*/
 
2681
      case 'm':
 
2682
        smime_config_screen(ps_global, edit_exceptions);
 
2683
        ps_global->mangled_screen = 1;
 
2684
        break;
 
2685
#endif
 
2686
 
2647
2687
        /*----- CONFIGURE OPTIONS -----*/
2648
2688
      case 'c':
2649
2689
        option_screen(ps_global, edit_exceptions);
3161
3201
 
3162
3202
    dprint((7, "goodnight_gracey: close config files\n"));    
3163
3203
 
 
3204
#ifdef SMIME
 
3205
    smime_deinit();
 
3206
#endif
 
3207
 
3164
3208
    free_pinerc_strings(&pine_state);
3165
3209
 
3166
3210
    strncpy(msg, pf, sizeof(msg));