# HG changeset patch # User mortenp # Date 1225659280 -39600 # Node ID 94429995a6a880677330b6168230b3332c35e0e1 # Parent 4a7d461273c3b3fbef3450c8be05adfe38db7227 Added Postfix pipe backend support (Niki Guldbrand) diff -r 4a7d461273c3 -r 94429995a6a8 ChangeLog --- 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) diff -r 4a7d461273c3 -r 94429995a6a8 src/mlmmj-recieve.c --- 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;