Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
2c7b0ea0
Commit
2c7b0ea0
authored
Mar 16, 2018
by
deuce
Browse files
Ensure we can open the message base before including it in a LIST/LSUB
response.
parent
b2d27d57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
exec/imapservice.js
exec/imapservice.js
+7
-1
No files found.
exec/imapservice.js
View file @
2c7b0ea0
...
@@ -1088,6 +1088,7 @@ function sublist(group, match, subscribed)
...
@@ -1088,6 +1088,7 @@ function sublist(group, match, subscribed)
var
fmatch
;
var
fmatch
;
var
re
;
var
re
;
var
has_sep
=
false
;
var
has_sep
=
false
;
var
base
;
if
(
match
==
''
)
if
(
match
==
''
)
return
([
""
]);
return
([
""
]);
...
@@ -1117,8 +1118,13 @@ function sublist(group, match, subscribed)
...
@@ -1117,8 +1118,13 @@ function sublist(group, match, subscribed)
for
(
sub
in
msg_area
.
grp_list
[
grp
].
sub_list
)
{
for
(
sub
in
msg_area
.
grp_list
[
grp
].
sub_list
)
{
if
(
re
.
test
(
msg_area
.
grp_list
[
grp
].
description
+
sepchar
+
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
description
))
{
if
(
re
.
test
(
msg_area
.
grp_list
[
grp
].
description
+
sepchar
+
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
description
))
{
if
((
!
subscribed
)
||
(
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
scan_cfg
&
SCAN_CFG_NEW
&&
(
!
(
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
scan_cfg
&
SCAN_CFG_YONLY
))))
if
((
!
subscribed
)
||
(
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
scan_cfg
&
SCAN_CFG_NEW
&&
(
!
(
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
scan_cfg
&
SCAN_CFG_YONLY
))))
{
base
=
new
MsgBase
(
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
code
);
if
(
base
==
undefined
||
sub
==
"
NONE!!!
"
||
(
!
base
.
open
()))
continue
;
base
.
close
();
ret
.
push
((
msg_area
.
grp_list
[
grp
].
description
+
sepchar
+
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
description
).
replace
(
/&/g
,
'
&-
'
));
ret
.
push
((
msg_area
.
grp_list
[
grp
].
description
+
sepchar
+
msg_area
.
grp_list
[
grp
].
sub_list
[
sub
].
description
).
replace
(
/&/g
,
'
&-
'
));
}
}
}
}
}
}
}
...
...
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