Article View: news.software.readers
Article #144332Re: [Dialog] How- RegExp in !move() Action?
From: Walter Johnson
Date: Mon, 01 Mar 2004 06:18
Date: Mon, 01 Mar 2004 06:18
28 lines
2174 bytes
2174 bytes
On Sun, 29 Feb 2004 08:19:31 +0100, Antonio 'Gandalf' Favata wrote:
> Walter Johnson skribis:
>
>> I need to take the 10-digit number (or a substring of it), and
>> use that as the name of the folder to move the email to.
>
> Try this:
>
> [email.*]
> !move(%Subject%) Subject {\b(\d{10})\b}
>
>> "eBay item#1234567890 Bag of Seedless Peanuts" would be moved
>> into a folder named "1234567890".
>
> With this rule, the folder would be named «eBay item#1234567890 Bag of
> Seedless Peanuts» instead.
Thanks for your help, Antonio. It is a good idea, but alas, it
creates a folder named "%subject%", instead of a folder named
the text of the subject line.
And !move({%subject%}) creates a folder named "{%subject%}", etc.
It seems that !move() just doesn't accept expressions, only text.
And the same restriction applies to scoring rules, unfortunately:
=+1000 works, but =+{expression} doesn't work. :-(
Maybe that feature will added in a future release.
Technical Details
Message-ID:
<xAA0c.1477618$9p3.277580@news.easynews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mailReferences:
<gop2uocj16f.cvgxn6gw5an5.dlg@40tude.net> <yyafh264kvlu.dlg@shadowfax.ithn.invalid>Show Full Headers
Complete Article Headers
Message-ID: <xAA0c.1477618$9p3.277580@news.easynews.com> Subject: Re: [Dialog] How- RegExp in !move() Action? Date: Mon, 01 Mar 2004 06:18:05 GMT From: Walter Johnson <waltj@nospam.tld> References: <gop2uocj16f.cvgxn6gw5an5.dlg@40tude.net> <yyafh264kvlu.dlg@shadowfax.ithn.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail Newsgroups: news.software.readers User-Agent: 40tude_Dialog/2.0.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Lines: 28 X-Complaints-To: abuse@easynews.com Organization: EasyNews, UseNet made Easy! X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.