Commit Graph

62 Commits (9636fe9de3a9c484d8bd69ecf184776c523194a9)

Author SHA1 Message Date
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
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
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
12 years ago
Valkum acdbd4b5a6 added custom noreply detection
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1442 a1433add-5e2c-0410-b055-b7f2511e0802
12 years ago
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
12 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
David Goodwin d2fe1d50ed vacation.pl: remove my super secret connection details
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@441 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
David Goodwin be1b5b2eac plenty of updates to vacation.pl - add log4perl support and crude testing harness
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@440 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
David Goodwin 27c0cdb06a fix compile error
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@434 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
David Goodwin 886e02723f vacation.pl: initial merge of smtp rcpt/to checking stuff as per https://sourceforge.net/forum/forum.php?thread_id=2099851&forum_id=676076 ; Thank you!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@433 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
David Goodwin 73b26190ef vacation.pl: disable automaticnotification stuff
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@431 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 510c69e311 vacation.pl: add patch from Luxten - enable re-notification after definable timeout - see : https://sourceforge.net/tracker/index.php?func=detail&aid=2031631&group_id=191583&atid=937966
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@428 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 4ee84c5827 vacation.pl: applying patch from luxten - see https://sourceforge.net/tracker/index.php?func=detail&aid=2031659&group_id=191583&atid=937966 - thanks!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@427 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 40b8c19e27 patch from Fabio Bonelli; as per https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2014010&group_id=191583 - thank you!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@401 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin e3d31bb967 patch from tabmowtez - allow smtp server to be specified - see https://sourceforge.net/tracker/index.php?func=detail&aid=2008468&group_id=191583&atid=937966
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@398 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin d4a840700c vacation.pl: updating spam check bit
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@207 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 3293ea8082 vacation.pl: do not send a vacation response if the mail has been previously classes as spam - assumes /^x-spam-flag:\s+yes$/i matches in the message
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@203 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago