EmailDiscussions.com  

Go Back   EmailDiscussions.com > Email Service Provider-specific Forums > FastMail Forum
Register FAQ Members List Calendar Today's Posts
Stay in touch wirelessly

FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc.

Reply
 
Thread Tools
Old 26 Aug 2004, 03:01 AM   #1
chicory_patch
Senior Member
 
Join Date: Aug 2002
Location: NorthEast, USA
Posts: 138
sieve script: //seen

The following line doesn't do what I want, which is mark messages containing the words "Digest Number" as seen.

} elsif header :contains "Subject" "Digest Number" {
setflag "\\Seen";
chicory_patch is offline   Reply With Quote

Old 26 Aug 2004, 05:06 AM   #2
kurianja
Master of the @
 
Join Date: Apr 2003
Posts: 1,395

Representative of:
Fastmail.FM
Perhaps the processing stops before the setflag is executed? Could you check that.
kurianja is offline   Reply With Quote
Old 26 Aug 2004, 07:25 AM   #3
DrStrabismus
The "e" in e-mail
 
Join Date: May 2002
Posts: 2,804
Also
  • look at the raw subject header to see whether it actually contains "Digest Number", rather an encoded version.
  • check to see whether a later rule uses setflag which, unlike addflag, replaces existing flags
DrStrabismus is offline   Reply With Quote
Old 31 Aug 2004, 10:57 PM   #4
chicory_patch
Senior Member
 
Join Date: Aug 2002
Location: NorthEast, USA
Posts: 138
It still doesn't seem to want to work.

I'm setting up test, but had another thought while I was at it. Can you filter based on the content of the body?
chicory_patch is offline   Reply With Quote
Old 1 Sep 2004, 05:08 AM   #5
DrStrabismus
The "e" in e-mail
 
Join Date: May 2002
Posts: 2,804
No
DrStrabismus is offline   Reply With Quote
Old 3 Sep 2004, 06:40 AM   #6
blujay
Member
 
Join Date: Aug 2003
Posts: 73
Make sure you have a closing brace after the semicolon. You didn't include one here, but maybe you just left it off here.
blujay is offline   Reply With Quote
Old 4 Sep 2004, 02:49 AM   #7
chicory_patch
Senior Member
 
Join Date: Aug 2002
Location: NorthEast, USA
Posts: 138
I've made some more changes. the filter still fails to mark the messages Read though

Quote:
require ["fileinto", "reject", "vacation", "regex", "relational", "comparator-i;ascii-numeric", "imapflags"];

#REJECT

if anyof (
header :contains "from" "***",
header :contains "from" "***",
header :contains "from" "***"){
reject "User unknown in local recipient table.
Giving up on 66.111.4.20.";
stop;

#UNSPAM FILTERED MAIL

} elsif header :contains "X-Yahoo-Newman-Property" "groups-digest" {
setflag "\\Seen";
} elsif anyof (
header :contains "from" "***",
header :contains "from" "***",
header :contains "from" "***"){
fileinto "INBOX.magician";
stop;
} elsif header :contains "X-Mail-from" "nobody@devnull.spamcop.net" {
fileinto "INBOX.spamcop";
stop;
} elsif header :contains "X-Mail-from" "@reports.spamcop.net" {
fileinto "INBOX.spamcop";
stop;
} elsif header :contains "from" "meetup.com" {
fileinto "INBOX.meetup";
stop;
} elsif header :contains "from" "notify@yahoogroups.com" {
fileinto "INBOX.notify";
stop;
} elsif header :contains "subject" "MODERATE" {
fileinto "INBOX.MODERATE";
stop;
} elsif header :contains "subject" "APPROVE" {
fileinto "INBOX.MODERATE";
stop;
} elsif header :contains "X-Yahoo-Newman-Property" "groups-email" {
stop;
} elsif header :contains "X-Apparently-To" "-owner@yahoogroups.com" {
fileinto "INBOX.MODERATE";
stop;

#POPLINKS

} elsif header :contains "X-LinkName" "voicenet" {
redirect "***";
# setflag "\\Seen";
fileinto "INBOX.voicenet";
stop;
} elsif exists "X-YahooFilteredBulk" {
setflag "\\Seen";
fileinto "INBOX.yahoo.spam";
stop;
} elsif allof (
header :contains "X-LinkName" "knightshade3",
header :contains "from" "spamcop@devnull.spamcop.net"){
fileinto "INBOX.yahoo.spamcop";
stop;
} elsif allof (
header :contains ["X-LinkName"] ["knightshade3"],
not header :is "X-Spam-score" ["0.0","0"],
exists "X-Spam-score"){
fileinto "INBOX.yahoo.spam";
stop;
} elsif header :contains "X-LinkName" "knightshade3" {
fileinto "INBOX.yahoo";
} elsif header :contains "X-LinkName" "sfcoven" {
fileinto "INBOX.sfcoven";
stop;

#SPAM FILTERED MAIL

} elsif header :value "ge" :comparator "i;ascii-numeric" "X-Spam-score" "5" {
fileinto "INBOX.Junk Mail";
stop;
} elsif header :contains "X-Delivered-to" "***" {
fileinto "INBOX.chicory";
} elsif header :contains "X-Delivered-to" "***" {
fileinto "INBOX.willow";
} elsif header :contains "X-Delivered-to" "***" {
fileinto "INBOX.carol";
} elsif header :contains "X-Delivered-to""***" {
fileinto "INBOX.willow.sfccpaypal";
stop;
}
chicory_patch is offline   Reply With Quote
Old 4 Sep 2004, 03:11 AM   #8
blujay
Member
 
Join Date: Aug 2003
Posts: 73
Well, that last script you posted doesn't even have "Digest Number" in it anywhere. So...?
blujay is offline   Reply With Quote
Old 4 Sep 2004, 03:15 AM   #9
kurianja
Master of the @
 
Join Date: Apr 2003
Posts: 1,395

Representative of:
Fastmail.FM
Can you paste the full headers of a mail that was not marked as seen.
kurianja is offline   Reply With Quote
Old 4 Sep 2004, 03:42 AM   #10
chicory_patch
Senior Member
 
Join Date: Aug 2002
Location: NorthEast, USA
Posts: 138
Quote:

Return-Path: <sentto-2430743-1023-1094236626-*>
Received: from mx2.messagingengine.com (mx2.internal [10.202.2.201])
by server2.messagingengine.com (Cyrus v2.3-alpha) with LMTPA;
Fri, 03 Sep 2004 14:37:10 -0400
X-Sieve: CMU Sieve 2.3
X-Spam-known-sender: yes
X-Spam-score: 0.0
X-Spam-hits: LINES_OF_YELLING, MAILTO_TO_SPAM_ADDR, NO_REAL_NAME
X-Resolved-to: *
X-Delivered-to: *
X-Mail-from: sentto-2430743-1023-1094236626-*
Received: from n11.grp.scd.yahoo.com (n11.grp.scd.yahoo.com [66.218.66.66])
by mx2.messagingengine.com (Postfix) with SMTP id B31A526A8A
for <*>; Fri, 3 Sep 2004 14:37:08 -0400 (EDT)
Received: from [66.218.67.194] by n11.grp.scd.yahoo.com with NNFMP; 03 Sep 2004 18:37:07 -0000
X-Yahoo-Newman-Property: groups-digest
MIME-Version: 1.0
Message-ID: <1094236626.555.14994.m12@yahoogroups.com>
Mailing-List: list SacredAction@yahoogroups.com; contact SacredAction-owner@yahoogroups.com
Delivered-To: mailing list SacredAction@yahoogroups.com
Precedence: bulk
List-Unsubscribe: <mailto:SacredAction-unsubscribe@yahoogroups.com>
Date: 3 Sep 2004 18:37:06 -0000
From: SacredAction@yahoogroups.com
To: SacredAction@yahoogroups.com
Subject: [SacredAction] Digest Number 1023
Reply-To: SacredAction@yahoogroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I'm using this header in the filter now.

X-Yahoo-Newman-Property: groups-digest

Quote:
} elsif header :contains "X-Yahoo-Newman-Property" "groups-digest" {
setflag "\\Seen";
}
chicory_patch is offline   Reply With Quote
Old 4 Sep 2004, 03:55 AM   #11
kurianja
Master of the @
 
