Add argument for discard.

#9 Open
Repository
dveeden
Branch
discardarg
Repository
tonioo
Branch
default

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r 5262098cb574 https://bitbucket.org/dveeden/sievelib
hg merge 5262098cb574
hg commit -m 'Merged in dveeden/sievelib/discardarg (pull request #9)'
Author
  1. Daniël van Eeden
Reviewers
Description

I encountered some sieve rules where the discard command had one option. I guess it's some kind of label which is used in the UI.

        if allof (
 header :matches ["From","Sender","Resent-from","Resent-sender","Return-path"] "someone@example.com" ){
        discard "someone@example.com";
                }

Comments (5)

  1. Daniël van Eeden author

    It's in the documentation from sun commsuite. (and also here)

    I found it in a dump of about 250,000 sieve rules from a sun commsuite deployment. The string after the discard keyword is most cases an email address. The UI (sun convergence webmail) does not seem to present the user with an option, so this might be a left over from the old sun messenger express software