🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144207

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

#144207
From: Walter Johnson
Date: Fri, 27 Feb 2004 09:51
23 lines
2023 bytes
I'm trying to create an action rule that will move incoming
emails into a folder named for a piece of text in the 
subject line (a 10-digit number)

This action statement works just fine, testing for the existence
of a 10-digit number (using a regular expression), and moving
the emails into the folder "test":

[email.*]
!move(test) subject {(\d{10})}

But the other part of an action statement, in this case a !move()
function, doesn't seem to take expressions, except in the example
cases of an X-header Name:Value pair, which won't work for the
subject line.

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.  For
example, an email with the subject line:
"eBay item#1234567890 Bag of Seedless Peanuts" would be moved
into a folder named "1234567890".  

Can anybody give me a clue, how to achieve this?  :-)
Technical Details
Message-ID: <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.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <gop2uocj16f.cvgxn6gw5an5.dlg@40tude.net>
Subject: [Dialog] How- RegExp in !move() Action?
Date: Fri, 27 Feb 2004 09:51:21 GMT
From: Walter Johnson <waltj@nospam.tld>
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.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!140.99.99.194.MISMATCH!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="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 23
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.