Quote:
Originally Posted by SaintDanBert
Yeah. That telnet and raw data stuff is what I called "scraping." I was hoping that there was some 'wget' or similar one-time good-deal trick
|
Dan,
wget won't help you here because it doesn't speak the IMAP protocol. The basic steps you will have to follow are
- Log into the email server
- Download the headers for each message.
- Search for the message you are interested in.
- Download the body of the message of interest.
Netcat would probably be a cleaner option than telnet. Another option would be writing a script in a language like PHP, Python or Perl. Those languages all have IMAP libraries that would make the job easier.
Do you have shell access to the IMAP server? If so, what type of server is it: cyrus, courier, etc? In most cases, your messages will be stored in plain text anyway, and you could just grep the file(s) on the server's filesystem.
Regards,
Ben