Article View: uk.comp.os.linux
Article #139Re: Selectively downloading email based on headers?
From: David Hallowell
Date: Tue, 01 Jun 1999 00:00
Date: Tue, 01 Jun 1999 00:00
25 lines
1726 bytes
1726 bytes
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. 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. Then schedule a job about 5 minutes later to disconnect you from the internet (Demon disconnects you automatically if you are idle for too long but it's best to disconnect explicitly just in case they suddenly change their policy on this - or someone starts pinging you!). For more information on cron see the crontab man page. -- David Hallowell - <david.hallowell@ukuug.org> UKUUG Linux '99 Conference 25-26th June 1999 Info and bookings: http://www.linux.ukuug.org/linux99/
Technical Details
Message-ID:
<37540736.B27B68F4@ukuug.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3754225c.255417@news.demon.co.uk>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: David Hallowell <david.hallowell@ukuug.org> Subject: Re: Selectively downloading email based on headers? Date: 1999/06/01 Message-ID: <37540736.B27B68F4@ukuug.org> X-Deja-AN: 484510487 Content-Transfer-Encoding: 7bit References: <3754225c.255417@news.demon.co.uk> X-Accept-Language: en-GB, en Content-Type: text/plain; charset=us-ascii Organization: Linux @ Cable Internet Mime-Version: 1.0 Newsgroups: uk.comp.os.linux,demon.ip.support.unix