[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to remove messages from mbox based on relative date?



Quoting Mike Fedyk (mfedyk@matchmail.com):
> On Wed, Apr 25, 2001 at 11:32:05AM +0100, David Wright wrote:

> > If you process email using the Date: header, then you're basing
> > your processing on the date it was allegedly sent.
> > 
> > If you process email using the output of the date command, then
> > you're basing your processing on the current date.
> 
> Not if you tell date to output another date.  You can use gnu date's
> relative time functions to find out if you reverse the days by 30 to see if
> the months match, and write some wraping function to determine if the day of
> the month is within your criteria.  

Date's relative time functions are relative to the current date,
i.e. you're basing your processing on the current date (which changes
with time, paragraph 2) rather than the Date: header (which is fixed,
paragraph 1).

Of course, you may be saying something that's way beyond my
comprehension. I can't even parse the phrase
"to find out if you reverse the days by 30 to see if the months match".

> I was really hoping someone would post about the problems I've been having
> with the uidl and pop3 servers from my previous message.  I guess I'll just
> have to add more accounts... :(

I've no idea what this is about.

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



Reply to: