examples/lm-send-async.c
changeset 246 ef2e388b8412
parent 167 7bcccfa734e2
child 482 08a9810b415b
equal deleted inserted replaced
245:df2655dbe873 246:ef2e388b8412
   206 	context = g_option_context_new ("- test send message asynchronously");
   206 	context = g_option_context_new ("- test send message asynchronously");
   207 	g_option_context_add_main_entries (context, entries, NULL);
   207 	g_option_context_add_main_entries (context, entries, NULL);
   208 	g_option_context_parse (context, &argc, &argv, NULL);
   208 	g_option_context_parse (context, &argc, &argv, NULL);
   209 	g_option_context_free (context);
   209 	g_option_context_free (context);
   210 	
   210 	
   211 	if (!server || !username || !password || !recipient) {
   211 	if (!username || !password || !recipient) {
   212 		g_printerr ("For usage, try %s --help\n", argv[0]);
   212 		g_printerr ("For usage, try %s --help\n", argv[0]);
   213 		return EXIT_FAILURE;
   213 		return EXIT_FAILURE;
   214 	}
   214 	}
   215 
   215 
   216 	if (username && strchr (username, '@') == NULL) {
   216 	if (username && strchr (username, '@') == NULL) {