Package: procmail Version: 3.22-19 Severity: normal Tong on the debian-user mailing list reported that \<...\> was not working. I investigated it somewhat, can confirm the broken behavior, and after looking at it a little I think it is a bug in \< expansion.
The procmailrc man page says: \< or \> Match the character before or after a word. They are merely a shorthand for `[^a-zA-Z0-9_]', but can also match newlines. Since they match actual characters, they are only suitable to delimit words, not to delimit inter-word space. The \< appears broken. However quite interestingly \\< appears to work okay. I wondered if there was a problem with backslash handling and tried a few combinations of it and found that \\< seems to behave as \< should be behaving. For example the following test case and looking at the verbose output to see what is matched and what is not matched. VERBOSE=on :0 HB * 1^0 testword * 1^0 \<testword\> * 1^0 \<testword * 1^0 testword\> * 1^0 \\<testword * 1^0 \\<testword\> testwordfolder It appears that \\< works where \< should work. I didn't look at the code to see how this only affected the before word case and not the after word case too. There should be a clue there. Thank you for maintaining procmail! Bob -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages procmail depends on: ii libc6 2.13-24 Versions of packages procmail recommends: ii postfix [mail-transport-agent] 2.8.5-1.1 procmail suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org