Commit Graph

11 Commits

Author SHA1 Message Date
Lefteris Chatzimparmpas
594339056b Fix SSL CTX bug and add support for TLS1.1/1.2
SSL CTXs should be created after the SSL library initialization, and be
kept until program termination.

Also, TLS version 1.1 and 1.2 are now supported for secure connections.
2013-05-20 23:55:16 +02:00
Lefteris Chatzimparmpas
cf33e1bb61 Correct the option order in the usage details. 2012-02-19 13:40:31 +01:00
Lefteris Chatzimparmpas
e907fe5fdf Make OpenSSL a mandatory requirement
There is no point in having SSL/TLS IMAP support as optional, it's as
useful if not more than the the non-encrypted connections.

The Makefile was better organized to make it easier to change some
options during compile.

The SHAREDIR variable passed as configuration option has changed name.
2012-02-19 12:36:44 +01:00
Lefteris Chatzimparmpas
c7f507e76f Close connection when an account is deleted
Added a __gc metamethod to take care of the finalization of active
connections by logging out, when an account is deleted, or at the end of
the configuration (for Lua 5.2).
2012-02-15 19:45:40 +01:00
Lefteris Chatzimparmpas
2cafede975 Use session pointer to denote accounts
Instead of the account details, a pointer to the C structure is used in
Lua, stored as light userdata.

The 1.x deprecated configuration format has been removed, partly due to
the above change, and partly because it has been included for long
enough now.
2012-02-14 22:13:15 +01:00
Lefteris Chatzimparmpas
df1e0c172b Refactor the code that handles the client requests
The functions that send the client requests to the server have been
simplified, as a layer of abstraction has been removed.
2012-02-12 22:00:18 +01:00
Lefteris Chatzimparmpas
ca818203f0 Add support for non-ASCII mailbox names
International mailbox names are specified with the IMAP4rev1 modified
UTF-7 encoding, and the conversion is done automatically.
2011-12-06 16:49:36 +01:00
Lefteris Chatzimparmpas
a47605cb61 Add variable to set configuration directory
The IMAPFILTER_HOME is checked in order to set a different than the
default $HOME/.imapfilter configuration directory.
2011-10-30 13:31:04 +01:00
Lefteris Chatzimparmpas
5c1f83f7c0 Change debug option to take filename as argument
Don't create a debug file in ~/.imapfilter, but instead create the
specified file.
2011-08-06 14:53:47 +02:00
Lefteris Chatzimparmpas
554b6739c4 Change the order of the command line options. 2011-04-04 23:39:25 +02:00
Lefteris Chatzimparmpas
4fe1a3d649 Change file and directory structure
Move the source code to the src dir, the man pages to the doc dir, and
the example configuration files to the samples dir, and update all
relevant files to reflect the changes.
2011-03-06 13:34:44 +01:00