roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.84k stars 1.63k forks source link

Roundcube is not matching text for "Body contains" #8314

Closed jamminjames closed 2 years ago

jamminjames commented 2 years ago

For some reason, Roundcube is not matching for a word in the body with the "Body contains" filter. The filter is enabled.

The word is on the first line of the body, as you can see here in the source code of the email in question. I am including up to the first couple lines of the html version of the body. This is a reply to an email sent to a customer. I am trying to filter for the word "REMOVE" in the body. It's right there, after the header and after "Content-Type".

Should I use "matches expression" instead? And if so, what should I put there?

Any help would be appreciated.

Return-Path: <emailaddy@gmail.com>
X-Original-To: subscriptions@humortimes.com
Delivered-To: ji_ht@dcn.org
Received: from bara.nccn.net (bara.nccn.net [168.150.250.4])
    by mail.dcn.davis.ca.us (Postfix) with ESMTPS id 7C398C0A6440A
    for <subscriptions@humortimes.com>; Sat, 13 Nov 2021 13:50:06 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.11.0 mail.dcn.davis.ca.us 7C398C0A6440A
Authentication-Results: mail.dcn.davis.ca.us;
    dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hwobp2CZ"
X-ASG-Debug-ID: 1636840198-0bd609042d7f31b0001-u2xJid
Received: from outbound-ip62b.ess.barracuda.com (outbound-ip62b.ess.barracuda.com [209.222.82.239]) by bara.nccn.net with ESMTP id zWoF6KoZflueTjuf (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <subscriptions@humortimes.com>; Sat, 13 Nov 2021 13:50:00 -0800 (PST)
X-Barracuda-Envelope-From: emailaddy@gmail.com
X-Barracuda-RBL-Trusted-Forwarder: 209.222.82.239
Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx-inbound-ea16-117.us-east-2b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 13 Nov 2021 21:49:41 +0000
Received: by mail-pl1-f174.google.com with SMTP id p18so11184819plf.13
        for <subscriptions@humortimes.com>; Sat, 13 Nov 2021 13:49:42 -0800 (PST)
X-Barracuda-RBL-IP: 209.85.214.174
X-Barracuda-Effective-Source-IP: mail-pl1-f174.google.com[209.85.214.174]
X-Barracuda-Apparent-Source-IP: 209.85.214.174
X-Barracuda-BBL-IP: 209.85.214.174
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
        bh=Y/w2azXrw+owUPhWNSUyXxAYit9FUL1Gcvwbgy96auo=;
        b=Hwobp2CZq3wXwFYKxJRydFRpUDLPKbVAwxrmM1mrZpL7blplKYYPiRXHDeXA6zdj/M
         g1xK7J25s89eqNYyjgTs5DHbeT9qPBQGXJrniXfZgUjl60OAYbdFZZAxPaGCerCPS6Xf
         RMRDEvbJ/gD2rGbcyeiSiOCbxwcWbyZAprCuc0l9TCd9fUpAKy9EBaAXrPZCSbByYvJg
         RfLJhO0phTCZhtiO10loBr+Rjeu5x5BLmkZ/vCE9XAjojsWfW2oNOY0MopJ/AIxTOzl5
         KMaMIGq0oZykEkI4aJB8D/GWmzoWU4bymYYssbRpz0lvnx5EZf49UC8iKa38WjEdgInl
         zHAQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to;
        bh=Y/w2azXrw+owUPhWNSUyXxAYit9FUL1Gcvwbgy96auo=;
        b=UFoVMxVk7HfY9H6UtMK94catX/qNF78iidTKZPgctABhXTCTAmcKXB4788HraYd0BQ
         sZ1/qrav3PAWnYvVQJ96RgLZR2CQk8NEv6yx2tV/1V2a1eGweMyry2zf47coi65LYPSj
         RV9iGlFfg43TMGiuFITJxnUwPwUcNa5GorA71WHh26qRs6dUMqaD471KAXuKCB9IV0za
         FH+OBHqZ0oyaEKLLEqb2QoMQtqfM4dAo+Adp6xDL8DQQqoUL/FJSIkEC28dd8mPL18P3
         gbL+ql8+46F2KXaLdnkjElGU8j8lPHa9H5W/EcOL/jpAJWbLsj69BIag3yjMZOtbPu3G
         XlTA==
X-Gm-Message-State: AOAM532ClwePJJgixvdPKlt6vEGz31Zjat0v5dBjDx2af/Dpe7lUw107
    WiXY0KlLTtZTZbgTugia6yEAaytXoa0/qiuc6CdTu3X+xDQ=
X-Google-Smtp-Source: ABdhPJzrqKme7KEYR9FGRD3/Cy7N6F5BxB+5Sb6FQO18lHWRD0NxqfhmyAHMYR/FyYH+1mbCk1z4kMV3owrmeFZIX0w=
X-Received: by 2002:a17:902:d4cf:b0:141:d36c:78f6 with SMTP id
 o15-20020a170902d4cf00b00141d36c78f6mr20881244plg.56.1636840104228; Sat, 13
 Nov 2021 13:48:24 -0800 (PST)
MIME-Version: 1.0
References: <tA6V6q5zdrot86CMg6CF5mmBgK98dRUoGgGviJFBj8M@dcn-colo-251-95.dcn.davis.ca.us>
In-Reply-To: <tA6V6q5zdrot86CMg6CF5mmBgK98dRUoGgGviJFBj8M@dcn-colo-251-95.dcn.davis.ca.us>
From: Tony M <emailaddy@gmail.com>
Date: Sat, 13 Nov 2021 15:48:21 -0600
Message-ID: <CAPrqa-=oTTO6rSjBnaFt_8coUAUhC9Hs+pirELOvmGz2CFJdYw@mail.gmail.com>
Subject: Re: Your Humor Times subscription is up for renewal (Subscriber #8296)
To: Humor Times <subscriptions@humortimes.com>
X-ASG-Orig-Subj: Re: Your Humor Times subscription is up for renewal (Subscriber #8296)
Content-Type: multipart/related; boundary="000000000000f7a66005d0b28889"
X-BESS-ID: 1636840178-104213-21028-319562-1
X-BESS-VER: 2019.3_20211111.1711
X-BESS-Apparent-Source-IP: 209.85.214.174
X-BESS-Spam-Status: SCORE=0.00 using global scores of QUARANTINE_LEVEL=N/A KILL_LEVEL=5.0 tests=HTML_MESSAGE
X-BESS-Spam-Report: Code version 3.2, rules version 3.2.2.235834 [from cloudscan8-
    7.us-east-2a.ess.aws.cudaops.com]
    Rule breakdown below
     pts rule name              description
    ---- ---------------------- --------------------------------
    0.00 HTML_MESSAGE           BODY: HTML included in message 
X-BESS-Spam-Score: 0.00
X-BESS-BRTS-Status:1
X-Barracuda-Connect: outbound-ip62b.ess.barracuda.com[209.222.82.239]
X-Barracuda-Start-Time: 1636840199
X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384
X-Barracuda-URL: https://bara.nccn.net:443/cgi-mod/mark.cgi
X-Barracuda-BRTS-Status: 1
X-Virus-Scanned: by bsmtpd at nccn.net
X-Barracuda-Scan-Msg-Size: 7735
X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210
X-Barracuda-Spam-Score: -2.02
X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=7.0 tests=HTML_MESSAGE
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.93929
    Rule breakdown below
     pts rule name              description
    ---- ---------------------- --------------------------------------------------
    0.00 HTML_MESSAGE           BODY: HTML included in message

--000000000000f7a66005d0b28889
Content-Type: multipart/alternative; boundary="000000000000f7a66005d0b28888"

--000000000000f7a66005d0b28888
Content-Type: text/plain; charset="UTF-8"

REMOVE   subscriber number (#8296).

On Thu, Nov 11, 2021 at 5:04 AM Humor Times <subscriptions@humortimes.com>
wrote:

> Hello, Tony,
>
> Your *Humor Times* subscription expired a while ago. Is there something
> we can do to win you back as a subscriber? We always strive to improve, and
> would appreciate your feedback.
>
> [image: Humor Times cover]
> <https://subs.humortimes.com/login.php?usernm=emailaddy@gmail.com>
> Latest issue cover.
> This monthly magazine is now 80% color, and hard-copy subscriptions cost
> as little as $22.95 a year when you renew online! Or, you may want to
> consider switching to our PDF Subscription: It downloads to your computer
> or device, is in full color, and costs as little as $7.95 a year!
>
> If you are planning on renewing at some point, and don't mind these
> reminders, you don't need to do anything. We look forward to hearing from
> you soon.
>
> The current issue is number 355 and your subscription expired with issue
> number 338.
>
> Don't miss any of the fun, renew today!
>
> To renew subscriptions, you may login here
> <https://subs.humortimes.com/login.php?usernm=emailaddy@gmail.com>, using
> the email address this notice has been sent to and your password (check
> 'Forgot your password?' if you need a reminder), and click on the 'Renew
> Subscriptions' button.
>
> Or, to mail in a renewal, please include your name and account number
> (#8296), and send a check or money order made out to Humor Times to:
>
> Humor Times
> POB 162429
> Sacramento, CA 95816
>
> We can also take orders by phone at 916-758-8255.
>
> If you want to renew by mail, our regular U.S. domestic subscription
> prices are:
>
> Regular 1 year (12 issues) $26.95
> Regular 2 year (24 issues): $50.95
> Regular 3 year (36 issues): $74.95
>
> (For Canadian and other foreign rates, log in using the link provided, or
> email or call us).
>
> And please remember, *Humor Times* subscriptions make great gifts!
>
> Visit our regular website (not for subscriptions) at:
> https://www.humortimes.com You might also like to check out our Facebook
> <https://www.facebook.com/humortimes> page and/or follow us on Twitter
> <https://www.twitter.com/humortimes>. And please watch and share our
> short promotional video <https://youtu.be/ZnyKP9Ciebs>!
>
> Thank you!
>
> *-- Humor Times staff*
>
> *To adjust your reminders*, login to your account
> <https://subs.humortimes.com/login.php?usernm=emailaddy@gmail.com> or
> notify us. You may change reminder notifications for gifts and/or your own
> subscription by changing your settings online, or by requesting changes via
> email, mail or phone.
>
> *To stop receiving reminders altogether*, reply with 'REMOVE' at the
> beginning of the subject line, leaving the rest of it as it is, including
> the subscriber number (#8296). If you wish to cancel your subscription,
> please tell us why in a brief note in the body of the email, after any
> removal request. Please note that if your subscription is expired, you will
> no longer receive postal reminders either. So if you only want to stop
> email reminders, but continue receiving postal reminders (approximately
> every other month), please either login to your account
> <https://subs.humortimes.com/login.php?usernm=emailaddy@gmail.com> and
> turn off email reminders there, or email us to request that, WITHOUT the
> removal request in the subject, or call us.

--000000000000f7a66005d0b28888
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">REMOVE=C2=A0=C2=A0

subscriber number (#8296).</div>
alecpl commented 2 years ago

Roundcube is creating filter definitions, but the filtering is done by the server. So, if there's a bug it does not look like Roundcube bug.

You might try to use different modifier (BODY-TRANSFORM) values in advanced options of the filter rule. https://www.rfc-editor.org/rfc/rfc5173.txt - Chapter 5.

jamminjames commented 2 years ago

@alecpl, The directions you linked to aren't really clear to me. Can you help me figure out how to use the advanced feature?

When I click on the down arrow to the left of the filter box ("advanced options" shows on hover), there is no "BODY-TRANSFORM" shown in the "comparator" nor "modifier" menus. This is with "Body" selected. I've tried the "..." choice and the others as an alternative to "Body", but it's the same.

There is a choice for "modifier" called "content type", is that what I should use? And what do I put in the blank?

Thanks for any help.