Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e7eb15bd
Commit
e7eb15bd
authored
Jul 07, 2020
by
John Long
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove new lines and dig
parent
8a302597
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/system_check/incoming_email/imap_authentication_check.rb
lib/system_check/incoming_email/imap_authentication_check.rb
+2
-3
No files found.
lib/system_check/incoming_email/imap_authentication_check.rb
View file @
e7eb15bd
...
...
@@ -29,11 +29,10 @@ module SystemCheck
def
try_connect_imap
config
.
each
do
|
mailbox
|
$stdout
.
puts
"
\n
Checking
#{
mailbox
[
:email
]
}
\n
"
$stdout
.
puts
"
Checking
#{
mailbox
[
:email
]
}
"
imap
=
Net
::
IMAP
.
new
(
mailbox
[
:host
],
port:
mailbox
[
:port
],
ssl:
mailbox
[
:ssl
])
imap
.
starttls
if
mailbox
[
:start_tls
]
imap
.
login
(
mailbox
[
:email
],
mailbox
[
:password
])
$stdout
.
puts
"Connected to
#{
mailbox
[
:email
]
}
\n
"
end
true
rescue
=>
error
...
...
@@ -55,7 +54,7 @@ module SystemCheck
erb
.
filename
=
mail_room_config_path
config_file
=
YAML
.
load
(
erb
.
result
)
config_file
.
dig
(
:mailboxes
)
config_file
[
:mailboxes
]
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment