Kaynağa Gözat

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

Michael Elkins 24 yıl önce
ebeveyn
işleme
5eaa4e5512
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      main.c

+ 5 - 0
main.c

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