You can do this with IMAP.  I think you just use the "LIST" command after
connecting.

> -----Original Message-----
> From: Jay Kline [mailto:list at slushpupie.com] 
> Sent: Wednesday, November 07, 2001 9:30 AM
> To: tclug-list at mn-linux.org
> Subject: [TCLUG] Bulk Mail Parse
> 
> 
> At the company I work for, we have a "trap all" email 
> account, which collects most every piece of mail sent here.  
> On an average day, it recieves 15 to 20 thousand emails a 
> day, and is stored in a standard POP account. Because a large 
> number of these messages are server generated, all that is 
> important is the sender email address and the subject line 
> (for most anyway)  Is there some way I can automate a process 
> that goes through these emails, and creates a text file 
> containing the email address and the subject line, without 
> having to download the whole message? (in other words, one 
> text file on my machine that would get very large very 
> quickly- one line per email/subject) Some filtering 
> capibilities would be nice, but not required. I can do that 
> later with grep if need be.
> 
> Any help or advice would be great.
> 
> Jay
> 
> _______________________________________________
> Twin Cities Linux Users Group Mailing List - Minneapolis/St. 
> Paul, Minnesota http://www.mn-linux.org 
> tclug-list at mn-linux.org 
> https://mailman.mn-> linux.org/mailman/listinfo/tclug-list
>