0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
Commit Graph

73 Commits

Author SHA1 Message Date
tkempf
4660d65679 Renamed $novacation_pattern to $no_vacation_pattern + codestyle changes 2017-07-24 08:04:28 +02:00
tkempf
c5dcbeb48d Removed unused libraries MIME::Encwords and MIME::Base64 2017-07-21 09:20:51 +02:00
tkempf
79f8a63a46 Bugfix in Encoding of vacation mail. UTF-8 header was missing and the
mailbody is already utf8, so no need to recode
2017-07-21 08:53:09 +02:00
tkempf
cc3d5b13e8 Add Example for $novacation_pattern 2017-07-18 15:03:41 +02:00
tkempf
e5e9ce7674 When using STARTTLS the SSL_verifycn_name must be set to prevent SSL
Errors
2017-07-18 13:00:41 +02:00
tkempf
1653e58398 Bump Version to 4.1
Sending Mail now works at least without encryption
2017-07-18 10:20:04 +02:00
tkempf
b781195526 Replace deprecated Mail::Sender by Email::Sender
Add searchpath for local vacation.conf
2017-07-17 13:11:50 +02:00
tkempf
27e336cd2c Added novacation_pattern regexp to prevent sending vacation messages for
specific recipient addresses
2017-07-14 10:30:57 +02:00
David Goodwin
7ddac2ac4b evil hack to make vacation work while we are using Mail::Sender - see also https://sourceforge.net/p/postfixadmin/patches/136/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1893 a1433add-5e2c-0410-b055-b7f2511e0802
2017-02-09 05:21:12 +00:00
Christian Boltz
054d0a4c0e vacation.pl: mime-decode original subject
Reported by czbg, https://sourceforge.net/p/postfixadmin/bugs/366/

Note that the original subject will keep the encoding specified in the
mime header (for example iso-8859-15) while we assume it to be utf8
(see "%mail =...").

Nevertheless, a broken character still looks better than having
=?ISO-8858-1?Q?Gr=DFe?= in the subject ;-)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1857 a1433add-5e2c-0410-b055-b7f2511e0802
2016-08-25 18:56:02 +00:00
David Goodwin
d1dad8a31c merge patch from 54a77ecb9c - thanks lisergey - encode message body with wide-chars UTF8
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1820 a1433add-5e2c-0410-b055-b7f2511e0802
2015-10-20 16:06:36 +00:00
Christian Boltz
c2d6034cc0 vacation.pl:
- fix two queries for postgresql
  Patch by Christoph Kuchenbuch,
  https://sourceforge.net/p/postfixadmin/bugs/315/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1676 a1433add-5e2c-0410-b055-b7f2511e0802
2014-05-27 21:34:43 +00:00
Christian Boltz
657617d637 vacation.pl:
- disable TLS by default due to a bug in Mail::Sender 0.8.22
  (https://rt.cpan.org/Public/Bug/Display.html?id=85438)
  Actually, due to a bug in Mail::Sender 0.8.21, it was never enabled ;-)
- add new config option $smtp_tls_allowed to allow enabling TLS


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1615 a1433add-5e2c-0410-b055-b7f2511e0802
2013-12-28 19:35:28 +00:00
Christian Boltz
2e3998c14c vacation.pl:
- Add capability to include the subject of the original mail in the 
  subject of the vacation message.
  A good vacation subject could be: 'Re: $SUBJECT'
- corrected log entry about "Already informed ..." to show the 
  $orig_from, not $email

Patch by Christoph Lechleitner <christoph.lechleitner@iteg.at>
http://sourceforge.net/p/postfixadmin/patches/117/



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1614 a1433add-5e2c-0410-b055-b7f2511e0802
2013-12-28 16:31:13 +00:00
Christian Boltz
23ec3da059 vacation.pl:
- whitespace fixes
- update vim: line to 4 spaces tab (which seems to be used everywhere already)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1612 a1433add-5e2c-0410-b055-b7f2511e0802
2013-12-26 14:27:45 +00:00
David Goodwin
99f871d45d spelling fixes; make $friendly_name a configuration option (From: Nice Name <someone@domain.com> control)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1609 a1433add-5e2c-0410-b055-b7f2511e0802
2013-12-15 21:36:00 +00:00
Christian Boltz
e2658394a1 vacation.pl:
- encode subject
  https://sourceforge.net/p/postfixadmin/bugs/272/
  https://sourceforge.net/p/postfixadmin/patches/119/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1597 a1433add-5e2c-0410-b055-b7f2511e0802
