Commit 98198b1e 98198b1efc7aa9a47fe037cc213191d874c09ba8 by Sergey Poznyakoff

Fix up the folder dir by appending a format specifier (mh:/) to it.

1 parent 32cdeb0d
...@@ -424,10 +424,13 @@ send (int argc, char **argv) ...@@ -424,10 +424,13 @@ send (int argc, char **argv)
424 { 424 {
425 int i, rc; 425 int i, rc;
426 426
427 /* Verify all arguments */
427 for (i = 0; i < argc; i++) 428 for (i = 0; i < argc; i++)
428 if (check_file (argv[i])) 429 if (check_file (argv[i]))
429 return 1; 430 return 1;
430 431
432 /* Process the mtstailor file and detach from the console if
433 required */
431 read_mts_profile (); 434 read_mts_profile ();
432 435
433 if (background && daemon (0, 0) < 0) 436 if (background && daemon (0, 0) < 0)
...@@ -436,6 +439,11 @@ send (int argc, char **argv) ...@@ -436,6 +439,11 @@ send (int argc, char **argv)
436 return 1; 439 return 1;
437 } 440 }
438 441
442 /* Prepend url specifier to the folder dir. We won't need this
443 when the default format becomes configurable */
444 asprintf (&mu_path_folder_dir, "mh:%s", mu_path_folder_dir);
445
446 /* Finally, do the work */
439 rc = list_do (mesg_list, _action_send, NULL); 447 rc = list_do (mesg_list, _action_send, NULL);
440 return rc; 448 return rc;
441 } 449 }
......