--host option didn't check for imaps: prefix

This commit is contained in:
Michael Elkins 2001-06-22 23:30:41 +00:00
parent ea361ad116
commit 5eaa4e5512

5
main.c
View File

@ -192,6 +192,11 @@ main (int argc, char **argv)
global.box = optarg; global.box = optarg;
break; break;
case 's': case 's':
if (!strncasecmp("imaps:", optarg, 6))
{
global.use_imaps = 1;
optarg += 6;
}
global.host = optarg; global.host = optarg;
break; break;
case 'u': case 'u':