Diff for scripts/perl/mail-gnupg/mail-gnupg-encrypt.pl between version 1.3 and 1.4
| version 1.3, 2005/01/16 19:57:27 |
version 1.4, 2010/10/05 23:03:09 |
|
|
| # | /path/to/mail-gnupg-encrypt.pl -r your@email.address.com |
# | /path/to/mail-gnupg-encrypt.pl -r your@email.address.com |
| # |
# |
| |
|
| # $Platon: scripts/perl/mail-gnupg/mail-gnupg-encrypt.pl,v 1.2 2005/01/15 02:19:28 rajo Exp $ |
# $Platon: scripts/perl/mail-gnupg/mail-gnupg-encrypt.pl,v 1.3 2005/01/16 19:57:27 rajo Exp $ |
| |
|
| use strict; |
use strict; |
| use warnings; |
use warnings; |
|
|
| |
|
| $VERSION = do { my @r = (q$Revision$=~/\d+/g); sprintf "%d." . "%02d" x $#r, @r }; |
$VERSION = do { my @r = (q$Revision$=~/\d+/g); sprintf "%d." . "%02d" x $#r, @r }; |
| |
|
| $boundary = "mail-gnupg-ver-$VERSION-pid-$PID"; |
my @char=("A".."Z", "a".."z", 0..9); |
| |
$boundary = join("", @char[map{rand @char} (1..16)]); |
| |
|
| $new_content_type = "Content-Type: multipart/encrypted; protocol=\"application/pgp-encrypted\";\n\tboundary=\"$boundary\"\n"; |
$new_content_type = "Content-Type: multipart/encrypted; protocol=\"application/pgp-encrypted\";\n\tboundary=\"$boundary\"\n"; |
| $old_content_type = ''; |
$old_content_type = ''; |
| $header_line = ''; |
$header_line = ''; |
|
|
| print; |
print; |
| } |
} |
| # print terminator |
# print terminator |
| print "\n--$boundary--"; |
print "\n--$boundary--\n"; |
| } |
} |
| |
|
| close CIPHER; |
close CIPHER; |
Platon Group <platon@platon.org> http://platon.org/
|
|