mythmaillog.pl File Reference

Go to the source code of this file.

Functions

 if ($mailwhat==2)
 while (@row=$sth->fetchrow_array)
 exit (0)

Variables

use DBI
 $mailto = "someone\@somewhere.changeme"
 $mailfrom = "someoneelse\@somewhere.changeme"
 $sendmail = "/usr/sbin/sendmail"
 $mailwhat = 1
 $autoack = 1
 $dbhost = "localhost"
 $dbname = "mythconverg"
 $dbuser = "mythtv"
 $dbpass = "mythtv"
my priorities
my $dbh
 $email = ""
 $q
 $sth = $dbh->prepare($q)
 $numrows = $sth->execute or die "Could not execute ($q)\n"
 $sec
 $min
 $hour
 $mday
 $mon
 $year
 $wday
 $yday
 $isdst
 $subject = sprintf("Myth Event Report for %4d-%02d-%02d",$year+1900,$mon+1,$mday)
open MAIL
open $sendmail t
print MAIL From
print MAIL To
print MAIL Subject


Function Documentation

if ( mailwhat = = 2  ) 

Definition at line 53 of file mythmaillog.pl.

while ( row = $sth->fetchrow_array  ) 

Definition at line 79 of file mythmaillog.pl.

exit (  ) 


Variable Documentation

use DBI

Definition at line 12 of file mythmaillog.pl.

$mailto = "someone\@somewhere.changeme"

Definition at line 20 of file mythmaillog.pl.

$mailfrom = "someoneelse\@somewhere.changeme"

Definition at line 24 of file mythmaillog.pl.

$sendmail = "/usr/sbin/sendmail"

Definition at line 27 of file mythmaillog.pl.

$mailwhat = 1

Definition at line 32 of file mythmaillog.pl.

Referenced by while().

$autoack = 1

Definition at line 36 of file mythmaillog.pl.

$dbhost = "localhost"

Definition at line 39 of file mythmaillog.pl.

$dbname = "mythconverg"

Definition at line 40 of file mythmaillog.pl.

$dbuser = "mythtv"

Definition at line 41 of file mythmaillog.pl.

$dbpass = "mythtv"

Definition at line 42 of file mythmaillog.pl.

Initial value:

 ("Emergency","Alert","Critical","Error","Warning","Notice",
                  "Info","Debug")

Definition at line 48 of file mythmaillog.pl.

my $dbh

Initial value:

 
DBI->connect("dbi:mysql:database=$dbname:host=$dbhost","$dbuser","$dbpass") or
                 die "Cannot connect to database ($!)\n"

Definition at line 50 of file mythmaillog.pl.

print MAIL $email = ""

Definition at line 74 of file mythmaillog.pl.

Referenced by while().

$q

Initial value:

 "select logid,module,priority,acknowledged,logdate,host," .
     "message,details from mythlog where $where order by logdate"

Definition at line 75 of file mythmaillog.pl.

$sth = $dbh->prepare($q)

Definition at line 77 of file mythmaillog.pl.

$numrows = $sth->execute or die "Could not execute ($q)\n"

Definition at line 78 of file mythmaillog.pl.

Referenced by if().

$sec

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$min

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$hour

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$mday

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$mon

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$year

Definition at line 123 of file mythmaillog.pl.

Referenced by getHtmlAlbum(), and if().

$wday

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$yday

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$isdst

Initial value:

Definition at line 123 of file mythmaillog.pl.

Referenced by if().

$subject = sprintf("Myth Event Report for %4d-%02d-%02d",$year+1900,$mon+1,$mday)

Definition at line 125 of file mythmaillog.pl.

close MAIL

Definition at line 126 of file mythmaillog.pl.

open $sendmail t

Definition at line 126 of file mythmaillog.pl.

