]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
fix stuff for 1.2.6.1
authormmj <none@none>
Mon, 9 May 2005 07:39:08 +0000 (17:39 +1000)
committermmj <none@none>
Mon, 9 May 2005 07:39:08 +0000 (17:39 +1000)
ChangeLog
VERSION
src/do_all_the_voodo_here.c
src/mlmmj-sub.c

index 5767fc3f07897ff7f927c4d1e5a0a7ae595c4b95..6ae9bc9b7bbbe132ff45c16a23beda6c944f8575 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+1.2.6.1
+ o Make sure the fromaddr is correct on sub-subscribed mails
+ o Don't add an empty subject if there was one present
 1.2.6
  o If prefix but no Subject: header is present, add one (Jakob Hirsch)
  o Add notification mail when subbed people try to sub (Jakob Hirsch)
diff --git a/VERSION b/VERSION
index 3c43790f5d82098269f51ba85ec7f9c568c60bf5..c3cb87fc00aa20000c713437bb68450ee2530e11 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.2.6
+1.2.6.1
index da4256091ef2e8f671ee01d5f4c977e542d531d7..35cfc0e964d693c54d2d41a9ef57e9342c7701b1 100644 (file)
@@ -142,6 +142,7 @@ int do_all_the_voodo_here(int infd, int outfd, int hdrfd, int footfd,
                /* Add Subject: prefix if wanted */
                if(prefix) {
                        if(strncasecmp(hdrline, "Subject:", 8) == 0) {
+                               subject_present = 1;
                                unqp = cleanquotedp(hdrline + 8);
                                if(strstr(hdrline + 8, prefix) == NULL &&
                                   strstr(unqp, prefix) == NULL) {
index 9eb03bb16a54c8d19ecbc5755a7b25aee09fcb01..8afc9c200d589de3dea5d6a6828194bdd01b11f6 100644 (file)
@@ -240,23 +240,25 @@ static void print_help(const char *prg)
        exit(EXIT_SUCCESS);
 }
 
-void generate_subscribed(const char *listdir, const char *listaddr,
-                        const char *subaddr, const char *mlmmjsend)
+void generate_subscribed(const char *listdir, const char *subaddr,
+               const char *mlmmjsend)
 {
-       char *queuefilename, *fromaddr, *listname, *listfqdn;
+       char *queuefilename, *fromaddr, *listname, *listfqdn, *listaddr;
 
+       listaddr = getlistaddr(listdir);
        listname = genlistname(listaddr);
        listfqdn = genlistfqdn(listaddr);
 
        fromaddr = concatstr(3, listname, "+bounces-help@", listfqdn);
 
-       myfree(listname);
-       myfree(listfqdn);
-
        queuefilename = prepstdreply(listdir, "sub-subscribed", "$helpaddr$",
                                     subaddr, NULL, 0, NULL);
        MY_ASSERT(queuefilename);
 
+       myfree(listaddr);
+       myfree(listname);
+       myfree(listfqdn);
+       
        execlp(mlmmjsend, mlmmjsend,
                                "-l", "1",
                                "-T", subaddr,
@@ -459,7 +461,7 @@ int main(int argc, char **argv)
                myfree(sublockname);
 
                printf("%s is already subscribed to %s.\n", address, listaddr);
-               generate_subscribed(listdir, listaddr, address, mlmmjsend);
+               generate_subscribed(listdir, address, mlmmjsend);
                
                return EXIT_SUCCESS;
        }