similar to: Matching regexps

Displaying 20 results from an estimated 2000 matches similar to: "Matching regexps"

2017 May 09
2
Dovecot/Sieve shortcuts?
Hi, Is there a clean way to match on an email address the way procmail ^TO_ did? that was a macro which expanded to (^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope |Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?) so you could write * ^TO_dovecot dovecot and grab messages to the list. In sieve, I find myseld writing ["To","cc"] and wonder if there's a better way. Adam
2017 May 09
4
Dovecot/Sieve shortcuts?
On 5/9/17, 11:25 AM, "dovecot on behalf of Christian Kivalo" <dovecot-bounces at dovecot.org on behalf of ml+dovecot at valo.at> wrote: Am 9. Mai 2017 17:47:13 MESZ schrieb Adam Shostack <adam at shostack.org>: >Hi, > >Is there a clean way to match on an email address the way procmail >^TO_ did? that was a macro which expanded to
2017 May 10
1
Dovecot/Sieve shortcuts?
Thanks! This is super-interesting. As I try to set up include, I get failures which may indicate a need for more coffee, but in /etc/dovecot/cond.f/90-sieve.conf I have: plugin { # Directory for :personal include scripts. The default is to use home directory. sieve_dir = %h/.sieve # Directory for :global include scripts (not to be confused with sieve_global_path). # If
2017 May 09
1
Dovecot/Sieve shortcuts?
On 5/9/17, 12:38 PM, "Adam Shostack" <adam at shostack.org> wrote: On Tue, May 09, 2017 at 11:27:22AM -0500, Larry Rosenman wrote: | On 5/9/17, 11:25 AM, "dovecot on behalf of Christian Kivalo" <dovecot-bounces at dovecot.org on behalf of ml+dovecot at valo.at> wrote: | Am 9. Mai 2017 17:47:13 MESZ schrieb Adam Shostack <adam at
2006 Feb 21
2
validates_format_of :url, regexp?
Hey, Does anybody have a regexp for validating URLs? I found this one and am trying to adapt it: ^(((ht|f)tp(s?))\:\/\/)?(www.|[a-zA-Z].)[a-zA-Z0-9\-\.]+\.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk)(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\;\?\''\\\+&%\$#\=~_\-]+))*$ (http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_21245168.html) I also found this one, but, um,
2023 Jul 23
1
Bug in perl=TRUE regexp matching?
The help page for `?gsub` says (in the context of performance considerations): "... just one UTF-8 string will force all the matching to be done in Unicode" However, this thread on SO: https://stackoverflow.com/q/76749529 gives some indication that this is not true for `perl = TRUE`. Specifically: > strings <- c("89 562", "John Smith", "???????
2017 Feb 10
0
Safely piping to a shell script
Thanks for the previous answer on :execute. In thinking about malicious input, I am worried about the possibility that mail will be sent with a clever from line. (Section 7 of http://www.ietf.org/rfc/rfc5229.txt is great, btw) To address this, I'm considering the following, and would appreciate feedback. I'm aware that this doesn't capture all emails, those with non-alphanum are
2006 Jun 13
0
HTTP validation regexp, possible solution
There was an old email thread from the end of January 2006 discussing regular expressions for matching URLs. I took some of the sample expressions and tweaked them a bit to the point where I think they are pretty useful. They pass all of my tests anyway. :-) For a reminder, here''s a sample message from that thread. My code is below it. On Jan 26, 2006, at 5:28 AM, Nathaniel S.
2008 Aug 11
1
Problems connecting to remote rsync daemon
This is a newbie question. I've looked through the archives and haven't found an answer to this. I set up rsync in inetd.conf to respond on request. When I give a remote request to the machine, I get the following error: paladin:~ tamara$ rsync -avr /Volumes/Music/Pictures/ rsync:// tamara@server/Pictures/ rsync: connection unexpectedly closed (0 bytes received so far) [sender]
2003 Jul 14
2
Subsetting a matrix
I'd welcome some comments or advice regarding the situation described below. The following illustrates what seems to me to be an inconsistency in the behaviour of matrix subsetting: > Z<-matrix(c(1.1,2.1,3.1,1.2,2.2,3.2,1.3,2.3,3.3),nrow=3) > Z [,1] [,2] [,3] [1,] 1.1 1.2 1.3 [2,] 2.1 2.2 2.3 [3,] 3.1 3.2 3.3 > dim(Z) [1] 3 3 >
2005 Oct 10
1
using innov in arima.sim
Hello, I have used the arima.sim function to generate a lot of time series, but to day I got som results that I didn't quite understand. Generating two time series z0 and z1 as eps <- rnorm(n, sd=0.03) z0 <- arima.sim(list(ar=c(0.9)), n=n, innov=eps) and z1 <- arima.sim(list(ar=c(0.9)), n=n, sd=0.03), I would expect z0 and z1 to be qualitatively similar. However, with n=10 the
2006 Dec 02
1
Trouble passing arrays to C code
Hello, I'm having more trouble with interfacing with C code. I have a function in C that will return the result of its computation as 3 arrays. The signature of the function is as follows: void lorenz_run(double x0, double y0, double z0, double h, int steps, double *res_x, double *res_y, double *res_z) The function works, as I've tested it from within C itself and the results
2006 Jun 05
2
When adding a record in console, a parameter comes in as null even when I set it
In console, I am trying to create a User but the :account_id does not come in. Console just gives me back :account_id => nil. Obviously I''m trying to set it though. Silly console... But, I can set the account_id column in my controller like so: @user = User.new(params[:user]) @user.account_id = account.id @user.save Here''s what I give to the controller: User.create :name
2008 Feb 11
1
ctags support for puppet
This is a quick and dirty .ctags file that makes basic navigation possible with vim and ctags, great if you have multiple files: --langdef=puppet --langmap=puppet:.pp --regex-puppet=/^class[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^site[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^node[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^define[
2014 May 09
1
Only part of sieve script works
Hi, I am using Dovecot 2.2.11 with Pigeonhole on Arch Linux. I have a partly working sieve script (pasted to the end of this mail) which sorts mail into various imap folders. The first, third and fourth if blocks work just fine. The second and fifth block do not sort any mails. However, if I apply the script with sieve-test to mails the second and fifth block seem to work. How is the manual
2013 Nov 19
1
Quick question on sieve
I have a procmail recipe that does the majority of my heavy lifting for my mailing lists. It's pretty straightforward, but as I understand it, this isn't something sieve can do: # [ ] contains a space and a tab :0 * 9876543210^0 ^(List-Id:.*<|X-Mailing-List:[ ]*)\/[-A-z0-9_+]+ * 9876543210^0 ^(List-Post:[ ]*(<mailto:)?|List-Owner:[ ]*(<mailto:)?owner-)\/[-A-Z0-9_+]+ *
2017 May 18
2
per user procmail filtering and dovecot-lda
On 5/17/2017 11:26 AM, Adam Shostack wrote: > Also, procmail is way out of date, no longer maintained, and there are > "semi" known vulnerabilities that haven't been fixed. See > http://marc.info/?l=openbsd-ports&m=141634350915839&w=2 & the > wikipedia page. What alternatives exist for server-side filtering into folders? Is there anything as powerful?
2006 Sep 04
1
how to fit gauss beam?
Hello, I am having a hard time fitting a gauss beam using R. In gnutplot I did something like $ w(z) = w0 * sqrt(1+(z/z0)**2) $ fit w(z) 'before_eom.txt' using 1:2 via w0, z0 to obtain w0 and z0. Now I want to do the same in R. I tried a linear model like this (r = radius, z = distance): beam <- function(z) { sum(sqrt(1 + z**2)) } lm(r ~ I(beam(z)), data = before_eom) Which
2017 May 09
0
Dovecot/Sieve shortcuts?
Am 9. Mai 2017 17:47:13 MESZ schrieb Adam Shostack <adam at shostack.org>: >Hi, > >Is there a clean way to match on an email address the way procmail >^TO_ did? that was a macro which expanded to >(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope >|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?) > >so you could write >* ^TO_dovecot >dovecot > >and grab
2017 May 09
0
Dovecot/Sieve shortcuts?
On Tue, May 09, 2017 at 11:27:22AM -0500, Larry Rosenman wrote: | On 5/9/17, 11:25 AM, "dovecot on behalf of Christian Kivalo" <dovecot-bounces at dovecot.org on behalf of ml+dovecot at valo.at> wrote: | Am 9. Mai 2017 17:47:13 MESZ schrieb Adam Shostack <adam at shostack.org>: | >Hi, | > | >Is there a clean way to match on an email address the way