From owner-freebsd-questions@FreeBSD.ORG Mon Oct 19 21:19:46 2009 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 5F8E2106566C for ; Mon, 19 Oct 2009 21:19:46 +0000 (UTC) (envelope-from davidcollins001@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.190]) by mx1.freebsd.org (Postfix) with ESMTP id ED2AF8FC21 for ; Mon, 19 Oct 2009 21:19:45 +0000 (UTC) Received: by gv-out-0910.google.com with SMTP id n29so545602gve.39 for ; Mon, 19 Oct 2009 14:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:content-type; bh=iue5RJHJrFbpT381zQ8rPS7r6ZuzlfQ3aImcMdAgX1I=; b=n7WyQF/R++GFVEg9jHvV4cxSf65WP5yUskadLaFgQeXf6cKJHwJzbMZkIHuZuNc1yR /jksIYCHBNooMrAk4KfilN/KQD1HZ7iV9vyEoEcN/Rzk5XcJqUjgBOQ0Pw9EF2gvkmzc eGY1t5wW12odauhDwiBbrGfISs397hn+/1VmQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; b=dkNKSsdllRs+hBX3yx9lHrGzI3/I7bkMO5D8Aeygp5mb7zflWGFElUmc+Z/2kHwIQE /li16y0WwZsdSD04HTa539bBVQPVNP7SivKCar6DhcMizA2PmOD6rQ6RIYz5SeIUw/lI 9cUvRrmFIZsatnnrwHUoXHtrQ4tOk7dagG3U0= MIME-Version: 1.0 Received: by 10.239.141.159 with SMTP id c31mr488472hba.147.1255987184573; Mon, 19 Oct 2009 14:19:44 -0700 (PDT) Date: Mon, 19 Oct 2009 22:19:44 +0100 Message-ID: <1b30fd140910191419k33ba1c66s885dbb61372193b4@mail.gmail.com> From: David Collins To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: mailx folder-hook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: davidcollins001@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2009 21:19:46 -0000 Hi, First off I know this isn't the place for this question and it is totally off topic, but I have been searching the internet for ages and have read the relevant section of the man page a number of times and tried a number of combination and I still can't figure this out. I am asking here because of all the forum/mailing lists that I see this one is one of the most knowledgable so someone here will probably know the answer. I have been using heirloom mailx to get some work based imap email, and I want to use it to read the questions here too, since it is easier. However there is quite a lot of traffic and I would like to filter mail but I can't get it to work. in my .mailrc I have the following: ## gmail imap account account ml { ## open inbox set folder=imaps://user@imapserver/Inbox } ## set up mail filters ## move freebsd questions mail the the freebsd_questions folder define freebsd_questions { move (text "freebsd-questions@freebsd.org") @freebsd_questions } set folder-hook-imap://davidcollins001ml@imap.gmail.com/Inbox=freebsd_questions All mail gets delivered and if I type 'call freebsd_questions' all the mail gets moved, but it won't do it when I login. Does anyone have any ideas about what I am doing wrong? David