2013-12-01 23:30:58 +00:00
Christian Boltz
2091c50662 vacation.pl:
- fix typo in variable name


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1444 a1433add-5e2c-0410-b055-b7f2511e0802
2013-03-14 23:17:57 +00:00
Valkum
acdbd4b5a6 added custom noreply detection
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1442 a1433add-5e2c-0410-b055-b7f2511e0802
2013-03-12 19:33:54 +00:00
Christian Boltz
a937c95d4f vacation.pl:
- fix confusing "my" vs. "our"


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1420 a1433add-5e2c-0410-b055-b7f2511e0802
2013-01-04 12:58:21 +00:00
Christian Boltz
4dfe1db68e vacation.pl:
- fix typo (reported by Jan Kruis on the mailinglist)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1400 a1433add-5e2c-0410-b055-b7f2511e0802
2012-06-03 19:33:52 +00:00
David Goodwin
05d502558f add a friendly from address to vacation messages; probably needs more work to beautify it though...; change error handling if we cannot send the reply to be hopefully more robust
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1389 a1433add-5e2c-0410-b055-b7f2511e0802
2012-05-24 11:14:58 +00:00
David Goodwin
87f33d95ae patch from Jan Kruis - see http://sourceforge.net/tracker/?func=detail&aid=3520749&group_id=191583&atid=937966 (Tracker id 3520749) ; thank you!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1374 a1433add-5e2c-0410-b055-b7f2511e0802
2012-04-23 20:57:54 +00:00
David Goodwin
ef80736445 Merge jan-kruis's vacation interval reply behaviour - see SF patch 3508083 - https://sourceforge.net/tracker/?func=detail&aid=3508083&group_id=191583&atid=937966 ; Thank you
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1373 a1433add-5e2c-0410-b055-b7f2511e0802
2012-04-19 21:55:36 +00:00
David Goodwin
76efcb2c47 merge of patch from maharaja - delete old vacation_notifications - see https://sourceforge.net/tracker/?func=detail&aid=3323227&group_id=191583&atid=937966
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1372 a1433add-5e2c-0410-b055-b7f2511e0802
2012-04-19 21:19:15 +00:00
David Goodwin
3d3d61963b vacation.pl: refactor duplicated sql into a function (check_for_vacation($x)) - thanks to jan kruis for submitting this - see https://sourceforge.net/tracker/?func=detail&aid=3507319&group_id=191583&atid=937966
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1371 a1433add-5e2c-0410-b055-b7f2511e0802
2012-04-19 21:10:42 +00:00
David Goodwin
d5803088aa vacation.pl: merge in patch from ichier (thank you) - see patch 3371641 - https://sourceforge.net/tracker/?func=detail&aid=3371641&group_id=191583&atid=937966
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1370 a1433add-5e2c-0410-b055-b7f2511e0802
2012-04-19 21:00:39 +00:00
David Goodwin
8044cb9dc1 fix as per #3086890
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1073 a1433add-5e2c-0410-b055-b7f2511e0802
2011-06-20 12:51:02 +00:00
Christian Boltz
39fde20ccc vacation.pl:
- skip mails with a List-Unsubscribe header - that's another indication
  for a mailinglist


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1046 a1433add-5e2c-0410-b055-b7f2511e0802
2011-04-19 21:49:43 +00:00
Christian Boltz
3f9f4b5ee7 vacation.pl:
- add date range check to all queries

Patch by Colin Viebrock (cviebrock@SF) -
https://sourceforge.net/tracker/?func=detail&aid=3152571&group_id=191583&atid=937964

Additionally added a TODO note that we should use a function instead of
having 3 copies of the query in the code.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@970 a1433add-5e2c-0410-b055-b7f2511e0802
2011-02-27 21:35:21 +00:00
Christian Boltz
e986ba2daa vacation.pl:
whitespace fixes only:
- remove spaces at the end of the line
- replace some tabs with spaces


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@882 a1433add-5e2c-0410-b055-b7f2511e0802
2010-11-01 15:48:38 +00:00
Christian Boltz
70db729373 vacation.pl:
some changes after using perlcritic.org - in detail:
- removed unused variable $spam
- use ':encoding(UTF-8)' instead of ':utf8' to validate input against 
  invalid utf8 sequences
- foreach creates its own instance of $item - marking it with "my $item"
- replaced lots of "..." with '...'

BTW: Thanks to the nice guy who recommended perlcritic.org at the 
openSUSE conference!


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@881 a1433add-5e2c-0410-b055-b7f2511e0802
2010-11-01 15:46:16 +00:00
Christian Boltz
3e69b1d0dc vacation.pl:
- drop unneeded backslashes. The first one caused logging of "$email" 
  instead of the variable content, the others are just cosmetical.
  Reported by Johan Meiring (jmeiring)
  https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3086899&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@875 a1433add-5e2c-0410-b055-b7f2511e0802
