Mailparser: Unterschied zwischen den Versionen

Aus infra-struktur AdminWiki 2.10
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 30: Zeile 30:




-noarchiv                                  noarchiv - If this flag is
                                            set, the mails are not automatically archivied.
-imaxa,--idletime_maxage                  idletime_maxage <min> - Sets
                                            Idle max age (in min). The time (in minutes), for a connection to remain
                                            unused before it is closed off. Default: 1 minutes
-ictp,--idletime_connection_test_period
                                            idletime_connection_test_period <min> - Sets the idleConnectionTestPeriod.
                                            This sets the time (in minutes), for a connection to remain idle before
                                            sending a test query to the DB. This is useful to prevent a DB from timing
                                            out connections on its end. Default: 30 minutes
-delay                                    delay <millisec> - The delay
                                            (in millisec) between parsing of two messages. Default is 2.
-dblogin                                  dblogin <login> - The login
                                            name (user) for the database.
-to,--timeout                              timeout <sec> - The maximal
                                            length (in sec) of time the parser waits for data on a connection. Default
                                            is 80.
-it,--idletime                            idletime <sec> - The maximal
                                            length of time (in sec) the parser holds idle database connections.
                                            Default is forever.
-maxp,--maxpool                            maxpool <size> - The maximum
                                            amount of connections the pool aquires during a peak. Default is 2.
-t,--time                                  time <sec> - The minimal
                                            length (in sec) of the pause between two parser runs. Default is 300.
-minp,--minpool                            minpool <size> - The minimum
                                            amount of connections the pool holds for eternity. Default is 1.
-dbname                                    dbname <name> - The name of
                                            the database.
-host                                      host <ip> - The networkadress
                                            of the database host. Either an ip or a name within the network.
-keystorepassphrase                        keystore-passphrase <password>
                                            - The password for the local keystore
-dbpwd                                    dbpwd <password> - The
                                            password of the user for the database.
-port                                      port <number> - The port where
                                            to reach the database on the host.
-disableMemorySafePOP3Parsing              Optional - To safe memory
                                            while parsing POP3Folders the parser reconnects after each parsed mail.
                                            Use this option to disable this behavior.
-notifyFatalErrors                        Optional - if this option is
                                            activated, FATAL Errors are send to NETZkultur.
-vv,--very verbose                        The output 'noise': 'very
                                            verbose' - only fine infos, info, warnings and errors are printed
-solrServerURL                            solrServerURL <url> - Optional
                                            - the URL of the Solr Server
-c,--console                              Use this option to write the
                                            log outputs to the console.
-h,--help                                  Prints this help.
-v,--verbose                              The output 'noise': 'verbose'


-archivall                          archivall - If this flag is set, all
                                      mails that are not in the archivfilter are automatically archivied.
-noarchiv                            noarchiv - If this flag is set, the
                                      mails are not automatically archivied.
-delay                              delay <millisec> - The delay (in
                                      millisec) between parsing of two messages.Default is 2.
-dblogin                            dblogin <login> - The login name
                                      (user) for the database.
-to,--timeout                        timeout <sec> - The maximal length
                                      (in sec) of time the parser waits for data on a connection. Default is 80.
