[dovecot/core] b10f97: mail-lua: Implement mail_lua_plugin_get_script

GitHub noreply at github.com
Thu Oct 4 09:00:06 EEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: b10f9786e2419246bff3524aa08ed1d6cf8730a0
      https://github.com/dovecot/core/commit/b10f9786e2419246bff3524aa08ed1d6cf8730a0
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/mail-lua/mail-lua-plugin.c

  Log Message:
  -----------
  mail-lua: Implement mail_lua_plugin_get_script

It was forgotten in 950c7e06dbf7f1cd696653af95b8c0053a9e86da


  Commit: b9c47a3097298f1e89cc1fc8918ce7da6ad8f3c5
      https://github.com/dovecot/core/commit/b9c47a3097298f1e89cc1fc8918ce7da6ad8f3c5
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Use Lua references for context


  Commit: da69bb871116c398a44ff372a189f5f011bf771d
      https://github.com/dovecot/core/commit/da69bb871116c398a44ff372a189f5f011bf771d
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/mail-lua/mail-lua-plugin.c

  Log Message:
  -----------
  mail-lua: Deinit script after others

Some other plugin might need Lua for deinit


  Commit: 6ed76dc5fbe00473618153f6feca320ebc015635
      https://github.com/dovecot/core/commit/6ed76dc5fbe00473618153f6feca320ebc015635
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Fix symbol names


  Commit: 7c72577eb981f90094175817d4d1e7d6294d421e
      https://github.com/dovecot/core/commit/7c72577eb981f90094175817d4d1e7d6294d421e
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Reference mail user only if initialization is successful

Will cause assert-crash otherwise if initialization fails


  Commit: cc7843bcdee46e6f8f4e4402a833f34be3c3206b
      https://github.com/dovecot/core/commit/cc7843bcdee46e6f8f4e4402a833f34be3c3206b
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/mail-lua/mail-lua-plugin.c

  Log Message:
  -----------
  mail-lua: Add deinit_pre function


  Commit: 36c7f553b2969648e83b53a8b50ce8ca9fddfacb
      https://github.com/dovecot/core/commit/36c7f553b2969648e83b53a8b50ce8ca9fddfacb
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Move event push earlier

Simplifies code


  Commit: 9fe6fdaba6808686dca40dbc972ca1de61fcffd9
      https://github.com/dovecot/core/commit/9fe6fdaba6808686dca40dbc972ca1de61fcffd9
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Do not push user again

User is already pushed in tx begin, and can be stored there into the context.


  Commit: 015480e76131b269ed821d4643b98ac63a30de0a
      https://github.com/dovecot/core/commit/015480e76131b269ed821d4643b98ac63a30de0a
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: tx begin pushed mail user not username


  Commit: 3d0ea5241fb5fbbea5f328bfee875e86bdaabb91
      https://github.com/dovecot/core/commit/3d0ea5241fb5fbbea5f328bfee875e86bdaabb91
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/mail-lua/mail-storage-lua.c

  Log Message:
  -----------
  mail-lua: Fix gc code to push key first then value

Otherwise it uses nil as key, which makes no sense and leads to eventual crash.


  Commit: 81c14eb3c9db49d31050e8da7afdaa175d407a15
      https://github.com/dovecot/core/commit/81c14eb3c9db49d31050e8da7afdaa175d407a15
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Properly register all events


  Commit: f7ea49f363e2ea31eda0a3b6d9e8f3d7e00d74e7
      https://github.com/dovecot/core/commit/f7ea49f363e2ea31eda0a3b6d9e8f3d7e00d74e7
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Always use DLUA_LOG_LABEL


  Commit: 189ba69d5fbde29419d820baef1be39f93858011
      https://github.com/dovecot/core/commit/189ba69d5fbde29419d820baef1be39f93858011
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-txn-msg.c

  Log Message:
  -----------
  push-notification: Make sure txn messages are unique

save_count is not reliable as it's not incremented for events like
flag changes.


  Commit: a2d62437f45fec72f2475631b590187f22a00207
      https://github.com/dovecot/core/commit/a2d62437f45fec72f2475631b590187f22a00207
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-event-messageappend.c
    M src/plugins/push-notification/push-notification-event-messageappend.h

  Log Message:
  -----------
  push-notification-event-messageappend: Include date information parsed from headers

Consistency with MessageNew


  Commit: a6d0b683c587fd43b5b5094e93903eb5463c849a
      https://github.com/dovecot/core/commit/a6d0b683c587fd43b5b5094e93903eb5463c849a
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-driver-lua.c

  Log Message:
  -----------
  push-notification-driver-lua: Include date from MessageAppend


  Commit: 31485c6a6113bc88e38029ab98201e3515504ed8
      https://github.com/dovecot/core/commit/31485c6a6113bc88e38029ab98201e3515504ed8
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
    M src/plugins/push-notification/push-notification-txn-msg.c
    M src/plugins/push-notification/push-notification-txn-msg.h

  Log Message:
  -----------
  push-notification: Resolve confusion about msg->seq

It's not the same seq what the mail has, but a sequence that
is used to find out UID for saved mails. So rename it to
save_idx and treat it accordingly. Note that save_idx is 0
based, and mail sequence is 1 based.


Compare: https://github.com/dovecot/core/compare/e16ba6f168a5...31485c6a6113
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list