Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6349

mailalias doesn't need to quote e-mails with + character

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.8.7, PUP 4.5.0
    • Fix Version/s: PUP 4.6.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      0
    • Sprint:
      Client 2016-06-15

      Description

      mailalias aliases povider double-quotes recipient address if it contains non-alphanumeric and few selected characters (- . @). This list can be extended with plus ("+") character as it's very common in e-mail addresses and it's not necessary to quote such e-mail address. Current behavior doesn't break anything (it's not bug), on the other hand if Puppet works on same file with other tools, Puppet keeps changing these recipients, although not necessary.

      Example:

      # puppet resource mailalias john recipient=john@example.com
      mailalias { 'john':
        ensure    => 'present',
        recipient => ['john@example.com'],
        target    => '/etc/aliases',
      }
       
      # grep john /etc/aliases
      john: john@example.com
       
      # puppet resource mailalias john recipient=john+work@example.com
      Notice: /Mailalias[john]/recipient: recipient changed 'john@example.com' to 'john+work@example.com'
      mailalias { 'john':
        ensure    => 'present',
        recipient => ['john+work@example.com'],
        target    => '/etc/aliases',
      }
       
      # grep john /etc/aliases
      john: "john+work@example.com"
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              holer Vlastimil Holer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support