jeroen.se
by jnieuwen
summarize irc topics from emails
I am in a lot of irc channels and in each of these channels the topic of the channel can change a few times per day. Of course I do not want to check the topic too often for changes. But on the other hand I also do not want to mis meeting or party announcements. Some googling gave me a irssi plugin to send an email per topic change. So far so good. But that meant that I had to read a lot of emails extra. Which means it still cost more time than needed to follow the changes in the topics.
Hence time to update my procmail filter to send those emails to a separate Maildir and create a script to summarize these emails: topic2single.pl. It reads mailfiles from standard input and summarizes all topic changes from these emails. I use the script with a rule like: find /home/jnieuwen/Maildir/.topic/new | topic2single.pl | sort | uniq and pipe the result of this to the mail command.
As a result of this I only have to read one email with topic changes a day. If your topic change emails have the same format: <nick> changed the topic of <channel> to: <topic> on a single line in the mail file then the script may work for you too.
0 comments

Nick:
Email:
Make your own addition with integers (needed to make sure you aint a spambot):
+ =
Categories
Cycling (2)
Gadgets (3)
IPv6 (1)
Misc (24)
Scripting (25)
Travel (7)
Unix (24)
Archive
January 2012 (1)
January 2011 (1)
November 2010 (1)
June 2010 (1)
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)