fetchmail-friends
[Top] [All Lists]

[fetchmail]I have this idea for a neat 'error' feature...

2004-11-08 07:57:56
I've got a '.fetchmailrc' file that contains lots of....

---
poll antic.net with proto POP3
       user 'bach' there with password 'egljogeg' is 'mozart' here

poll mail.hawilaminerals.com with proto POP3
       user 'sas(_at_)minerals(_dot_)com' there with password '1234' is 'sas' 
here
---

.... lots of them - thirty or forty...
I'd like to know the possibility of extending the format of a 'user'
line to contain the name of an error script to be run on the event of a
problem....

eg
"user 'bach' there with password 'egljogeg' is 'mozart' here"
becomes...
"user 'bach' there with password 'egljogeg' is 'mozart' here onerror
'/bin/fetcherror'"

(above is all on one line)

..and pass over either as Args - or as ENV Variables details like error
number, user, passwd, local-user, Poll-machine-name - etc.

As the man page says - When fetchmail queries more than one host, return
status is 0 if any query successfully retrieved mail. Otherwise the
returned error status is that of the last host queried.

I'd like an error routine called (if needed) per query/user. I can then
do something useful like block that entry from being used -  eg the
password was wrong (authentication failed).

ps. All my 'users' are in a MySql database (I guess there is no
reading .fetchmailrc config stuff directly?).


-- 
  .  .     ___. .__      Posix Systems - Sth Africa
 /| /|       / /__       mje(_at_)posix(_dot_)co(_dot_)za  -  Mark J Elkins, 
Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496




<Prev in Thread] Current Thread [Next in Thread>