[RC5] silly perl/mutt hacking

Greg Wooledge wooledge at kellnet.com
Sun Dec 19 21:55:24 EST 1999


The new Linux client splits the summary line into two lines.  Here's an
updated .muttrc entry for my header-generator.  (I tried to split it onto
multiple lines, but mutt wasn't buying it, even with backslashes.)

my_hdr X-www.distributed.net: `perl -e 'while (<>) { chomp; if (/Summary:/) { $s = $_; $n = <STDIN>; } } $s =~ s/^.*Summary: //; $n =~ s/^.*\[/\[/; print $s, " ", $n;' < $HOME/dnet-dwarf/log`

The old one was much simpler:

#my_hdr X-www.distributed.net: `grep '\] Summary' "$HOME/dnet-dwarf/log" | tail -1 | cut -d' ' -f5-`

Chances are nobody cares, but I figured I'd post this anyway, since the
X-Files is a repeat and I'm bored. :-P

-- 
Greg Wooledge                    | "Truth belongs to everybody."
wooledge at kellnet.com             |   Red Hot Chili Peppers
http://www.kellnet.com/wooledge/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://lists.distributed.net/pipermail/rc5/attachments/19991219/f866bba1/attachment-0001.bin


More information about the rc5 mailing list