🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.comp.os.linux
Article #141

Re: Selectively downloading email based on headers?

#141
From: Simon Thompson
Date: Wed, 02 Jun 1999 00:00
28 lines
1942 bytes
On Tue, 01 Jun 1999 17:15:50 +0100, David Hallowell
<david.hallowell@ukuug.org> wrote:

>Simon Thompson wrote:
>> 
>> Does anyone know how/if it is possible to only download mail based on
>> a header such as the From: field?
>>
>> poll pop3.demon.co.uk protocol SDPS username simon@tyrant password xxx
>> 
>> Any ideas?
>You'll need to use procmail (in addition to fetchmail and sendmail which
>you already have) to filter the mail on the conditions that you specify.
>See the procmail man page for more information on this.
It looks like I will be able to filter it correctly with procmail, but
how do I run procmail in conjunction with fetchmail to download only
the headers specified by the procmail recipe? I thought that this
functionality would have to be in fetchmail itself, otherwise it will
just download everything for simon@tyrant before procmail gets a look
at it.

>To dial in periorically just use cron to schedule a job to dial in (say)
>every hour to connect to the internet and run fetchmail. 
That's what I was thinking, thanks.

Regards

Simon
Technical Details
Message-ID: <375652df.6590226@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3754225c.255417@news.demon.co.uk> <37540736.B27B68F4@ukuug.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d8ad,b7c31c11aec6f36f
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: 108f6a,b7c31c11aec6f36f
X-Google-Attributes: gid108f6a,public
From: simon@tyrant.demon.co.uk (Simon Thompson)
Subject: Re: Selectively downloading email based on headers?
Date: 1999/06/02
Message-ID: <375652df.6590226@news.demon.co.uk>
X-Deja-AN: 484952112
Content-Transfer-Encoding: 7bit
X-NNTP-Posting-Host: tyrant.demon.co.uk:158.152.153.49
References: <3754225c.255417@news.demon.co.uk> <37540736.B27B68F4@ukuug.org>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 928347009 nnrp-07:26740 NO-IDENT tyrant.demon.co.uk:158.152.153.49
MIME-Version: 1.0
Reply-To: simon@tyrant.demon.co.uk
Newsgroups: uk.comp.os.linux,demon.ip.support.unix