-itec,--idletime_excessconnection    idletime_excessconnection <sec> -
                                      The maximal length of time (in sec) the parser holds idle connections
                                      aquired above the minimum pool size (maybe google for "c3p0
                                      documentation"). Default is 20.
-it,--idletime                      idletime <sec> - The maximal length
                                      of time (in sec) the parser holds idle database connections. Default is
                                      forever.
-maxp,--maxpool                      maxpool <size> - The maximum amount
                                      of connections the pool aquires during a peak. Default is 8.
-t,--time                            time <sec> - The minimal length (in
                                      sec) of the pause between two parser runs. Default is 300.
-minp,--minpool                      minpool <size> - The minimum amount
                                      of connections the pool holds for eternity. Default is 1.
-dbname                              dbname <name> - The name of the
                                      database.
-host                                host <ip> - The networkadress of the
                                      database host. Either an ip or a name within the network.
-dbpwd                              dbpwd <password> - The password of
                                      the user for the database.
-port                                port <number> - The port where to
                                      reach the database on the host.
-v,--verbose                        The output 'noise': 'verbose' - only
                                      warnings and errors are printed. If not set everything is printed.
-c,--console                        Use this option to write the log
                                      outputs to the console.
-h,--help                            Prints this help.
-onlyinbox                          Use this option only to search for
                                      mails in the inbox folder and not in subfolders.




Dies ist ein Beispiel aus der aktuellsten Version 3.2.7
Dies ist ein Beispiel aus der Version 3.3.5




== Verwandte Themen ==
== Verwandte Themen ==
* [[Mails mit langem Subject]]
* [[Mails mit langem Subject]]

Version vom 9. Juni 2010, 08:14 Uhr

Der Mailparser ist das Java-Programm daß für den Abruf der Postfächer bei den Mailservern zuständig ist.
Der Mailparser verbindet sich dabei zur Datenbank, fragt die notwendigen Werte der einzelnen Postfächer ab und ruft dann die entsprechenden eMails ab.
Dabei überprüft der Mailparser zuerst anhand der Message-ID ob die eMail bereits in der Datenbank vorhanden ist. Sollte das der Fall sein wird die eMail nicht erneut abgerufen und es werden nur noch die entsprechenden Rechte vergeben.
Als nächstes prüft der Mailparser unter Berücksichtigung der IDO-DS Einstellungen der Webmailverwaltung ob die Absenderadresse der aktuellen eMail in einem Datensatz vorhanden ist.
In dem Fall wird direkt eine entsprechende Verknüpfung zu dem Datensatz gemacht.
Wenn eine Datensatzverknüpfung möglich ist, dann setzt der Mailparser auch automatisch das Archivrecht für diese eMail.

Der Mailparser wird bei Onlineinstallationen auf unseren Servern auch von uns gehostet, eingestellt und überwacht.
Nur bei Lokalinstallationen müssen sie diesen selber aktivieren und einstellen.

Der Mailparser wird unter Windows mit einer Batch-Datei und unter Linux mit einer Shell-Datei gestartet. Im folgende sehen sie am Beispiel einer Shell-Datei welche Einstellungen sie machen müssen und welche optional möglich sind.


> java -Xmx500M -jar JavaMailParser.jar -host <datenbank-server> -dbname <datenbank-name> -dblogin <datenbank-user> -dbpwd > <datenbank-passwort> -t 560


In diesen Startaufruf lassen sich nun noch verschiedene Parameter zum Verhalten des Mailparser setzen. Wenn sie über die Konsole den Befehl

> java -jar JavaMailParser.jar -h eingeben


erhalten sie eine Hilfeübersicht zu den Parametern.


-noarchiv                                  noarchiv - If this flag is
                                           set, the mails are not automatically archivied.
-imaxa,--idletime_maxage                   idletime_maxage <min> - Sets
                                           Idle max age (in min). The time (in minutes), for a connection to remain
                                           unused before it is closed off. Default: 1 minutes
-ictp,--idletime_connection_test_period
                                           idletime_connection_test_period <min> - Sets the idleConnectionTestPeriod.
                                           This sets the time (in minutes), for a connection to remain idle before
                                           sending a test query to the DB. This is useful to prevent a DB from timing
                                           out connections on its end. Default: 30 minutes
-delay                                     delay <millisec> - The delay
                                           (in millisec) between parsing of two messages. Default is 2.
-dblogin                                   dblogin <login> - The login
                                           name (user) for the database.
-to,--timeout                              timeout <sec> - The maximal
                                           length (in sec) of time the parser waits for data on a connection. Default
                                           is 80.
-it,--idletime                             idletime <sec> - The maximal
                                           length of time (in sec) the parser holds idle database connections.
                                           Default is forever.
-maxp,--maxpool                            maxpool <size> - The maximum
                                           amount of connections the pool aquires during a peak. Default is 2.
-t,--time                                  time <sec> - The minimal
                                           length (in sec) of the pause between two parser runs. Default is 300.
-minp,--minpool                            minpool <size> - The minimum
                                           amount of connections the pool holds for eternity. Default is 1.
-dbname                                    dbname <name> - The name of
                                           the database.
-host                                      host <ip> - The networkadress
                                           of the database host. Either an ip or a name within the network.
-keystorepassphrase                        keystore-passphrase <password>
                                           - The password for the local keystore
-dbpwd                                     dbpwd <password> - The
                                           password of the user for the database.
-port                                      port <number> - The port where
                                           to reach the database on the host.
-disableMemorySafePOP3Parsing              Optional - To safe memory
                                           while parsing POP3Folders the parser reconnects after each parsed mail.
                                           Use this option to disable this behavior.
-notifyFatalErrors                         Optional - if this option is
                                           activated, FATAL Errors are send to NETZkultur.
-vv,--very verbose                         The output 'noise': 'very
                                           verbose' - only fine infos, info, warnings and errors are printed
-solrServerURL                             solrServerURL <url> - Optional
                                           - the URL of the Solr Server
-c,--console                               Use this option to write the
                                           log outputs to the console.
-h,--help                                  Prints this help.
-v,--verbose                               The output 'noise': 'verbose'


Dies ist ein Beispiel aus der Version 3.3.5


Verwandte Themen