Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 1.5 #7

Closed
agabellini opened this issue Jul 5, 2021 · 0 comments · Fixed by #8
Closed

Update for 1.5 #7

agabellini opened this issue Jul 5, 2021 · 0 comments · Fixed by #8

Comments

@agabellini
Copy link

Hello,

this plugin does not work anymore with version 1.5 of Roundcube, see roundcube/roundcubemail#7860

This is a little patch. I don't know how to check the version of roundcube, otherwise you could use an 'if' to handle different versions.

--- dovecot_ident.php.orig	2021-07-05 10:31:19.104942320 +0200
+++ dovecot_ident.php	2021-07-05 10:20:20.425873102 +0200
@@ -17,7 +17,7 @@

   function add_ident($args)
   {
-    $args['ident'] = $args['ident'] ? array_merge($args['ident'], array('x-originating-ip' => $_SERVER['REMOTE_ADDR']))
+    $args['preauth_ident'] = $args['preauth_ident'] ? array_merge($args['preauth_ident'], array('x-originating-ip' => $_SERVER['REMOTE_ADDR']))
 									: array('x-originating-ip' => $_SERVER['REMOTE_ADDR']);
     return $args;
   }
tomsommer added a commit to tomsommer/dovecot_ident that referenced this issue Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant