changeset 689:94429995a6a8

Added Postfix pipe backend support (Niki Guldbrand)
author mortenp
date Mon, 03 Nov 2008 07:54:40 +1100
parents 4a7d461273c3
children 271091e9f03e
files ChangeLog src/mlmmj-recieve.c
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Nov 03 05:24:19 2008 +1100
+++ b/ChangeLog	Mon Nov 03 07:54:40 2008 +1100
@@ -1,3 +1,4 @@
+ o Added Postfix pipe backend support (Niki Guldbrand)
  o PHP admin interface bugfix (Niki Guldbrand)
  o Added support for static bounce addresses (Thomas Jarosch)
  o Added a sanity check in mlmmj-receive-strip (Chris Webb)
--- a/src/mlmmj-recieve.c	Mon Nov 03 05:24:19 2008 +1100
+++ b/src/mlmmj-recieve.c	Mon Nov 03 07:54:40 2008 +1100
@@ -42,10 +42,12 @@
 
 static void print_help(const char *prg)
 {
-        printf("Usage: %s -L /path/to/listdir [-h] [-V] [-P] [-F]\n"
+        printf("Usage: %s -L /path/to/listdir [-s sender@example.org] [-e extension] [-h] [-V] [-P] [-F]\n"
 	       " -h: This help\n"
 	       " -F: Don't fork in the background\n"
 	       " -L: Full path to list directory\n"
+	       " -s: Specify sender address\n"
+	       " -e: The foo part of user+foo@example.org\n"
 	       " -P: Don't execute mlmmj-process\n"
 	       " -V: Print version\n", prg);
 	exit(EXIT_SUCCESS);
@@ -69,7 +71,7 @@
 	mlmmjprocess = concatstr(2, bindir, "/mlmmj-process");
 	myfree(bindir);
 	
-	while ((opt = getopt(argc, argv, "hPVL:F")) != -1) {
+	while ((opt = getopt(argc, argv, "hPVL:s:e:F")) != -1) {
 		switch(opt) {
 		case 'h':
 			print_help(argv[0]);
@@ -77,6 +79,12 @@
 		case 'L':
 			listdir = optarg;
 			break;
+		case 's':
+			setenv("SENDER", optarg, 1);
+			break;
+		case 'e':
+			setenv("EXTENSION", optarg, 1);
+			break;
 		case 'P':
 			noprocess = 1;
 			break;