Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux.slackware > #35615
| From | jayjwa <jayjwa@atr2.ath.cx.invalid> |
|---|---|
| Newsgroups | alt.os.linux.slackware |
| Subject | Re: countmail.py |
| Date | 2026-06-02 11:28 -0400 |
| Organization | atr2net 2026 |
| Message-ID | <87wlwhrmgf.fsf@atr2.ath.cx> (permalink) |
| References | <87mrxdzm6p.fsf@atr2.ath.cx> <eli$2606012308@qaz.wtf> |
Eli the Bearded <*@eli.users.panix.com> writes:
> This doesn't work with maildirs.
I don't use them and thus have nothing to work on. I'd consider adding
support if there was interest. This is the discussion and the script I
replaced in question:
https://www.linuxquestions.org/questions/slackware-14/countmail-4175764150/
>> mailPattern = re.compile( r'^From: *[^Mail System Internal Data]' )
> I have _immediate_ red flags going up. I don't know specifics of how
> Python's "re.compile" works
That's the problem.
> "[^Mail System Internal Data]" bit is a character class that contains
> the invert of the characters within. I am dubious that Python has
> redefined what "[^...]" means.
It has not.
https://docs.python.org/3/library/re.html
"Mail System Internal Data" is not a real mail message and thus should
*not* be counted. When I start Alpine with no mail, Alpine shows "no
mail", yet BSD countmail lists one message. That is incorrect. All this
is explained in the script.
--
PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
"The Internet should always be the Wild West!"
Back to alt.os.linux.slackware | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
countmail.py jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-06-01 22:54 -0400
Re: countmail.py Eli the Bearded <*@eli.users.panix.com> - 2026-06-02 03:17 +0000
Re: countmail.py jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-06-02 11:28 -0400
Re: countmail.py (v2.1) jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-06-02 17:05 -0400
csiph-web