Referenced by adpcm_compress_trellis(), alaw2linear(), altivec_packIntArrayToCharArray(), audio_encode_example(), audio_write_packet(), audioplay_callback(), av_add_sf(), av_aes_init(), av_cmp_sf(), av_normalize1_sf(), avi_es_out(), b64test(), bessel(), body(), bswap_32(), VideoListImp::build_generic_tree(), MoviesUI::buildMovieDataTree(), MoviesUI::buildTheaterDataTree(), clearPlaylist(), VideoOutput::CopyFrame(), MythburnWizard::createConfigFile(), ExportNativeWizard::createConfigFile(), dca_downmix(), decode_frame(), decode_run_2bit(), decode_subband_slice_buffered(), dering(), dump_context(), GLSingleView::EffectBend(), GLSingleView::EffectBlend(), SingleView::EffectChessboard(), GLSingleView::EffectFade(), GLSingleView::EffectFlutter(), GLSingleView::EffectInOut(), GLSingleView::EffectRotate(), GLSingleView::EffectSlide(), GLSingleView::EffectZoomBlend(), encode_block(), encode_picture_ls(), encode_subband_c0run(), es_out(), NativeArchive::exportRecording(), NativeArchive::exportVideo(), Synaesthesia::fadeHeat(), Synaesthesia::fadeWave(), fast_memcpy(), ff_jpegls_decode_picture(), ff_snow_horizontal_compose97i_altivec(), GuideGrid::fillTimeInfos(), NativeArchive::findNodeText(), flactell(), WeatherScreen::getAllDynamicTypes(), getDBParamters(), getFileInfo(), getFirstText(), XMLParseBase::getFirstText(), XMLParse::getFirstText(), UDPNotify::getFirstText(), OSD::getFirstText(), getHtmlAlbum(), getHtmlPlaylist(), getHtmlPlaylistEntry(), getHtmlPlaylistEntryPlaylist(), getHtmlPlaylistEntrySong(), getHtmlSong(), ImageView::GetRandomEffect(), DisplayRes::GetRefreshRates(), cCiSession::GetTag(), WeatherScreen::getType(), MoviesUI::handleTreeListEntry(), hpel_motion_search(), BumpScope::hsv_to_rgb(), idct32(), idct_row(), idx_to_quant(), if(), CdDecoder::initialize(), ir2_decode_plane(), ir2_decode_plane_inter(), lighten(), matroska_parse_seekhead(), MD5Update(), Video::metadata(), mid_pred(), mktimegm(), mpc7_decode_frame(), mpc8_decode_frame(), mpc8_parse_seektable(), mpc_read_header(), nsv_parse_NSVs_header(), oggtell(), ogm_dshow_header(), OnExpire(), GuideGrid::pageLeft(), GuideGrid::pageRight(), parse_date(), vxmlParser::parseIfBlock(), vxmlParser::parseNoInput(), vxmlParser::parsePrompt(), WeatherScreen::pause_animation(), pes_es_out(), pix_abs16x16_mvi(), pix_abs16x16_y2_mvi(), playlistInfo(), pow_m1_4(), MoviesUI::processTheatre(), pulseaudio_suspend(), qpel_motion_search(), quickdnr2(), quickdnr2MMX(), read_decoder_table(), RingBuffer::ReadFromBuf(), rtcp_interval(), EITScanner::RunEventLoop(), sad_hpel_motion_search(), savePlaylist(), GuideGrid::scrollLeft(), GuideGrid::scrollRight(), searchMusic(), cCiDateTime::SendDateTime(), LogScale::setMax(), setsocktimeout(), ProgFinder::showProgramList(), ProgFinder::showSearchList(), ProgFinder::showShowingList(), smacker_decode_bigtree(), smacker_read_packet(), SipTimer::Start(), TV::StartPlayer(), TV::StartRecorder(), PreviewGenerator::TeardownAll(), tm2_low_chroma(), transform(), truespeech_apply_twopoint_filter(), truespeech_place_pulses(), truespeech_read_frame(), truespeech_synth(), ulaw2linear(), ulti_grad(), unix_to_file_time(), unpack_coeffs(), WeatherScreen::unpause_animation(), usage(), vb_decode_framedata(), vorbis_comment(), vorbis_parse_setup_hdr_codebooks(), vp56_deblock_filter(), vp6_filter_diag4(), vt_line(), TVRec::WaitForEventThreadSleep(), SignalMonitor::WaitForLock(), DTVSignalMonitor::WaitForLock(), TVRec::WaitForNextLiveTVDir(), RecorderBase::WaitForPause(), wavpack_decode_frame(), WeatherScreen::WeatherScreen(), ws_snd_decode_frame(), wv_get_value(), wv_unpack_mono(), wv_unpack_stereo(), x8_ac_compensation(), x8_get_ac_rlf(), x8_loop_filter(), and xa_decode().

print MAIL From

Definition at line 127 of file mythmaillog.pl.

print MAIL To

Definition at line 128 of file mythmaillog.pl.

Referenced by if().

print MAIL Subject

Definition at line 129 of file mythmaillog.pl.


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5