Download the PHP package netandreus/imap-sync without Composer

On this page you can find all versions of the php package netandreus/imap-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package imap-sync

IMAP Sync

This application synchronises IMAP accounts to a local MySQL database. You can use this as a standalone method to periodically download your email. The script is meant to run forever with almost zero maintenance :D

Web Client Admin Interface

Sync Web Screenshot

Command Line Interface

Sync Screenshot


Contents

Dependencies

At a glance, this application requires the following:

It's recommented to install ext-mysqlnd as well. php7.0-common should already be installed on your system.

Versions 7.1 and 7.2 are confirmed working, and this codebase is actively developed in version 7.2. See below for info about PHP 5.6.

1. Support for PHP 5.6

Version 1.0.0 of this application supports PHP 5.6, with compatibility for all of the composer dependencies at that snapshot.

If you'd like to use that, run the following command:

All current and future updates will only support PHP 7.0 and higher!

Installation

1. Create Database

To get started, make sure you have MariaDB or MySQL running and issue the following command:

MariaDB [(none)]> CREATE DATABASE `libremail`;

The database name is a configuration option, so if you'd like to change this to be something other than libremail, make sure you update the config setting.

1.1 max_allowed_packet (MariaDB/MySQL)

Because of the amount of data that may be written to SQL (long email message text) a configuration setting needs to be enabled for MySQL databases allowing a larger packet size to be sent in a query. To do this, add the following line to your SQL config file:

[mysqld]
max_allowed_packet = 512M

You don't have to use 512MB as your packet size, but anything 16MB or higher is advised.

2. Configure the Application

Configuration options are saved in config/default.ini. Do not modify this file or anything in it. All of your changes should go into config/local.ini and should be in the INI file format, just like the default file. If you would like to make changes to config/local.ini but not ever commit them, run the following:

$> git update-index --assume-unchanged config/local.ini

View all possible configuration options: Configuration Options

3. Install Composer Dependencies

Download the vendor packages via Composer:

$> composer install

This will create a vendor directory with all of the project's PHP dependencies.

4. Running the Diagnostic Tests

You can run a test to see if the application is installed correctly, and that all dependencies and pre-requisites are met. To do that, run:

$> ./sync --diagnostics

You can also use -d as a short flag. This will go through and check the database connection, that all paths are writeable, and some other tests and see if the sync script will run correctly. These tests are run in the background before any sync happens, but you can access them this way for more detailed information in the case that something is failing.

5. Running SQL Migration Scripts

Before you can start syncing, run the SQL database scripts:

$> ./sync --updatedb

You can also use -u as a short flag. This will create all the SQL tables and run any other database operations.

Run the Sync

If you'd like, you can run ./sync --help to see a list of what options you have. View all possible configuration options and their details: Configuration Options

To use the CLI tool (debug mode), run:

$> ./sync

and follow the onscreen instructions.

To use the Web tool, run:

$> ./libremail

This tool will run silently and write to /logs. Open your browser and go to localhost:9898 to view the Web client.

Using an Init Script or Supervisor

If you'd like to run this sync script in the background all the time, then it is recommended to use some sort of supervisor or watchdog program to monitor if the script fails for any reason. Here are some guides for Linux and MacOS:

Submitting Bugs

All bugs and requests are tracked in the Github Issues for this repository. See the Issues Page for a listing of the open and closed tickets. Please search the closed issues before reporting anything to see if it has been resolved :)

This is an open source project that is worked on in spare time, so there is no guarantee that anything that you report will be looked at or fixed! However I will make a personal effort to resolve everything in a timely manner, and odds are good that I'll check it out quickly as I'm personally using this project to manage my own email.


All versions of imap-sync with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-pdo Version *
ext-iconv Version *
ext-mbstring Version *
netandreus/imap Version ^2.0
particlebits/pdo Version @dev
netandreus/zend_mail Version @dev
zendframework/zend-crypt Version ~2.5
zendframework/zend-loader Version ~2.5
zendframework/zend-mime Version ~2.5
zendframework/zend-validator Version ~2.5
particlebits/zend-mime Version @dev
pimple/pimple Version ^3.2.3
monolog/monolog Version ^1.24
league/climate Version ^3.5
particle/validator Version ^2.3
ilya/belt Version ^2.1
neitanod/forceutf8 Version ^2.0
react/event-loop Version @dev
cboden/ratchet Version ^0.4.1
evenement/evenement Version ^3.0
symfony/event-dispatcher Version ^5.0.0
react/child-process Version ^0.5.2
mkraemer/react-pcntl Version ^3.0
zendframework/zend-servicemanager Version ^3.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package netandreus/imap-sync contains the following files

Loading the files please wait ....