Created
February 14, 2013 20:38
-
-
Save nibalizer/4956189 to your computer and use it in GitHub Desktop.
generic-linux.cf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # handle null input (translate to <@> special case) | |
| R$@ $@ <@> | |
| # strip group: syntax (not inside angle brackets!) and trailing semicolon | |
| R$* $: $1 <@> mark addresses | |
| R$* < $* > $* <@> $: $1 < $2 > $3 unmark <addr> | |
| R@ $* <@> $: @ $1 unmark @host:... | |
| R$* [ IPv6 : $+ ] <@> $: $1 [ IPv6 : $2 ] unmark IPv6 addr | |
| R$* :: $* <@> $: $1 :: $2 unmark node::addr | |
| R:include: $* <@> $: :include: $1 unmark :include:... | |
| R$* : $* [ $* ] $: $1 : $2 [ $3 ] <@> remark if leading colon | |
| R$* : $* <@> $: $2 strip colon if marked | |
| R$* <@> $: $1 unmark | |
| R$* ; $1 strip trailing semi | |
| R$* < $+ :; > $* $@ $2 :; <@> catch <list:;> | |
| R$* < $* ; > $1 < $2 > bogus bracketed semi | |
| # null input now results from list:; syntax | |
| R$@ $@ :; <@> | |
| # strip angle brackets -- note RFC733 heuristic to get innermost item | |
| R$* $: < $1 > housekeeping <> | |
| R$+ < $* > < $2 > strip excess on left | |
| R< $* > $+ < $1 > strip excess on right | |
| R<> $@ < @ > MAIL FROM:<> case | |
| R< $+ > $: $1 remove housekeeping <> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment