...making Linux just a little more fun!


This month's answers created by:

[ Ben Okopnik, René Pfeiffer, Thomas Adam ]
...and you, our readers!

Our Mailbag

mbox selective deletion

Sam Bisbee [sbisbee at computervip.com]

Fri, 5 Feb 2010 19:28:52 -0500

Hey gang,

Here's the deal: I'm trying to delete a message from an mbox with Bash. I have the message number that I got by filtering with `frm` (the message is identified by a header that holds a unique SHA crypt). You've problem guessed by now, but mailutils is fair game.

I don't want to convert from mbox to maildir in /tmp on each run, because it's reasonable that the script would be run every minute. Also, I don't want to put users through that pain with a large mbox.

Also, I really don't want to write a "delete by message number" program in C using the libmailutils program, but I will resort to it if needed.

I saw http://www.argon.org/~roderick/mbox-purge.html, but would like to have "common" packages as dependencies only.

Is there some arg that I missed in `mail`? Should I just try and roll mbox-purge in? All ideas, tricks and release management included, are welcome.


Sam Bisbee

[ Thread continues here (10 messages/30.08kB) ]

Vocabulary lookup from the command line?

René Pfeiffer [lynx at luchs.at]

Thu, 4 Feb 2010 01:08:04 +0100

Hello, TAG!

I am trying to brush up my French - again. So I bought some comics in French and I try to read them. Does anyone know of a command line tool or even a "vocabulary shell" that allows me to quickly look up words, prreferrably French words with Germen or English translations?

I can always hack a Perl script that queries dict.leo.org or similar services, but a simple lookup tool should be around already.

Salut, René.

[ Thread continues here (7 messages/11.42kB) ]

Talkback: Discuss this article with The Answer Gang

Copyright © 2010, . Released under the Open Publication License unless otherwise noted in the body of the article. Linux Gazette is not produced, sponsored, or endorsed by its prior host, SSC, Inc.

Published in Issue 172 of Linux Gazette, March 2010