]> the.earth.li Git - autodns.git/commitdiff
Ensure we split commands for MIME signed mail.
authorJonathan McDowell <noodles@earth.li>
Wed, 1 Nov 2006 13:37:37 +0000 (13:37 +0000)
committerJonathan McDowell <noodles@earth.li>
Wed, 1 Nov 2006 13:37:37 +0000 (13:37 +0000)
Make sure we split incoming commands that were MIME signed on new lines.

git-archimport-id: noodles@earth.li--pie/autodns--mainline--1.0--patch-19

autodns.pl

index ab5859cb22c42bc636b3e54e55b6be59bb86c521..04d0d514a660d9edf847268375d051b3a4c36261 100755 (executable)
@@ -261,6 +261,7 @@ if ($entity->parts) {
        # And grab what it has to say.
        @GPGERROR=<GPGERR>;
        @COMMANDS=<GPGOUT>;
+       @COMMANDS = split /\n/,$entity->bodyhandle->as_string;
        close GPGERR;
        close GPGOUT;
        waitpid $pid, 0;