/[mailutils]/mailutils/mailbox/imap/folder.c
ViewVC logotype

Diff of /mailutils/mailbox/imap/folder.c

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

revision 1.59 by gray, Thu Aug 28 19:40:48 2003 UTC revision 1.60 by gray, Fri Aug 29 19:11:45 2003 UTC
# Line 251  tls (folder_t folder) Line 251  tls (folder_t folder)
251    if (!mu_tls_enable || check_capa (f_imap, "STARTTLS"))    if (!mu_tls_enable || check_capa (f_imap, "STARTTLS"))
252      return -1;      return -1;
253        
254      FOLDER_DEBUG1 (folder, MU_DEBUG_PROT, "g%u STARTTLS\n", f_imap->seq);
255    status = imap_writeline (f_imap, "g%u STARTTLS\r\n",    status = imap_writeline (f_imap, "g%u STARTTLS\r\n",
256                             f_imap->seq, f_imap->user, f_imap->passwd);                             f_imap->seq++, f_imap->user, f_imap->passwd);
257    CHECK_ERROR (f_imap, status);    CHECK_ERROR (f_imap, status);
258    status = imap_send (f_imap);    status = imap_send (f_imap);
259    CHECK_ERROR (f_imap, status);    CHECK_ERROR (f_imap, status);
# Line 313  authenticate_imap_login (authority_t aut Line 314  authenticate_imap_login (authority_t aut
314              url_get_passwd (folder->url, f_imap->passwd, n + 1, NULL);              url_get_passwd (folder->url, f_imap->passwd, n + 1, NULL);
315            }            }
316    
317          if (f_imap->user == NULL || f_imap->passwd == NULL)          if (f_imap->user == NULL)
318            {            {
319              CHECK_ERROR_CLOSE (folder, f_imap, EINVAL);              CHECK_ERROR_CLOSE (folder, f_imap, MU_ERR_NOUSERNAME);
320              }
321            if (f_imap->passwd == NULL)
322              {
323                CHECK_ERROR_CLOSE (folder, f_imap, MU_ERR_NOPASSWORD);
324            }            }
325          status = imap_writeline (f_imap, "g%u LOGIN %s %s\r\n",          status = imap_writeline (f_imap, "g%u LOGIN %s %s\r\n",
326                                   f_imap->seq, f_imap->user, f_imap->passwd);                                   f_imap->seq, f_imap->user, f_imap->passwd);

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26