/[smecontribs]/rpms/smeserver-vacation/contribs10/smeserver-vacation-1.1-bz6614-autodetect.html.patch
ViewVC logotype

Contents of /rpms/smeserver-vacation/contribs10/smeserver-vacation-1.1-bz6614-autodetect.html.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Apr 14 14:42:38 2020 UTC (4 years, 7 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-34_el7_sme, smeserver-vacation-1_1-31_el7_sme, smeserver-vacation-1_1-32_el7_sme, smeserver-vacation-1_1-30_el7_sme, smeserver-vacation-1_1-35_el7_sme, smeserver-vacation-1_1-36_el7_sme, smeserver-vacation-1_1-26_el7_sme, smeserver-vacation-1_1-27_el7_sme, smeserver-vacation-1_1-33_el7_sme, smeserver-vacation-1_1-28_el7_sme, smeserver-vacation-1_1-29_el7_sme, HEAD
Initial import

1 diff -Nur smeserver-vacation-1.1.old/root/usr/local/bin/vacation smeserver-vacation-1.1/root/usr/local/bin/vacation
2 --- smeserver-vacation-1.1.old/root/usr/local/bin/vacation 2017-01-16 16:44:03.999000000 -0500
3 +++ smeserver-vacation-1.1/root/usr/local/bin/vacation 2017-01-16 16:48:09.939000000 -0500
4 @@ -493,6 +493,8 @@
5 exit(0) if ($no_msg_no_reply);
6 }
7
8 + my $type = ($vacation_msg =~ m/<html/ && $vacation_msg =~ m/<\/html>/ ) ? 'html':'plain';
9 +
10 $vacation_msg =~ s/\$SUBJECT/$subject/g;
11
12 open(MAILPROG, "| $mailprog");
13 @@ -500,7 +502,7 @@
14 print MAILPROG << "EOF";
15 To: $sender
16 Precedence: junk
17 -Content-Type: text/plain; charset="UTF-8"
18 +Content-Type: text/$type; charset="UTF-8"
19 EOF
20
21 print MAILPROG $vacation_msg;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed