equal
deleted
inserted
replaced
145 context = g_option_context_new ("- test send message synchronously"); |
145 context = g_option_context_new ("- test send message synchronously"); |
146 g_option_context_add_main_entries (context, entries, NULL); |
146 g_option_context_add_main_entries (context, entries, NULL); |
147 g_option_context_parse (context, &argc, &argv, NULL); |
147 g_option_context_parse (context, &argc, &argv, NULL); |
148 g_option_context_free (context); |
148 g_option_context_free (context); |
149 |
149 |
150 if (!server || !username || !password || !recipient) { |
150 if (!username || !password || !recipient) { |
151 g_printerr ("For usage, try %s --help\n", argv[0]); |
151 g_printerr ("For usage, try %s --help\n", argv[0]); |
152 return EXIT_FAILURE; |
152 return EXIT_FAILURE; |
153 } |
153 } |
154 |
154 |
155 if (username && strchr (username, '@') == NULL) { |
155 if (username && strchr (username, '@') == NULL) { |