0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
Andrew Ruthven
c9551cbb32 Fix default $smtp_client setting if we aren't connecting to the SMTP server on localhost.
This fixes the issue noted on https://github.com/postfixadmin/postfixadmin/discussions/648
2023-08-18 23:23:15 +12:00
Jan Kruis
a10414cf15
types 2022-10-19 00:58:12 +02:00
Jan Kruis
5543babe67
Update Contributions.txt
typo
2022-10-19 00:44:57 +02:00
Jan Kruis
be5dad4d04 add to vacation.pl
function get_accountname

get the variable name from the table mailbox and use it as accountname
if accountname_check is true the accountname is placed in front of the sender's email " Accountname <original@recipient.domain>" and this will be sent as email name and address of the sender.
if the account is not filled with a string then we will be checking if friendly_name is filled with a string and this will be placed in front of the sender's email "Friendlyname <original@recipient.domain>" and this will be sent as the email name and address of the sender.
if not, only the sender's email address will be sent.

function replace_sting together with replace_a_string

replaces in the body text to be sent the texts describing $replace_from and $replace_until with the values ​​of activerom and activeuntil respectively from the vacation table in the date format specified at $date_format
the date format capabilities are described at https://www.tutorialspoint.com/perl/perl_date_time.htm. Variable has been chosen in the config part of vacation.pl so that admin can adjust the search texts for a country version.
in the languages/??.lang file one can see the $PALANG['UsersVacation_body_text'] with the desired replacement texts in $Replace_From and $Replace_Until.

Added library Time::Piece for data format
2022-10-17 02:36:51 +02:00
David Goodwin
c3a4a6ed8d remove some comments from the top of vacation.pl; add links to file(s); remove unnecessary index.php 2017-08-14 21:28:49 +01:00