Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postfix/src/trivial-rewrite/   (Postfix Mailserver Version 3.11©)  Datei vom 16.0.2017 mit Größe 1 kB image not shown  

Quelle  transport.in

  Sprache: C
 

#!/bin/sh

Format: address:expected_channel:expected_nexthop
No expectation means no match is expected.
Specify "-" to expect an empty string.

echo ==== no wildcard
${VALGRIND} ./transport 'inline:{rcpt1@example1.com=channel1:nexthop1, rcpt2@example2=channel2:, example3=channel3}' <<'EOF'
rcpt1@example1.com:channel1:nexthop1
rcpt1+ext1@example1.com:channel1:nexthop1
rcpt2@example2:channel2:example2
rcpt@example3:channel3:example3
EOF

echo ==== with wildcard channel and nexthop
${VALGRIND} ./transport 'inline:{*=channel0:nexthop0, rcpt1@example1.com=channel1:nexthop1}' <<'EOF'
rcpt1@example1.com:channel1:nexthop1
rcpt2@example2:channel0:nexthop0
EOF

echo ==== with wildcard channel only
${VALGRIND} ./transport 'inline:{*=channel0, rcpt1@example1.com=channel1:nexthop1}' <<'EOF'
rcpt1@example1.com:channel1:nexthop1
rcpt2@example2:channel0:example2
EOF

echo ==== with wildcard nexthop only
${VALGRIND} ./transport 'inline:{*=:nexthop0, rcpt1@example1.com=channel1:nexthop1}' <<'EOF'
rcpt1@example1.com:channel1:nexthop1
rcpt2@example2:DEFAULT:nexthop0
EOF

echo ==== with wildcard empty fields.
${VALGRIND} ./transport 'inline:{*=:, rcpt1@example1.com=channel1:nexthop1}' <<'EOF'
rcpt1@example1.com:channel1:nexthop1
rcpt2@example2:DEFAULT:example2
EOF

echo === subdomain test
${VALGRIND} ./transport 'inline:{example=:example-result,.example=:dot-example-result}'  <<'EOF'
plain1+ext@other-example:
foo@example:DEFAULT:example-result
foo@sub.example:DEFAULT:dot-example-result
foo@sub.sub.example:DEFAULT:dot-example-result
EOF

Messung V0.5 in Prozent
C=74 H=95 G=84

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-08-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.