From owner-freebsd-questions@FreeBSD.ORG Mon Mar 24 19:02:43 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F355E106566B for ; Mon, 24 Mar 2008 19:02:42 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE498FC26 for ; Mon, 24 Mar 2008 19:02:42 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.2/8.14.2) id m2OJ2ffJ033366; Mon, 24 Mar 2008 14:02:41 -0500 (CDT) (envelope-from dan) Date: Mon, 24 Mar 2008 14:02:41 -0500 From: Dan Nelson To: Robert Huff Message-ID: <20080324190241.GA5555@dan.emsphone.com> References: <18407.62370.787768.503114@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18407.62370.787768.503114@jerusalem.litteratus.org> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.17 (2007-11-01) Cc: questions@freebsd.org Subject: Re: e-mail processing in C X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2008 19:02:43 -0000 In the last episode (Mar 24), Robert Huff said: > > I need to write a quick and not-too-dirty C program to process > some e-mail. (Including dealing with mbox files.) > Is there a standard library to do this? You can use the c-client library for this; it's what the pine email client uses. http://www.washington.edu/imap/documentation/internal.txt.html lists all the functions available, and I believe there are sample programs in the imap-uw source package that demonstrate how to read and write messages to mailboxes. -- Dan Nelson dnelson@allantgroup.com