SF.net SVN: postfixadmin:[1609] trunk/VIRTUAL_VACATION/vacation.pl
Brought to you by:
christian_boltz,
gingerdog
From: <gin...@us...> - 2013-12-15 21:36:04
|
Revision: 1609 http://sourceforge.net/p/postfixadmin/code/1609 Author: gingerdog Date: 2013-12-15 21:36:00 +0000 (Sun, 15 Dec 2013) Log Message: ----------- spelling fixes; make $friendly_name a configuration option (From: Nice Name <so...@do...> control) Modified Paths: -------------- trunk/VIRTUAL_VACATION/vacation.pl Modified: trunk/VIRTUAL_VACATION/vacation.pl =================================================================== --- trunk/VIRTUAL_VACATION/vacation.pl 2013-12-09 23:42:05 UTC (rev 1608) +++ trunk/VIRTUAL_VACATION/vacation.pl 2013-12-15 21:36:00 UTC (rev 1609) @@ -148,17 +148,24 @@ # SMTP authentication protocol used for sending. # Can be 'PLAIN', 'LOGIN', 'CRAM-MD5' or 'NTLM' -# Leave it blank if you don't use authentification +# Leave it blank if you don't use authentication our $smtp_auth = undef; # username used to login to the server our $smtp_authid = 'someuser'; # password used to login to the server our $smtp_authpwd = 'somepass'; +# This specifies the mail 'from' name which is shown to recipients of vacation replies. +# If you leave it empty, the vacation mail will contain: +# From: <ori...@re...main> +# If you specify something here you'd instead see something like : +# From: Some Friendly Name <ori...@re...main> +our $friendly_from = ''; + # Set to 1 to enable logging to syslog. our $syslog = 0; -# path to logfile, when empty logging is supressed +# path to logfile, when empty logging is suppressed # change to e.g. /dev/null if you want nothing logged. # if we can't write to this, and $log_to_file is 1 (below) the script will abort. our $logfile='/var/log/vacation.log'; @@ -174,8 +181,8 @@ # disabled by default our $interval = 0; -# Send vacation mails to do-not-reply email adresses. -# By default vacation email adresses will be sent. +# Send vacation mails to do-not-reply email addresses. +# By default vacation email addresses will be sent. # For now emails from bounce|do-not-reply|facebook|linkedin|list-|myspace|twitter won't # be answered when $custom_noreply_pattern is set to 1. # default = 0 @@ -324,7 +331,7 @@ if (!$stm->execute($to,$from)) { my $e=$dbh->errstr; -# Violation of a primay key constraint may happen here, and that's +# Violation of a primary key constraint may happen here, and that's # fine. All other error conditions are not fine, however. if ($e !~ /(?:_pkey|^Duplicate entry)/) { $logger->error("Failed to insert into vacation_notification table (to:$to from:$from error:'$e' query:'$query')"); @@ -452,7 +459,7 @@ $stm->execute("\@$domain") or panic_execute($query,"address='\@$domain'"); $rv = $stm->rows; -# The receipient has a domain level alias +# The recipient has a domain level alias if ($rv == 1) { my @row = $stm->fetchrow_array; my $wildcard_dest = $row[0]; @@ -496,7 +503,6 @@ my $from = $email; my $to = $orig_from; my %smtp_connection; - my $friendly_from = "Vacation Service"; %smtp_connection = ( 'smtp' => $smtp_server, 'port' => $smtp_server_port, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |