Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. POP Goes the E-Mail

Chapter 10. POP Goes the E-Mail

My introduction to network scripting came in September 2003, when the SWEN virus started flooding mailboxes with large files purporting to be a "Cumulative Patch" for Windows operating systems. Frequent posters to Usenet newsgroups were receiving thousands of these 150-kilobyte messages every day. As I am a frequent poster, I needed a utility to filter those messages at the source: a POP3 server at my Internet provider.

None of the filters available at the time did an adequate job, so I learned how to do it with shell scripts from Ken Burtch's book Linux Shell Scripting with Bash (Sams, 2004). The book doesn't mention POP3, but the technique of connecting to a network socket is the same for all protocols: bash treats it as a file that can be opened for both reading and writing. The specifics of the POP3 protocol are available from RFC 1939.[]

[] http://www.faqs.org/rfcs/rfc1939.html


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint