Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Puppet Camptocamp Postfix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projets publics
Puppet Camptocamp Postfix
Commits
d926965e
Commit
d926965e
authored
Oct 19, 2018
by
Raphaël Pinson
Committed by
Raphaël Pinson
Oct 19, 2018
Browse files
Options
Downloads
Patches
Plain Diff
Make transport pattern accept regexp
parent
f9a114b2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/lenses/postfix_transport.aug
+1
-1
1 addition, 1 deletion
files/lenses/postfix_transport.aug
files/lenses/test_postfix_transport.aug
+5
-0
5 additions, 0 deletions
files/lenses/test_postfix_transport.aug
with
6 additions
and
1 deletion
files/lenses/postfix_transport.aug
+
1
−
1
View file @
d926965e
...
...
@@ -37,7 +37,7 @@ let transport = [ label "transport" . (store Rx.word)? ]
let
nexthop
=
[
label
"nexthop"
.
(
store
Rx
.
space_in
)
?
]
(* View: record *)
let
record
=
[
label
"pattern"
.
store
/
[
A-Za-z0-9@\*.-
]+/
let
record
=
[
label
"pattern"
.
store
/
[
^# \t\r\n
]+/
.
space_or_eol
.
transport
.
colon
.
nexthop
.
Util
.
eol
]
...
...
This diff is collapsed.
Click to expand it.
files/lenses/test_postfix_transport.aug
+
5
−
0
View file @
d926965e
...
...
@@ -16,6 +16,7 @@ example.com :[gateway.example.com]
user.foo@example.com
smtp:bar.example:2025
.example.com error:mail for *.example.com is not deliverable
/^bounce
\
+.*/ sympabounce:
"
(* Test: Postfix_Transport.lns *)
...
...
@@ -45,4 +46,8 @@ test Postfix_Transport.lns get conf =
{
"pattern"
=
".example.com"
{
"transport"
=
"error"
}
{
"nexthop"
=
"mail for *.example.com is not deliverable"
}
}
{
"pattern"
=
"/^bounce
\
+.*/"
{
"transport"
=
"sympabounce"
}
{
"nexthop"
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment