Commit Graph

91 Commits

Author SHA1 Message Date
Lefteris Chatzimparmpas
64df3b0682 Get NAMESPACE only the first time to login
The NAMESPACE doesn't need to be retrieved after each recovery.
2012-02-15 08:42:23 +01:00
Lefteris Chatzimparmpas
fe5f789f8e Fix disabled STARTTLS functionality. 2012-02-15 08:41:13 +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
05a358133e Fix problem with the recover functionality
The whole function that implements a request needs to be called again,
when there is a failure that leads to re-login, and not just the last
receive or send function that failed.
2012-02-14 21:52:29 +01:00
Lefteris Chatzimparmpas
09b2cc3a25 Hide passwords from logs
After the last code refactoring, the hiding of the passwords from logs
feature was left out accidentally.
2012-02-14 20:30:50 +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
2c70382775 Remove control structures' optional parentheses. 2012-02-11 22:55:03 +01:00
Lefteris Chatzimparmpas
18b012c2a2 Improve robustness and recoverability
Many extensive changes were made to better handle network errors, while
on some cases it is now possible to recover from previously fatal
failures.
2012-02-11 22:47:08 +01:00
Lefteris Chatzimparmpas
dc5b33b60a Port to Lua 5.2. 2012-02-05 13:29:43 +01:00
Lefteris Chatzimparmpas
a6148a4466 Abort when there's a login failure. 2012-02-02 22:21:41 +01:00
Lefteris Chatzimparmpas
3f752cb4cc Prepare release v2.4.2. 2012-01-19 20:24:29 +01:00
Lefteris Chatzimparmpas
ca00acce8a Update copyright year to include 2012. 2012-01-19 01:37:26 +01:00
Lefteris Chatzimparmpas
e03e52dba2 Correct international mailbox names conversions
Some ASCII characters in mailbox names where converted to UTF-7 while
they shouldn't.
2012-01-19 01:26:27 +01:00
Lefteris Chatzimparmpas
8512da1940 Correct passwords example. 2012-01-18 19:38:26 +01:00
Lefteris Chatzimparmpas
0a8f5580ed Prepare release v2.4.1. 2011-12-08 22:32:01 +01:00
Lefteris Chatzimparmpas
19de9b8d8e Document additional arguments of become_daemon(). 2011-12-08 22:30:05 +01:00
Lefteris Chatzimparmpas
e8b5fdd7d6 Fix become_daemon() call to ifsys.daemon()
Make sure that the two optional arguments of ifsys.daemon() are of type
boolean as expected.
2011-12-08 20:37:26 +01:00
Lefteris Chatzimparmpas
94cd8016b4 Correct indentation. 2011-12-08 20:36:45 +01:00
Lefteris Chatzimparmpas
3b885bf834 Prepare release v2.4. 2011-12-06 22:46:49 +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
dae82ff5af Fix matching problems in the regular expressions
Past refactoring of the regular expressions caused some failures in the
matching.
2011-12-05 19:40:57 +01:00
Lefteris Chatzimparmpas
6f8ec8eb25 Fix typo error in function call example. 2011-10-30 15:43:17 +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
ed27fa41ee Remove encode/decode unnecessary option. 2011-10-30 13:28:49 +01:00
Lefteris Chatzimparmpas
6542cade9f Fix debug file opening check. 2011-10-30 13:21:32 +01:00
Lefteris Chatzimparmpas
2599efc94e Match only on the header field body
The match_field() method should match on the header field body and not
the whole header field, thus the field name part is ignored.
2011-08-16 22:51:01 +02:00
Lefteris Chatzimparmpas
c6515ebf7f Correct arguments of append_message(). 2011-08-09 20:44:24 +02:00
Lefteris Chatzimparmpas
7e0cd3614f Prepare release v2.3. 2011-08-06 15:07:36 +02: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
a3021cca36 Add support for appending messages to mailboxes
Add a new function append_message(), update man page and add new example
in the sample configurations.
2011-08-06 14:16:07 +02:00
Lefteris Chatzimparmpas
26cecaed64 Refactor regular expressions syntax. 2011-08-04 21:34:24 +02:00
Lefteris Chatzimparmpas
cf5e003082 Correct CRAM-MD5 authentication timeout problem
After successful login with the CRAM-MD5 mechanism, a timeout happens
while a server response is anticipated.
2011-08-04 08:06:42 +02:00
Lefteris Chatzimparmpas
e51afea6eb Correct daemon function and add new options
Correct forking inside the daemon function, correct the error messages
printed, and add two new options for controlling working directory
change and redirection of the standard file descriptors.
2011-07-31 18:03:29 +02:00
Lefteris Chatzimparmpas
d83be84636 Check for updates in the server capabilities after login. 2011-07-31 17:33:42 +02:00
Lefteris Chatzimparmpas
4bce219df3 Use the Dq and Sq macros everywhere
Use the Dq macro for double quotes, the Sq macro for single quotes, and
the \e escape character for backslash.
2011-04-06 23:03:45 +02:00
Lefteris Chatzimparmpas
d7f2910212 Correct current selected mailbox functionality
Correct the functionality that provides monitoring of the current
selected mailbox in each account, where the wrong variable was written.

Simplify and clarify the code around this functionality.
2011-04-04 23:48:23 +02:00
Lefteris Chatzimparmpas
e888721242 Correct compilation warning
Correct the following compilation warning:

  warning: assignment discards qualifiers from pointer target type
2011-04-04 23:44:12 +02:00
Lefteris Chatzimparmpas
554b6739c4 Change the order of the command line options. 2011-04-04 23:39:25 +02:00
Lefteris Chatzimparmpas
ae4b3e094e Simplify configuration and building
Remove the configuration bash script, simplify the makefile and add new
target, and update the installation instructions.
2011-04-04 23:19:35 +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
Lefteris Chatzimparmpas
5d4ed5ed3f Initial commit. 2011-03-06 12:58:58 +01:00