- /* Call the function in libmodest-dbus-client: */
- /* TODO: The Message URI system is not yet implemented. */
- const gboolean ret = libmodest_dbus_client_open_message (osso_context,
- "http://todo_some_message_uri");
+ /* For instance,
+ * "pop://nomail%40nodomain.com@pop.gmail.com:995/;use_ssl=wrapped/inbox/GmailId112e166949157685"
+ */
+ if (argc == 2) {
+ url = argv[1];
+ } else {
+ /* TODO: Add some test DBus method to get a valid URL for a message,
+ * just so we can test this method. */
+ g_printerr ("No email URL argument supplied on the command line.\n");
+ return -1;
+ }
+
+ g_print ("Trying to open msg: %s\n", url);
+ ret = libmodest_dbus_client_open_message (osso_context,
+ url);
+