From owner-freebsd-isp@FreeBSD.ORG Tue Jul 7 10:40:18 2009 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97D59106566C for ; Tue, 7 Jul 2009 10:40:18 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id 717078FC08 for ; Tue, 7 Jul 2009 10:40:16 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from park.js.berklix.net (p549A7462.dip.t-dialin.net [84.154.116.98]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id n67AGvtB021141; Tue, 7 Jul 2009 12:17:01 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id n67AGlBw016255; Tue, 7 Jul 2009 12:16:47 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id n67AH1kc050687; Tue, 7 Jul 2009 12:17:06 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200907071017.n67AH1kc050687@fire.js.berklix.net> To: Xavier Cardil From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Tue, 07 Jul 2009 11:32:54 +0200." <50c2d0150907070232g7642cec9j3a24511dda5f81c3@mail.gmail.com> Date: Tue, 07 Jul 2009 12:17:01 +0200 Sender: jhs@berklix.com Cc: freebsd-isp@freebsd.org Subject: Re: mail treatment X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2009 10:40:18 -0000 Hi, Reference: > From: Xavier Cardil > Date: Tue, 7 Jul 2009 11:32:54 +0200 > Message-id: <50c2d0150907070232g7642cec9j3a24511dda5f81c3@mail.gmail.com> Xavier Cardil wrote: > Hi all, another question: > > When I check some user inbox mail, the mail is stored as only 1 file. > That's good because you don't get lots of files, one file per e-mail. > But when it comes to mail treatment, I find it is harder to manage. > I'm trying to find the way to get a message every time it come in, > analyse the subject and the attachments and with that two results do > something, like create another file to send it to a fax send > application. Is there a way to cut the file by mail, or to receive the > messages on different files ? > > Thank you. You are asking on wrong list. Better ask on eg hackers@ or questions@ next time. See list remit on http://freebsd.org/ However, Answer/ what I use: /usr/ports/mail/procmail Which is nmh compatible /usr/ports/mail/nmh Which is compatible with most MUA Mail User Agents. Procmail has lots of docu. & some example syntax, but here's my personal filter syntax for procmail http://www.berklix.com/~jhs/dots/.procmailrc http://www.berklix.com/~jhs/dots/.procmailrc.lists # for this list Cheers, Julian -- Julian Stacey: BSD Unix Linux C Sys. Eng. Consultant Munich http://berklix.com Mail in plain ASCII text, HTML & Base64 are spam. http://asciiribbon.org