Glenn Sieb wrote:
>
>On 12/9/10 5:36 PM, Mark Sapiro wrote:
>>  grep "From " $var_prefix/archives/private/$list.mbox/$list.mbox | \
>>  awk '{print $2}' | sort -u
>
>Wouldn't
>
>grep "^From "...
>
>(or egrep, depending on your toolkit)
>
>work better?


Actually, "^From " is what I intended, but I mistyped it.


>Otherwise you grab any sentences that begin with "From " as
>well.. like "From what I've heard..."
>
>Of course you'll still get "<blank line>From ..." if people have
>something similar for quote attributions.


All such lines in message bodies should be escaped as ">From ..." in
the .mbox file so they aren't misinterpreted as message separators.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to