My boyfriend and I share an email box but when he's at work he can only
reach his work box. I set up a .forward and some rules with elm filter to
send him anything that didn't come from himself or my relatives (and
others who will be mostly talking just to me) Works, kewl.. pat on
back... My boyfriend then sends me email saying 'ok that's good but can
you set it up to only work between 8am and 5pm.
Hmmm.. I _could_ try and learn procmail... but don't feel like it. I
_could_ try to play with cron jobs... but since I'm not an admin at my ISP
I'd rather not deal with stuff I have to ask someone else to give me more
So far I see two places where there is the possibility this could work.
I've done a little shell scripting but I'm not exactly sure how sendmail
deals with .forward
Idea 1. says I take my present .forward
"|/usr/local/bin/filter -f /home3/ccdsf/.aegonrules"
and put some function in so that when the hour is greater than 8 and less
than 17 .aegonrules is used and during other times another rules file is
used that just leaves mail in our shared box without forwarding anything.
The possible downside to that is does .filter even evaluate functions?
Idea 2. is that I write a shell script that is called from .forward
instead of filter which looks at the time and decides which filter
statement to run.
Which idea looks more feasible?
(who knows that nothing is truly impossible with *nix, it's just a matter
of how much pain one is willing to endure to get the result)