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

« back to all changes in this revision

Viewing changes to alpine/imap.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: imap.c 739 2007-10-04 17:55:10Z hubert@u.washington.edu $";
 
2
static char rcsid[] = "$Id: imap.c 1030 2008-04-10 21:26:20Z hubert@u.washington.edu $";
3
3
#endif
4
4
 
5
5
/*
6
6
 * ========================================================================
7
 
 * Copyright 2006-2007 University of Washington
 
7
 * Copyright 2006-2008 University of Washington
8
8
 *
9
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
10
 * you may not use this file except in compliance with the License.
45
45
#include "../pith/news.h"
46
46
#include "../pith/util.h"
47
47
#include "../pith/list.h"
 
48
#include "../pith/margin.h"
48
49
 
49
50
#if     (WINCRED > 0)
50
51
#include <wincred.h>
229
230
    char        message[sizeof(ps_global->c_client_error)];
230
231
    char       *occurence;
231
232
    int         was_capitalized;
 
233
    static char saw_kerberos_init_warning;
232
234
    time_t      now;
233
235
    struct tm  *tm_now;
234
236
 
261
263
       */
262
264
      return;
263
265
 
264
 
    /*---- replace all "mailbox" with "folder" ------*/
265
266
    strncpy(message, string, sizeof(message));
266
267
    message[sizeof(message) - 1] = '\0';
 
268
 
 
269
    if(errflg == WARN && srchstr(message, "try running kinit") != NULL){
 
270
        if(saw_kerberos_init_warning)
 
271
          return;
 
272
 
 
273
        saw_kerberos_init_warning = 1;
 
274
    }
 
275
 
 
276
    /*---- replace all "mailbox" with "folder" ------*/
267
277
    occurence = srchstr(message, "mailbox");
268
278
    while(occurence) {
269
279
        if(!*(occurence+7)
943
953
 
944
954
        save_dont_use = ps_global->dont_use_init_cmds;
945
955
        ps_global->dont_use_init_cmds = 1;
946
 
        flags = OE_PASSWD;
 
956
        flags = F_ON(F_QUELL_ASTERISKS, ps_global) ? OE_PASSWD_NOAST : OE_PASSWD;
947
957
#ifdef _WINDOWS
948
958
        rc = os_login_dialog(mb, user, NETMAXUSER, pwd, NETMAXPASSWD, 0, 1,
949
959
                             &preserve_password);
1393
1403
        gf_filter_init();
1394
1404
        gf_link_filter(gf_html2plain,
1395
1405
                       gf_html2plain_opt(NULL,
1396
 
                                         ps_global->ttyo->screen_cols, NULL,
 
1406
                                         ps_global->ttyo->screen_cols, non_messageview_margin(),
1397
1407
                                         &handles, NULL, GFHP_LOCAL_HANDLES));
1398
1408
        gf_set_so_readc(&gc, in_store);
1399
1409
        gf_set_so_writec(&pc, out_store);