# Bug OP-10732 - imap ssl settings are evaluated as booleans when they are strings

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-10732

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.2.0 |
| Observed in versions | 12.1.0 |
| Sprint | 12.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

$ git diff lib/redmine/imap.rb  
diff --git a/lib/redmine/imap.rb b/lib/redmine/imap.rb  
index 26596648ff..2eeec1d1b5 100644  
\--- a/lib/redmine/imap.rb  
\+++ b/lib/redmine/imap.rb  
@@ -57,9 +57,9 @@ module Redmine  
      end

      def ssl\_option(imap\_options)  
\-        return false if imap\_options\[:ssl\] == false \# don't use SSL  
\+        return false if imap\_options\[:ssl\] == 'false' \# don't use SSL

\-        if imap\_options\[:ssl\_verification\] == false  
\+        if imap\_options\[:ssl\_verification\] == 'false'  
          { verify\_mode: OpenSSL::SSL::VERIFY\_NONE } \# use SSL without verification  
        else  
          true \# use SSL with verification

openproject@openproject-test-el8 ~/source  
$ ruby --version  
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) \[x86\_64-linux\]

openproject@openproject-test-el8 ~/source  
$ git log -1  
commit a0fe11cd3ce1c41f872112fa14a004bc1c14c0be (tag: v12.1.4, pdinc/stable/12, stable/12)  
Merge: bfeef2933b 17d92272ed  
Author: Oliver Günther \<<mail@oliverguenther.de>\>  
Date:   Tue May 17 13:45:35 2022 +0200

   Release OpenProject 12.1.4
