From: SourceForge.net <no...@so...> - 2005-03-21 10:54:23
|
Patches item #1161732, was opened at 2005-03-11 23:21 Message generated for change (Comment added) made by gellyfish You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=425771&aid=1161732&group_id=39625 Category: None Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: TFMail.pl: CONFIG_REGEX and 3 argument open Initial Comment: I am not sure if the 3 argument open will work, as I am not sure what version of perl it was introduced in. It does make it so that in a chroot TFmail.pl doesn't need a shell to send e-mail. It also allows for a single . in the path for _configs, but not double dots, because my default path contains /domains/domain.dom/TFmail. The CONFIG_REGEX feature is really handy for me as a vhost. from the diff =item C<ConfigRegex> A regular expression that the config file must match. Needs to be a regular expression. An example would be F<qr{^(domains/[^/]+/TFmail/|[^/]+$)}>, this would work if you were doing virtual hosting and you allowed your users configs in a domains/domain.dom/TFmail/ directory under the ConfigRoot. The _config setting in the form would be something like domains/domain.dom/TFmail/basic. Defaults to F<qr{^.*$}>. CONFIG_REGEX - A regular expression that is matched against the _config specified in the form. This can be used to limit configs to specific subdirectories under the CONFIG_ROOT e.g. if it is set to qr{^(domains/[^/]+/TFmail/|[^/]+$)} and MAX_DEPTH is at least 3 then you can put the configs in a CONFIG_ROOT/domains/domain.dom/TFmail/ directory. This might be handy if you are doing virtual hosting. andrew fresh <an...@ma...> ---------------------------------------------------------------------- >Comment By: Jonathan Stowe (gellyfish) Date: 2005-03-21 10:54 Message: Logged In: YES user_id=313586 The three argument open isn't available in the earliest versions of Perl that we support ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=425771&aid=1161732&group_id=39625 |