--host option didn't check for imaps: prefix
This commit is contained in:
parent
ea361ad116
commit
5eaa4e5512
1 changed files with 5 additions and 0 deletions
5
main.c
5
main.c
|
@ -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':
|
||||||
|
|
Loading…
Add table
Reference in a new issue