Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Perl Skript BITTE HELFT MIR ;-)

Empfohlene Antworten

Veröffentlicht

Hallo erstmal,

wusste ich net wohin ich das Skript pagen soll. Hoffe das war die richtige Entscheidung :) Kann mir jemand da weiterhelfen? Das Skript funzt net richtig. Sind da irgendwo denkfehler oder Syntaxfehler?

#!/usr/bin/perl

# Martin Fandel

# 28.05.02

# Pop3 Protocoll benutzen

use Net::POP3;

# Das Modul muss evtl. Nachinstalliert werden !!!

use Config::IniFiles;

#########

# Variablen #

#########

# Mailoptionen

$von = "pop3skript\@bravo";

$an = "fuchs\@bitburg-pruem.de";

$mta = "/usr/bin/sendmail";

# Ini Datei Variablen

$inifile = "/tmp/fil.ini";

# Pause

$sleep = 60;

##############

# Hauptprogramm #

##############

sub popdaten

{

$cfg = new Config::IniFiles -file => "$inifile" ;

$popuser = $cfg->val('POP3HOST', 'POP3UID') ;

$poppass = $cfg->val('POP3HOST', 'POP3PWD') ;

$popserv = $cfg->val('POP3HOST', 'POP3SERVER') ;

};

popdaten();

$pop3 = Net::POP3->new($popserv, Timeout => 30);

print "Einloggen in $popserv als $popuser ...\n";

$messagenum = $pop3->login($popuser,$poppass) || die "Konnte nicht in $popserv einloggen";

print "Sie haben $messagenum Nachrichten\n\n";

$pop3->quit();

if ($messagenum > 1)

{

open (MAIL, '|$mta -t');

print MAIL "From: $von\n";

print MAIL "To: $an\n";

print MAIL "Subject: Es befinden sich nachrichten auf $popserv\n";

print MAIL "Es befinden sich $messagenum Nachrichten auf $popserv\n";

ENDE

close MAILER;

sleep $sleep;

}

else

sleep $sleep;

Bitte ein Thema nur in einem Forum posten....

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.