Join Date: Apr 2003
Posts: 1,395

Representative of:
Fastmail.FM
AFAICS, that should have been marked as seen. Hm. Is this code recent? Are you using the http://www.fastmail.fm/mailx/ link to login? If yes, can you try that on http://www.fastmail.fm Make sure you click 'done' after changing the rules.
kurianja is offline   Reply With Quote
Old 4 Sep 2004, 04:12 AM   #12
chicory_patch
Senior Member
 
Join Date: Aug 2002
Location: NorthEast, USA
Posts: 138
I did hit done, and the change was there when I came back. I am on the beta server however. I'll try it from the main site.
chicory_patch is offline   Reply With Quote
Old 8 Sep 2004, 10:25 PM   #13
chicory_patch
Senior Member
 
Join Date: Aug 2002
Location: NorthEast, USA
Posts: 138
Quote:
Originally posted by kurianja
AFAICS, that should have been marked as seen. Hm. Is this code recent? Are you using the http://www.fastmail.fm/mailx/ link to login? If yes, can you try that on http://www.fastmail.fm Make sure you click 'done' after changing the rules.
Ok everything is done right and I have no idea why it will not work.
chicory_patch is offline   Reply With Quote
Old 9 Sep 2004, 12:27 AM   #14
bobpeers
Member
 
Join Date: Nov 2003
Location: Copenhagen,Denmark
Posts: 79
I've been having a look at your script and noticed that if you try to filter for any of the X-headers after these lines
Code:
Received: from mx2.messagingengine.com (mx2.internal [10.202.2.201])
by server2.messagingengine.com (Cyrus v2.3-alpha) with LMTPA;
Fri, 03 Sep 2004 14:37:10 -0400
it does not work.
However if the last 2 lines in that header are indented just 1 space the filter then appears to work. I know this doesn't really solve the problem but maybe someone else knows why this would be. I've been using Sanjays SieveTest by the way.I agree that it is very strange.
--
Bob
bobpeers is offline   Reply With Quote
Old 9 Sep 2004, 12:51 AM   #15
Daniel S
Guest
 
Posts: n/a
Bob: The space is required by RFC2822. If it is removed, the lines are processed as separate headers (rather than as one folded header).
In this specific case, the second and third line are not valid header lines.

However, I believe the reason the spaces are missing is that you copied the header from a [quote] block.
  Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 03:41 PM.

 

Copyright EmailDiscussions.com 1998-2022. All Rights Reserved. Privacy Policy