From owner-freebsd-questions@FreeBSD.ORG Mon Mar 24 19:50:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBD3A1065676 for ; Mon, 24 Mar 2008 19:50:46 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id B7DDA8FC1D for ; Mon, 24 Mar 2008 19:50:46 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id 5471B68BA3AC1; Mon, 24 Mar 2008 12:50:45 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GEqQZsa-l60Y; Mon, 24 Mar 2008 12:50:45 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id 37E2068665306; Mon, 24 Mar 2008 12:50:45 -0700 (PDT) Date: Mon, 24 Mar 2008 12:50:45 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org, questions@freebsd.org Message-ID: <20080324195045.GA25606@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org, questions@freebsd.org References: <18407.62370.787768.503114@jerusalem.litteratus.org> <874paw3q94.fsf@kobe.laptop> <18407.64771.350992.285915@jerusalem.litteratus.org> <87tziw2aq9.fsf@kobe.laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87tziw2aq9.fsf@kobe.laptop> User-Agent: Mutt/1.5.11 OpenPKG/2.5 Cc: Subject: Re: Email processing in Python X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2008 19:50:47 -0000 On Mon, Mar 24, 2008, Giorgos Keramidas wrote: >On Mon, 24 Mar 2008 15:12:03 -0400, Robert Huff wrote: >>Giorgos Keramidas writes: >>> No, there's no library for `email processing' in the C standard. You >>> can probably find a lot of non-standard ones, by Googling however :) >>> >>> It's worth writing that plain C is the wrong language for this >>> sort of thing, if you ask me. There are excellent high-level >>> libraries in Perl, and Python to do this sort of thing. >> >> On one hand, that's probably true. >> >> On the other hand: I know zero Python and this much > < Perl. I tried >> Perl, actually, and couldn't find the functions I needed. > >Heh, fair enough. It may be a good chance to start learning Python >though. It's always a lot more fun to have a *real* task to do, instead >of fictional `exercises'. > Python has quite a few routines that handle e-mail which are well documented in the Python Library Reference: http://docs.python.org/lib/lib.html The ``email'' module does much the same as the perl Mail::Internet modules (I've written a wrapper for python's email library that basically implements the perl API to make porting my old perl routines to python :-). The ``poplib'' and ``imaplib'' modules make accessing POP and IMAP servers pretty easy as well. Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Democracy Is Mob Rule with Income Taxes