Skip to content
Snippets Groups Projects
Select Git revision
  • ab9fcc18e8ce3081cc53b6cb03b07bf6823f72d6
  • master default protected
  • ll-workflow
  • b24
  • alc-scindage-donnees-pj
  • FJ_LL_Tbl_Contrat
  • alc-docker-node
  • ll-apiplatform
  • php84
  • ll-rgpd
  • b23
  • alc-filtre-type-intervenant
  • ll-sans-mdb5
  • formules-ancienne-infra
  • ll-formules
  • alc-intervenant-dmep
  • ll-suppr-v_vol-s
  • b20
  • ll-postgresql
  • b23.0.1
  • b22
  • 24.8
  • 24.7
  • 24.6
  • 24.5
  • 24.4
  • 24.3
  • 24.2
  • 24.1
  • 24.0
  • 23.15
  • 24.0-beta19
  • 24.0-beta18
  • 24.0-beta17
  • 24.0-beta16
  • 24.0-beta15
  • 24.0-beta14
  • 24.0-beta13
  • 23.14
  • 24.0-beta12
  • 24.0-beta11
41 results

EntityService.php

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" }
      }