X-Git-Url: https://code.th-h.de/?p=scripts.git;a=blobdiff_plain;f=mmm%2Fmmm.pl;h=e82e0e29a36b22a35011447dfe3db86ee007fef3;hp=2b20fb3aaddfa6e2c372970ed6000a9d0b36945a;hb=HEAD;hpb=1725477449fac0a046e14ca8c2bfbffef3d7905b;ds=sidebyside diff --git a/mmm/mmm.pl b/mmm/mmm.pl index 2b20fb3..e82e0e2 100644 --- a/mmm/mmm.pl +++ b/mmm/mmm.pl @@ -1,17 +1,17 @@ #! /usr/bin/perl -W # -# mmm Version 0.2 by Thomas Hochstein +# mmm Version 0.3 by Thomas Hochstein # # Create a MIME multipart/alternative part, containing # text/plain (in Markdowen) and text/html, from a # Markdown file. # -# Copyright (c) 2015-2016 Thomas Hochstein +# Copyright (c) 2015-2016 Thomas Hochstein # # It can be redistributed and/or modified under the same terms under # which Perl itself is published. -my $VERSION = "0.2"; +my $VERSION = "0.3"; use strict; use Getopt::Long qw(GetOptions); @@ -82,14 +82,14 @@ exit(0); sub GenBoundary { my $hex; - $hex .= sprintf("%x", rand 16) for 1..20; - return ( "----------" . $hex); + $hex .= sprintf("%x", rand 16) for 1..25; + return ( "--MMM" . $hex); } sub ShowVersion { print "mmm v$VERSION\n"; print "MIME multipart/alternative from Markdown - MMM\n"; - print "Copyright (c) 2015 Thomas Hochstein \n"; + print "Copyright (c) 2015 Thomas Hochstein \n"; print "This program is free software; you may redistribute it ". "and/or modify it under the same terms as Perl itself.\n"; exit(100);