Mailbox-plugin

Aus VDR Wiki
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Beschreibung

Autor: Alexander Rieger

Mailbox ist ein Plugin zum Lesen von eMails. Unterstützt werden POP3 und IMAP Postfächer.

Zum Zugriff auf die Konten nutzt das Plugin die IMAP server c-client-library von Mark Crispin. Da diese Bibliothek auch POP3 unterstützt können auch POP3 Accounts gelesen werden, POP3 Accounts werden jedoch nicht so gut unterstützt.

Bilder


Softwareanforderungen

  • openssl
  • imap
  • pam

Installation

Source

cd $SOURCEDIR
tar xvzf openssl-<VERSION>.tar.gz
cd openssl-<VERSION>
./config --prefix=/usr/local shared
make
make install
ldconfig
cd -
Hinweis
Hinweis

Die meisten Distributionen, haben PAM als Package, von Source über eine bestehende Version rüber bügeln ist nicht empfehlenswert.


<MAJOR.MINOR> entspricht der <VERSION>, zbs: 0.80.

tar xvzf Linux-PAM-<VERSION>.tar.gz
./configure --prefix=/usr/local --enable-static-libpam
make
make install
cd /usr/local/lib
ln -s libpam.so.<MAJOR.MINOR> libpam.so
ln -s libpam_misc.so.<MAJOR.MINOR> libpam_misc.so
ln -s libpamc.so.<MAJOR.MINOR> libpamc.so
ldconfig
cd -

tar xvzf imap.tar.Z
mv imap-2004e imap
cd imap
make lsu EXTRACFLAGS="-I/usr/local/include/openssl"

Vor dem Übersetzen des Plugins ist das Makefile zu ändern. ($SOURCEDIR anzupassen...)

IMAPDIR    ?= $SOURCEDIR/imap/c-client
IMAPINCDIR ?= $(IMAPDIR)
IMAPLFLAGS ?= $(IMAPDIR)/c-client.a -lssl -lpam

Arch-Linux

pacman -S imap

Crux

prt-get depinst libc-client

Debian

apt-get install libc-client2001 libc-client2001-dev

Plugin kompilieren:

 install the packages 'libc-client2001-dev'
 and set the following variables in the Makefile
 IMAPINCDIR ?= /usr/include/c-client
 IMAPLFLAGS ?= -lc-client

Alternativ für SSL Support

apt-get install libc-client-ssl2001 libc-client-ssl2001-dev
 libc-client-ssl2001:
 Wird für das Plugin benötigt.
 libc-client-ssl2001-dev:
 Wird zum kompilieren des Plugins benötigt!

Plugin kompilieren:

 install 'libc-client-ssh2001-dev'
 and set the following variables in the Makefile
 IMAPINCDIR ?= /usr/include/c-client
 IMAPLFLAGS ?= -lc-client -lssl

Gentoo

emerge c-client

Redhat

imap-devel

SuSE

yast -i pam-devel imap-lib imap-devel


Patches

  • vdr >= 1.3.18

Konfiguration

Zum Format der accounts.conf.

Die Account-Einstellungen werden abgelegt in.

$VDRCONFIG/plugins/mailbox/accounts.conf

Diese wird automatisch generiert, wenn Du ein Konto angibst.

Die Einstellungen kannst du aber auch händisch machen, indem Du eine Datei mit diesem Namen anlegst und folgendes für jedes Konto untereinander weg angibst.

Datei
$VDRCONFIG/plugins/mailbox/accounts.conf
[Account]
  AccountName  = deinkonto                    # lokaler Kontenname
  LoginName    = deinname                     # Mailbox- Zugangsname
  LoginPass    = deinpasswort                 # Mailboxpasswort
  MailBox      = {pop.t-online.de/pop3/notls} # Beispiel (Klammern müssen sein! BEI IMAP : {imap.deinserver.de/imap/notls/norsh}INBOX)
  AutoMarkSeen = 0                            # autom. als gelesen markieren 0-1
  Expunge      = 0                            # autom. ausf Server löschen 0-1

[Account]
  AccountName     = IMAP-SSL
  LoginName       = ********
  LoginPass       = ********
  MailBox         = {ImapSSL.server.de:993/imap/ssl/novalidate-cert}INBOX
  AutoMarkSeen    = 0
  Expunge         = 0


Um eingehende Mails via SVDRP anzeigen zu lassen.

New Mail in Account Name

ist die mailcmd.sh in den PATH zu kopieren.

find $SOURCEDIR/VDR -name mailcmd.sh -exec ln -vfs {} /usr/local/bin \;

Aufruf dann wie folgt.

vdr -P'mailbox -m /usr/local/bin/mailcmd.sh'


Parameter

Parameter (kurz) Parameter (lang) Beschreibung
-m CMD --mailcmd=CMD Skript, welches bei neuen M@ils aufgerufen werden soll.


Links

  1. OpenSSL Project
  2. Linux-PAM
  3. IMAP
  4. Homepage des Plugins



Excuse for my post but I do not have money to buy meal to my children. Forgive me please. anita anita anita anita anita anita anita anita anita anita anita anita anita anita anita around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world around the world as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv as seen on tv ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ashanti ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade ass parade associated press associated press associated press associated press ativan lorazepam buy lorazepam buy lorazepam online canada lorazepam cheap lorazepam generic lorazepam lorazepam online lorazepam side effects lorazepam withdrawal order lorazepam buy meridia buy meridia online cheap meridia discount meridia generic meridia meridia diet meridia diet pill meridia online meridia side effects meridia weight loss buy phentermine buy phentermine online cheap phentermine discount phentermine order phentermine phentermine diet pill phentermine online phentermine prescription phentermine side effects purchase phentermine buy propecia buy propecia online cheap propecia discount propecia generic propecia hair loss propecia order propecia propecia online propecia prescription propecia side effects buy soma buy soma online cheap soma order soma soma addiction soma carisoprodol soma drug soma online soma prescription watson soma buy tramadol cheap tramadol tramadol addiction tramadol cod tramadol hcl tramadol hydrochloride tramadol online tramadol prescription tramadol side effects buy ultram buy ultram online cheap ultram generic ultram order ultram tramadol ultram ultram addiction ultram online ultram side effects ultram weight loss buy valium buy valium online discount valium generic valium order valium purchase valium valium diazepam valium on line valium online buy viagra buy viagra online cheap viagra generic viagra order viagra viagra alternative viagra erection viagra online viagra pill viagra prescription buy xanax buy xanax online cheap xanax generic xanax order xanax purchase xanax xanax online xanax prescription xanax side effects xanax valium

In anderen Sprachen