repl: Changed the meaning of -mime: It's now orthogonal to -format/-filter.
authormarkus schnalke <meillo@marmaro.de>
Thu, 9 Feb 2012 15:51:27 +0000 (16:51 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 9 Feb 2012 15:51:27 +0000 (16:51 +0100)
See changes in man page repl(1) for explanations.

man/repl.man1
uip/repl.c

index c3178bb..08b6b6b 100644 (file)
@@ -273,14 +273,16 @@ This message filter file cites the Message-ID and author of the message
 being replied\-to, and then outputs each line of the body prefaced with
 the \*(lq>\*(rq character.
 .PP
 being replied\-to, and then outputs each line of the body prefaced with
 the \*(lq>\*(rq character.
 .PP
-To use the MIME rules for encapsulation, specify the
+To MIME-attach the original message, specify the
 .B \-mime
 switch.
 .B \-mime
 switch.
-This directs
-.B repl
-to add an attachment header field, for which
-.B send
-will care.
+Note: This decision is now unrelated to the \-format and \-filter options.
+It's meaning changed in the transition from nmh to mmh.
+Now it is possible to have the original message quoted in the body
+.B and
+attached as MIME part.
+However, using the \-mime switch is discouraged.
+It may get removed in the future.
 .PP
 If the
 .B \-annotate
 .PP
 If the
 .B \-annotate
index a36b2c7..299185d 100644 (file)
@@ -248,7 +248,6 @@ main(int argc, char **argv)
                                        adios(NULL, "missing argument to %s",
                                                        argp[-2]);
                                filter = getcpy(etcpath(cp));
                                        adios(NULL, "missing argument to %s",
                                                        argp[-2]);
                                filter = getcpy(etcpath(cp));
-                               mime = 0;
                                continue;
                        case FORMSW:
                                if (!(form = *argp++) || *form == '-')
                                continue;
                        case FORMSW:
                                if (!(form = *argp++) || *form == '-')
@@ -258,7 +257,6 @@ main(int argc, char **argv)
 
                        case FRMTSW:
                                filter = getcpy(etcpath(mhlreply));
 
                        case FRMTSW:
                                filter = getcpy(etcpath(mhlreply));
-                               mime = 0;
                                continue;
                        case NFRMTSW:
                                filter = NULL;
                                continue;
                        case NFRMTSW:
                                filter = NULL;
@@ -266,7 +264,6 @@ main(int argc, char **argv)
 
                        case MIMESW:
                                mime++;
 
                        case MIMESW:
                                mime++;
-                               filter = NULL;
                                continue;
                        case NMIMESW:
                                mime = 0;
                                continue;
                        case NMIMESW:
                                mime = 0;
@@ -596,8 +593,8 @@ finished:
                adios(drft, "error writing");
        fclose(out);
 
                adios(drft, "error writing");
        fclose(out);
 
-       /* if we want mime, then add an attachment header */
-       if (!filter && mime && mp) {
+       if (mime && mp) {
+               /* add an attachment header */
                char buffer[BUFSIZ];
 
                snprintf(buffer, sizeof buffer, "+%s %s",
                char buffer[BUFSIZ];
 
                snprintf(buffer, sizeof buffer, "+%s %s",