Commit Graph

81 Commits (b44459c016191c3fac66366e00dab3e95d55fd89)

Author SHA1 Message Date
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
8 years ago
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
9 years ago
Christian Boltz 76b4e498a2 VIRTUAL_VACATION/INSTALL.TXT:
- change instructions to use /usr/lib/postfixadmin to avoid vacation.pl
  has write access to itsself
- replace instructions for /var/spool/vacation/ with instructions for a
  log file or directory
- various other changes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1692 a1433add-5e2c-0410-b055-b7f2511e0802
10 years ago
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 b9e562f426 INSTALL.TXT:
- fix example /etc/passwd line (had too many fields)
- moved no_address_mappings to the smtpd on port 25
- removed no_unknown_recipient_checks on port 10025


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@923 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 5a9de37a65 INSTALL.TXT - see https://sourceforge.net/forum/forum.php?thread_id=3026548&forum_id=676076 ; general update, and add in a note on alias expansion
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@568 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
Christian Boltz 7d9ca0b5c2 VACATION INSTALL.TXT
- add note about using /etc/mail/postfixadmin/vacation.conf


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@554 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 6589f8bc22 mail-myself.txt: test stuff
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@533 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 2641670010 updating tests
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@531 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
David Goodwin 4c4c54a5ae mail-filter: obsolete
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@472 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 6bff38ac45 test.sh: update to reflect that the parameters passed into the script are actually of the a#b@autoreply.dom.tld and not a@b
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@458 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 78d499aa63 INSTALL.TXT: minor updates
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@454 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
17 years ago