From owner-freebsd-questions@FreeBSD.ORG Sat Jan 28 21:02:55 2012 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 A2FB0106566B for ; Sat, 28 Jan 2012 21:02:54 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg30.ifdnrg.com (outbound.ifdnrg.com [193.200.98.138]) by mx1.freebsd.org (Postfix) with ESMTP id 24CEB8FC14 for ; Sat, 28 Jan 2012 21:02:53 +0000 (UTC) Received: from [192.168.1.20] (188-221-77-161.zone12.bethere.co.uk [188.221.77.161]) (authenticated bits=0) by ifdnrg30.ifdnrg.com (8.14.5/8.14.4) with ESMTP id q0SL2pml081942; Sat, 28 Jan 2012 21:02:51 GMT (envelope-from paul@ifdnrg.com) Message-ID: <4F246279.1020406@ifdnrg.com> Date: Sat, 28 Jan 2012 21:02:49 +0000 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F23FAA1.5020700@herveybayaustralia.com.au> In-Reply-To: <4F23FAA1.5020700@herveybayaustralia.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Da Rock Subject: Re: OT: perl mail problems 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: Sat, 28 Jan 2012 21:02:55 -0000 On 28/01/2012 13:39, Da Rock wrote: > I know this is not exactly FreeBSD related, but I'm in need of a monk > that can enlighten me on a sacred incantation to connect perl to an > imap server using Mail::Box modules :) If it helps people sleep, its > all running only on FreeBSD systems... > > I have googled and searched, and googled some more, and tested, and > then went back to the drawing board and googled yet again... there is > simply no clear answer out there. All the docs are very disjointed > from my reckoning- with no clear direction that explains how you get > from a-b. > > I have enabled a connection (I think - based on my tests and logs), > but I cannot get further than that. I have a Mail::Box::Manager > instantiated, and then I have to use Mail::Box::IMAP4 to open a > connection to the server. From there I need to get a list of the > folders available- and thats where I get stymied. > > All the docs are pop3 based, or maildir based, or mbox. The imap is > very sketchy... and what is out there says to basically connect, and > then there is a jump to folders and messages with no idea of what is > involved in between. Although I did see one complete example with > pop3, but it won't work for imap. > there's good php support for IMAP, documentation might be better http://uk.php.net/manual/en/function.imap-list.php (easily scripted via cli). Paul..