🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144297

Re: [Dialog] How- RegExp in !move() Action?

#144297
From: Antonio 'Gandalf' Favata
Date: Sun, 29 Feb 2004 07:19
20 lines
2069 bytes
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.
-- 
Fare Well!  G  ~ http://snurl.com/dialog ~ http://www.x-privat.org/it-alt
«Once such incantatory phrases as "we see now through a glass darkly" and
"mysterious are the ways He chooses His wonders to perform" are mastered,
logic can be happily tossed out the window.»  (Stephen King, "The Stand")
Technical Details
Message-ID: <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!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.freenet.de!x-privat.org!not-for-mail
References: <gop2uocj16f.cvgxn6gw5an5.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <yyafh264kvlu.dlg@shadowfax.ithn.invalid>
Subject: Re: [Dialog] How- RegExp in !move() Action?
Date: Sun, 29 Feb 2004 08:19:31 +0100
From: Antonio 'Gandalf' Favata <gandalf@shadowfax.ithn.invalid>
References: <gop2uocj16f.cvgxn6gw5an5.dlg@40tude.net>
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!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.freenet.de!x-privat.org!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.60it (b5914073.312.182)
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Reply-To: gandalf@ithn.net
Organization: the White Council, Middle-earth
X-Now-Playing: The Regrettes - Sugar baby love
X-Face: &]^_njQjKuBI.th%)W1+ESkFY4E:r*#8}rkHLF'QTLo, >mql9aGkV*, v.-,
 qVdu&8Xk(6K
X-Headers: Move along, nothing to see here.
NNTP-Posting-Host: 212.141.103.88
X-Trace: x-privat.org 1078039235 212.141.103.88 (29 Feb 2004 08:20:35 +0100)
Lines: 20
X-Complaints-To: abuse@x-privat.org