Aniversaries
Principia Mathematica 320 years, Spam 70 years and Debian Social Contract 10 years. Things that changed the world?
Principia Mathematica 320 years, Spam 70 years and Debian Social Contract 10 years. Things that changed the world?
- Our priorities are pancakes and beer
We will be guidede by our need for pancakes and (preferable free) beer. We will place this interest first in our priorities. We wil support the needs of our users for knowledge of where to get many different kinds of pancakes and beers. We will not object to other kind of food and drinks, but pancakes and beer are our main common interesst and priorities. In furtherance of this need, we will provide guidance to beer and pancakes all over the world near and far away from Denmark.
For some reason the celebration of the Debian Social Contract was centered on Denmark. So I thought we might as well organize something in Denmark for real (some of us had talked about it some days ago).
We have yet to decide if our main priority is beer or pancake so the plans aren’t quite final yet. Ølbaren has been mentioned. If you are interested in joining contact me. (Update: Ølbaren is closed for the month)
Moving mail to an IMAP folder is easy. Often easier than “pipe the mail through this command” or even “forward the mail with all headers to this address”. But what magic can you use to get something done with the mail after moving it to the correct IMAP folder?
Using Courier IMAP and thus Mairdirs I came up with the following shell snippet:
cd $MAILDIR
inotifywait -m -q -e CREATE --format %f cur |
while read mail ; do
[ -f cur/$mail ] && $HOME/bin/process_mail < cur/$mail > /dev/null ;
[ -f cur/$mail ] && rm cur/$mail ;
done
It’s is not completely race condition free. cur/$mail can get renamed and will then be reprocessed. Interesting note: mail is moved from $MAILDIR/tmp to $MAILDIR/cur by link/unlink so the inotify-event is CREATE and not the expected MOVED_TO.
Any better solution?