Results 1 to 4 of 4

Thread: Sieve filtering not always working post-5.0.5

  1. #1
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    Default Sieve filtering not always working post-5.0.5

    Emails from bugzilla.zimbra.com no longer get filtered into my "zimbra-bugzilla" folder. Why not? My other sieve rules seem to work OK. All the bugzilla mail lands in my INBOX.

    First noticed after the upgrade of bugzilla.zimbra.com and upgrade of my server from 5.0.5->5.0.6, which happened the same day. Still a problem after upgrading my server to 5.0.7.

    I've snipped a few "fileinto: (something other than INBOX); stop" rules, but otherwise this is my sieve script.
    Code:
    zimbraMailSieveScript: require ["fileinto", "reject", "tag", "flag"];
    
    # logwatch-root
    if allof (header :contains "from" "root@" ,
     header :contains "subject" "LogWatch for" )
    {
        fileinto "root";
        stop;
    }
    # backups no news is good news
    if allof (header :matches "subject" "*backup-reports* SUCCEEDED" ,
     header :matches "from" "root <root@ELIDED>" )
    {
        fileinto "/Trash";
        stop;
    }
    # theclub
    if anyof (header :is "sender" "owner-theclub@northfieldbikeclub.org" )
    {
        fileinto "/Sorted/theclub";
        stop;
    }
    # Trash successful ZCS backups
    if allof (header :contains "from" "admin@ELIDED" ,
     header :contains "to" "admin@ELIDED" ,
     header :is "subject" "ZCS Backup Report: SUCCESS" )
    {
        fileinto "/Trash";
        stop;
    }
    # Discard zmbackup cron: http://bugzilla.zimbra.com/show_bug.cgi?id=19992
    if allof (header :contains "from" "root@ELIDED" ,
     header :contains "to" "zimbra@ELIDED" ,
     header :contains "subject" "Cron <zimbra@mail2> /opt/zimbra/bin/zmbackup" )
    {
        discard;
        stop;
    }
    # admin@ phishing
    if allof (header :contains "from" "admin@ELIDED" ,
     header :contains "to" "admin@ELIDED" ,
     header :contains "subject" "VIRUS (HTML.Phishing" )
    {
        fileinto "/Trash";
        stop;
    }
    # root
    if anyof (header :contains "to" "root@ELIDED" )
    {
        fileinto "root";
        stop;
    }
    # openexchange doesn't seem to honor unsubscribes
    if anyof (header :contains "from" "portal-bounces@open-xchange.com" )
    {
        discard;
        stop;
    }
    # zimbra-bugzilla
    if allof (header :contains "from" "DONOTREPLY@zimbra.com" ,
     exists "X-Bugzilla-Reason:" )
    {
        fileinto "zimbra-bugzilla";
        stop;
    }
    # store2 disk usage is high but stable
    if allof (header :contains "from" "admin@" ,
     header :contains "subject" "Service /dev/mapper/store2p1 started on" )
    {
        fileinto "Trash";
        stop;
    }
    # drop backup1 swatch
    if allof (header :contains "from" "admin@" ,
     header :contains"subject" "Service /dev/mapper/backup1 started on"
     )
    {
        discard;
        stop;
    }
    # zimbra-bugzilla2
    if allof (header :contains "from" "DONOTREPLY@zimbra.com" ,
     header :matches "subject" "RE: [Bug*" )
    {
        fileinto "zimbra-bugzilla";
        stop;
    }
    And here is selected source of yet another message that landed in my INBOX, but shouldn't have.

    Code:
    Return-Path: apache@zimbra.com
    Date: Mon, 7 Jul 2008 07:31:45 -0700
    Message-Id: <200807071431.m67EVjcE017033@www3.zimbra.com>
    From: DONOTREPLY@zimbra.com
    To: ELIDED
    Subject: RE: [Bug 15320] zmrestore using restoreToTime option restores data
     after the specified time
    X-Bugzilla-Reason: CC
    In-Reply-To: <bug-15320-1250@http.bugzilla.zimbra.com/>
    References: <bug-15320-1250@http.bugzilla.zimbra.com/>

  2. #2
    Join Date
    May 2008
    Location
    Germany
    Posts
    26
    Rep Power
    7

    Default

    The strange thing is that the first rule »if allof (header :contains "from" "DONOTREPLY@zimbra.com" , exists "X-Bugzilla-Reason:" )« should match, too.

    I know of problems with 'match' and folded subject lines - see the unfortunately still unconfirmed Bug #28644.

  3. #3
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    If you're concerned about sieve rules just dealing with Zimbra's bugzilla then the problem isn't you
    # zimbra-bugzilla
    if allof (header :contains "from" "DONOTREPLY@zimbra.com" ,
    exists "X-Bugzilla-Reason:" )
    {
    fileinto "zimbra-bugzilla";
    stop;
    The from after some of our upgrades & server moves is currently either:
    DONOTREPLY@www1.zimbra.mail.ac4.yahoo.net
    DONOTREPLY@www2.zimbra.mail.ac4.yahoo.net
    DONOTREPLY@www3.zimbra.mail.ac4.yahoo.net
    DONOTREPLY@www4.zimbra.mail.ac4.yahoo.net
    We'll look into correcting that.

    You could change that filter to do a 'anyof' if you don't interact with other bugzillas, or still do 'allof' with a header contains and do subject contains '[Bug' instead of the DONOTREPLY@zimbra.com address - again if you dont interact with others but you could do X-Bugzilla-Component: ZCS or just add all the 4 frontend addresses above.

    Some more new headers in this version if you'd like to sort your mail even more:
    X-Bugzilla-Reason:
    X-Bugzilla-Type:
    X-Bugzilla-Watch-Reason:
    X-Bugzilla-Product:
    X-Bugzilla-Component:
    X-Bugzilla-Keywords:
    X-Bugzilla-Severity:
    X-Bugzilla-Who:
    X-Bugzilla-Status:
    X-Bugzilla-Priority:
    X-Bugzilla-Assigned-To:
    X-Bugzilla-Changed-Fields:

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Bugzilla is now corrected back to DONOTREPLY@zimbra.com

    Though I realize that still doesn't explain Rich's email that has that already had the old address & didn't catch on either of the 2 rules...

Similar Threads

  1. custom toolbar buttons not working in 5.0.5
    By java_macchiato in forum Zimlets
    Replies: 2
    Last Post: 04-24-2008, 02:20 PM
  2. .53 Will Not "Launch" in FF 2.0.0.6
    By jhoelz in forum Installation Help
    Replies: 4
    Last Post: 08-04-2007, 10:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •