Michael -- IERenderer's Homepage PGP Key ID (RSA 2048): 0xC45D831B S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
[quote user="David H. Lipman"]CNM files ? The t-online.de Domain address ?[/quote]
CNM files are the files in your new mail directory (see Help => About Pegasus Mail => Info for paths) containing single downloaded new messages. And yes, the ...t-online.de address.
Michael -- IERenderer's Homepage PGP Key ID (RSA 2048): 0xC45D831B S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
How do I best filter any/all email with subjects like...
Subject: =?gb2312?B?UmU6IHRxade/LtS9LsjLLsGmLtfKLtS0LrncLsDtLsjL?=
Subject: =?gb2312?B?dHFp178u1L0uyMsuwaYu18ou1LQuudwuwO0uyMs=?=
Just detecting "gb2312" in the subject or headers doesn't work. It is like the characterset is interpreted and then the filters and regular expressions work on the interpreted string.
I don't want to receive even something like...
Return-path: <REPLY-AGENT@anti-spam.cn>
Received: from mxs1.hichina.com ([unknown] [121.196.2.158])
by vms169119.mailsrvcs.net
(Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009))
with ESMTP id <0LTB008I29HYUYM0@vms169119.mailsrvcs.net> for
dlipman@verizon.net; Wed, 19 Oct 2011 06:34:49 -0500 (CDT)
Date: Wed, 19 Oct 2011 19:34:41 +0800
From: abuse@anti-spam.cn
Subject: =?gb2312?B?UmU6IG1yZzMguN8gvKgg0Kcgz/ogytsgzcUgttMgvsM=?=
X-Originating-IP: [121.196.2.158]
To: dlipman@verizon.net
Message-id: <20111019193441.16010.quarkmail@mxs1.hichina.com>
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: base64
Original-recipient: rfc822;dlipman@verizon.net
X-PMFLAGS: 34099264 0 1 P3Y7RE23.CNM
5bCK5pWs55qE55So5oi3OuaCqOaJgOS4vuaKpeeahOWeg+WcvumCruS7tuaI
keS7rOW3suaUtuWIsCzmhJ/osKLmgqjlr7nmiJHku6zlt6XkvZznmoTmlK/m
jIEhDQror7fkuIvmrKHlsIbmgqjmlLbliLDnmoTlnoPlnL7pgq7ku7bku6Xp
mYTku7bnmoTlvaLlvI/lj5HpgIHliLDmiJHku6znmoTmlrDpgq7nrrFhYnVz
ZUAxMjMyMS5jbuOAgg0K5Y6f6YKu566xYWJ1c2VAYW50aS1zcGFtLmNu5bCG
5ZyoMjAxMOW5tOW6leWBnOeUqOOAguaEn+iwouaCqOeahOmFjeWQiO+8gQ==
If expression headers matches "subject*gb2312*" LeaveOnServer ""
I tried the above as a POP3 rule and PMail does LeaveOnServer.
Here is shown Gmail display:
Here is shown Pmail "Selective mail download" dialog:
Guy,
Thanx for for you persistent assistance here and on Usenet. I appreciate it !
I feel like an idiot because I MUST be screwing it up 'cause it still isn't working and I don't get why [:'(]
Subject...
=?gb2312?B?dHFp178u1L0uyMsuwaYu18ou1LQuudwuwO0uyMs=?=
?gb2312?B?dHFp178u1L0uyMsuwaYu18ou1LQuudwuwO0uyMs=?=
Rules work asI intended them to.
Which again leads me to believe the string is being
interpreted first and then the rules are applied.
> =?gb2312?B?dHFp178u1L0uyMsuwaYu18ou1LQuudwuwO0uyMs=?=
I do not know about you but I filter this China stuff on the MIME type string in the headers and not the Subject using an expression type filter. This should work just fine as a POP3 filter as well. One advantage of these headers is that they are all 7 bit unencoded.
You can also use Content Control since this one is built in.
Two suggestions:
Try a test of the server to see if it accepts the 'optional' POP3 TOP command.
When you know there is at least one message at your POP3 account, telnet to the server and issue a TOP command.
At a command prompt type:
TELNET incoming.verizon.net 110
USER userid [e.g. dlipman@verizon.net or dlipman]
PASS password [your password]
TOP 1 0
The server should display the headers of message number one in your mailbox.
Create another entry in your POP3 rule set like:
If expression headers matches "subject*barfoo123*" LeaveOnServer ""
Send a test message to your Verizon account with that Subject (barfoo123) and see if the message is retrieved or left on the server as the rule intends.
[quote user="Thomas R. Stephenson"]
> =?gb2312?B?dHFp178u1L0uyMsuwaYu18ou1LQuudwuwO0uyMs=?=
I do not know about you but I filter this China stuff on the MIME type string in the headers and not the Subject using an expression type filter. This should work just fine as a POP3 filter as well. One advantage of these headers is that they are all 7 bit unencoded.
You can also use Content Control since this one is built in.
[/quote]
I have no problem filtering on; charset=gb2312
But I want to filter on the Subject as shown in the Full Header example in the initial post.
For the Telnet session.
Even though I have a message in the InBox (as seen by webmail)
TOP 1 0
-ERR No such message
As for testing the POP3 Rule Set. It works. It has always worked. It doesn't work on the Chinese charset GB3212
As noted...
I don't know. I have three test messages "stuck" (LeaveOnServer) at Gmail.
Then there must be a configuration setting that tells P-Mail how to process strings that you have a different setting than I. Admittedly I have looked for such a setting and can find none. Maybe it is in a configuration file ?
You have seen the screen captures and I have tried all sorts of variations. It is just is not working.
> I have no problem filtering on; charset=gb2312
>
> But I want to filter on the Subject as shown in the Full Header
> example in the initial post.
But since that does not work I'm not all that sure wanting to filter on the subject will be all that useful. ;-)
> For the Telnet session.
>
> Even though I have a message in the InBox (as seen by webmail)
>
> TOP 1 0
>
>-ERR No such message
All this means is that the server is not offering up the mail via POP3. Happens a lot where the server is set to offer up only mail that has not been read. Mercury can be set to do this as well.
[quote user="Thomas R. Stephenson"]> I have no problem filtering on; charset=gb2312
>
> But I want to filter on the Subject as shown in the Full Header
> example in the initial post.
But since that does not work I'm not all that sure wanting to filter on the subject will be all that useful. ;-)[/quote]
Since I have two people indicating it works for them there may be a configuration setting that needs to be set/changed in my setup.
This is what I need and I am not willing to give up yet.
[quote user="David H. Lipman"]Since I have two people indicating it works for them there may be a configuration setting that needs to be set/changed in my setup.[/quote]
Here's David Harris' comment on this:
Simple header matching always unravels RFC2047 encoded-words
before doing the comparison, while expression tests *never* do that.
In other words, if you use the "headers" button in the rule editor to
create your rule, then any encoded-words will be unravelled beforecomparison, but if you use the "expression" button, they won't be.
Michael -- IERenderer's Homepage PGP Key ID (RSA 2048): 0xC45D831B S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
[quote user="idw"]
[quote user="David H. Lipman"]Since I have two people indicating it works for them there may be a configuration setting that needs to be set/changed in my setup.[/quote]
Here's David Harris' comment on this:
Simple header matching always unravels RFC2047 encoded-words
before doing the comparison, while expression tests *never* do that.
In other words, if you use the "headers" button in the rule editor to
create your rule, then any encoded-words will be unravelled beforecomparison, but if you use the "expression" button, they won't be.[/quote]
This fails too...
[quote user="David H. Lipman"]Anything new ?[/quote]
What do you expect? Unless this can be duplicated by us I don't see what we can do about it? I'm afraid only you can figure out what's so special with your Pegasus Mail that it doesn't work properly. Maybe you can install a clean second copy for testing to see whether it exhibits the same issue?
Michael -- IERenderer's Homepage PGP Key ID (RSA 2048): 0xC45D831B S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
[quote user="idw"]
[quote user="David H. Lipman"]Anything new ?[/quote]
What do you expect? Unless this can be duplicated by us I don't see what we can do about it? I'm afraid only you can figure out what's so special with your Pegasus Mail that it doesn't work properly. Maybe you can install a clean second copy for testing to see whether it exhibits the same issue?
[/quote]
I don't expect anything. I hope for clues.
Actually, you helped me again as I will try this on my Vista notebook.
Danke Michael.
On my Vista notebook I installed v4.62 from scratch and setup POP3 account, Pop3 Mail Filter, Download Controls for pop3 rule4s, etc from scratch and used this rule...
I went to an alternate email account a created an email with the subject being one of the subject lines I posted in the inital post of this thread.
Email still was downloaded to InBox. The ONLY difference is the subject line was decoded. On my main computer (which has been upgraded from version, to version, to the v4.62) they are substituted characters.
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.