summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-02-22 22:27:48 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-02-22 22:27:48 +0000
commit98198b1efc7aa9a47fe037cc213191d874c09ba8 (patch)
treeee636f609c7da9d61ae0874cb23c0c105cd3977e
parent32cdeb0d3221429feb65653723ea98c13503f585 (diff)
downloadmailutils-98198b1efc7aa9a47fe037cc213191d874c09ba8.tar.gz
mailutils-98198b1efc7aa9a47fe037cc213191d874c09ba8.tar.bz2
Fix up the folder dir by appending a format specifier (mh:/) to it.
-rw-r--r--mh/send.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mh/send.c b/mh/send.c
index 0b51c2487..9762b6aa3 100644
--- a/mh/send.c
+++ b/mh/send.c
@@ -423,11 +423,14 @@ static int
send (int argc, char **argv)
{
int i, rc;
-
+
+ /* Verify all arguments */
for (i = 0; i < argc; i++)
if (check_file (argv[i]))
return 1;
+ /* Process the mtstailor file and detach from the console if
+ required */
read_mts_profile ();
if (background && daemon (0, 0) < 0)
@@ -436,6 +439,11 @@ send (int argc, char **argv)
return 1;
}
+ /* Prepend url specifier to the folder dir. We won't need this
+ when the default format becomes configurable */
+ asprintf (&mu_path_folder_dir, "mh:%s", mu_path_folder_dir);
+
+ /* Finally, do the work */
rc = list_do (mesg_list, _action_send, NULL);
return rc;
}

Return to:

Send suggestions and report system problems to the System administrator.