278 |
if (check_capa (f_imap, "AUTH=ANONYMOUS")) |
if (check_capa (f_imap, "AUTH=ANONYMOUS")) |
279 |
{ |
{ |
280 |
FOLDER_DEBUG0 (folder, MU_DEBUG_PROT, |
FOLDER_DEBUG0 (folder, MU_DEBUG_PROT, |
281 |
"ANONYMOUS capability not present disabled\n"); |
"ANONYMOUS capability not present\n"); |
282 |
return ENOSYS; |
return ENOSYS; |
283 |
} |
} |
284 |
|
|
678 |
assert (folder->authority); |
assert (folder->authority); |
679 |
{ |
{ |
680 |
status = authority_authenticate (folder->authority); |
status = authority_authenticate (folder->authority); |
681 |
CHECK_EAGAIN (f_imap, status); |
if (status) |
682 |
|
{ |
683 |
|
/* Fake folder_imap_close into closing the folder. |
684 |
|
FIXME: The entire state machine should probably |
685 |
|
be revised... */ |
686 |
|
f_imap->isopen++; |
687 |
|
f_imap->state = IMAP_NO_STATE; |
688 |
|
folder_imap_close (folder); |
689 |
|
return status; |
690 |
|
} |
691 |
} |
} |
692 |
|
|
693 |
case IMAP_AUTH_DONE: |
case IMAP_AUTH_DONE: |