1 #-----------------------------------------------------------------------------
3 # Gotmail - gotmail.awk
5 # 1999 by Thomas Nesges <ThomasNesges@TNT-Computer.de>
7 #-----------------------------------------------------------------------------
9 #-----------------------------------------------------------------------------
10 # This script is part of GotMail. It gives back normal text to the console
11 #-----------------------------------------------------------------------------
16 if(($3=="message") || ($3=="messages"))
18 Mails = Mails sprintf(" %- 40s ",substr($5,1,40))
19 Mails = Mails sprintf(" %- 5s ",substr($2,1,5))
20 Mails = Mails sprintf(" %- 30s\n",substr($7,1,30))
22 else if($3=="fetchmail")
24 Started = Started " " $0 "\n"
28 Errors = Errors $0 "\n"
34 Separator = "-------------------------------------------------------------------------------"
35 if(ENVIRON["GOTM_HED"]=="yes")
37 print "\n\t\t---------------------------------------"
38 print "\t\t| ** GotMail - Stats for fetchmail ** |"
39 print "\t\t---------------------------------------"
41 if(ENVIRON["GOTM_MSG"]=="yes")
44 print "| Fetched Mails:"
48 if(ENVIRON["GOTM_ERR"]=="yes")
51 print "| Error Messages:"
55 if(ENVIRON["GOTM_TIM"]=="yes")
58 print "| Fetchmail started/stoped:"