Skip to content
Snippets Groups Projects
Select Git revision
  • ae116d6c77fa48524ac49658516dc43d22d07ea9
  • master default protected
  • update-2.0.0-dev
  • alc-refactoring-entity
  • sb-comments-update
  • alc-dev
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 0.1.5
  • 1.0.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.0.15
  • 0.0.14
  • 0.0.13
  • 0.0.12
26 results

database-install-sql.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    test_postfix_virtual.aug 1.34 KiB
    (*
    Module: Test_Postfix_Virtual
      Provides unit tests and examples for the <Postfix_Virtual> lens.
    *)
    
    module Test_Postfix_Virtual =
    
    (* View: conf *)
    let conf = "# a comment
    virtual-alias.domain     anything
    postmaster@virtual-alias.domain  postmaster
    user1@virtual-alias.domain       address1
    user-1@virtual-alias.domain       address1
    user_2@virtual-alias.domain
        address2,
        address3
    user+test@virtual-alias.domain
        address2,
        address3
    root    robert.oot@domain.com
    @example.net  root,postmaster
    "
    
    (* Test: Postfix_Virtual.lns *)
    test Postfix_Virtual.lns get conf =
      { "#comment" = "a comment" }
      { "pattern" = "virtual-alias.domain"
        { "destination" = "anything" }
      }
      { "pattern" = "postmaster@virtual-alias.domain"
        { "destination" = "postmaster" }
      }
      { "pattern" = "user1@virtual-alias.domain"
        { "destination" = "address1" }
      }
      { "pattern" = "user-1@virtual-alias.domain"
        { "destination" = "address1" }
      }
      { "pattern" = "user_2@virtual-alias.domain"
        { "destination" = "address2" }
        { "destination" = "address3" }
      }
      { "pattern" = "user+test@virtual-alias.domain"
        { "destination" = "address2" }
        { "destination" = "address3" }
      }
      { "pattern" = "root"
        { "destination" = "robert.oot@domain.com" }
      }
      { "pattern" = "@example.net"
        { "destination" = "root" }
        { "destination" = "postmaster" }
      }