2010-10-13 23:51:12 +00:00
Sebastian
b1287d97e2 - big merge of Postfixadmin smarty into trunk
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@757 a1433add-5e2c-0410-b055-b7f2511e0802
2009-11-05 14:55:39 +00:00
David Goodwin
cd7172dcea vacation.pl: see email conversation with stevan@bajic.ch and #2835877 (https://sourceforge.net/tracker/?func=detail&aid=2835877&group_id=191583&atid=937964); thanks to stevan for taking the time to explain why he was right :) - this change makes the vacation script look for user#domain@vacation.domain in the alias table, rather than user@domain, which is a better check (as it implies they also have vacation turned on)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@734 a1433add-5e2c-0410-b055-b7f2511e0802
2009-10-21 08:00:07 +00:00
David Goodwin
08f37bb6ad vacation.pl: change syslog facility
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@721 a1433add-5e2c-0410-b055-b7f2511e0802
2009-09-26 08:17:03 +00:00
Christian Boltz
ff3de29241 vacation.pl:
- fix typo (?) in query: "goto like %" should most probably be "goto like ?" (placeholder)
  (if this was not a typo, the whole "AND ..." would be superfluous)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@706 a1433add-5e2c-0410-b055-b7f2511e0802
2009-08-18 20:52:37 +00:00
David Goodwin
1432d7c806 VIRTUAL_VACATION/vacation.pl: fix sql query - see https://sourceforge.net/tracker/index.php?func=detail&aid=2835877&group_id=191583&atid=937964
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@703 a1433add-5e2c-0410-b055-b7f2511e0802
2009-08-12 06:23:51 +00:00
David Goodwin
f7d4155fa2 patch from Steve ... see https://sourceforge.net/tracker/index.php?func=detail&aid=2818228&group_id=191583&atid=937964 - once again, thank you
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@684 a1433add-5e2c-0410-b055-b7f2511e0802
2009-07-10 21:12:44 +00:00
David Goodwin
6f8b25be64 vacation.pl: add patch from Steve - https://sourceforge.net/tracker/?func=detail&aid=2813178&group_id=191583&atid=937967
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@678 a1433add-5e2c-0410-b055-b7f2511e0802
2009-06-29 08:26:35 +00:00
David Goodwin
d0afcbab32 vacation.pl: fix https://sourceforge.net/tracker/?func=detail&aid=2796067&group_id=191583&atid=937964 - remove usage of file in /tmp; abort if logfile is not writeable, or we cannot create it
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@677 a1433add-5e2c-0410-b055-b7f2511e0802
2009-06-29 07:58:50 +00:00
David Goodwin
2d34a4ca70 update docs a litt;e add revision to .pl file
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@535 a1433add-5e2c-0410-b055-b7f2511e0802
2009-01-20 12:00:46 +00:00
David Goodwin
cf2a995e13 vacation.pl: make it strip/discover addresses better, slightly better logging, stop it requiring a messageid
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@532 a1433add-5e2c-0410-b055-b7f2511e0802
2009-01-20 11:53:54 +00:00
David Goodwin
b2ba25693e wiza thinks this is hte correct behaviour (i.e return true not false
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@513 a1433add-5e2c-0410-b055-b7f2511e0802
2009-01-13 14:22:00 +00:00
Christian Boltz
d9be3ca66d vacation.pl:
- allow to enter the configuration in /etc/mail/postfixadmin/vacation.conf
  instead of editing vacation.pl directly


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@470 a1433add-5e2c-0410-b055-b7f2511e0802
2008-10-31 13:37:49 +00:00
David Goodwin
be43c4b7d8 vacation.pl: bump version number as it has not changed in years
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@468 a1433add-5e2c-0410-b055-b7f2511e0802
2008-10-21 11:08:19 +00:00
David Goodwin
d75065f641 1- fix smtp_recipient (i.e un-vacationise-it), 2- remove the needless \s* stuff - these will get removed by the strip_address() routine anyway
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@457 a1433add-5e2c-0410-b055-b7f2511e0802
2008-09-03 08:44:36 +00:00
David Goodwin
63cc542bbd force requirement for command line parameters to script; regexp changes - thanks Luxten (https://sourceforge.net/forum/forum.php?thread_id=2099851&forum_id=676076)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@456 a1433add-5e2c-0410-b055-b7f2511e0802
2008-09-03 08:32:25 +00:00
David Goodwin
320ecddbbf vacation.pl: plenty of refactoring; I think this addresses all hte points at https://sourceforge.net/forum/message.php?msg_id=5205584
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@453 a1433add-5e2c-0410-b055-b7f2511e0802
2008-08-31 20:17:23 +00:00
David Goodwin
194ce8f0ad vacation.pl: fix for https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2040288&group_id=191583
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@442 a1433add-5e2c-0410-b055-b7f2511e0802
2008-08-06 14:45:17 +00:00