Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
aecde406
Commit
aecde406
authored
7 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Pass the index to operate on to apply_seen.
Fixes issues with STATUS command.
parent
fd7853fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/imapservice.js
+7
-6
7 additions, 6 deletions
exec/imapservice.js
with
7 additions
and
6 deletions
exec/imapservice.js
+
7
−
6
View file @
aecde406
...
@@ -296,7 +296,7 @@ function send_fetch_response(msgnum, fmat, uid)
...
@@ -296,7 +296,7 @@ function send_fetch_response(msgnum, fmat, uid)
seen_changed
=
true
;
seen_changed
=
true
;
saved_config
[
index
.
code
].
Seen
[
msgnum
]
=
1
;
saved_config
[
index
.
code
].
Seen
[
msgnum
]
=
1
;
save_cfg
(
false
);
save_cfg
(
false
);
apply_seen
();
apply_seen
(
index
);
unlock_cfg
();
unlock_cfg
();
idx
.
attr
|=
MSG_READ
;
idx
.
attr
|=
MSG_READ
;
}
}
...
@@ -1269,7 +1269,7 @@ function read_index(base)
...
@@ -1269,7 +1269,7 @@ function read_index(base)
return
(
index
);
return
(
index
);
}
}
function
apply_seen
()
function
apply_seen
(
index
)
{
{
var
i
;
var
i
;
...
@@ -1543,7 +1543,8 @@ var authenticated_command_handlers = {
...
@@ -1543,7 +1543,8 @@ var authenticated_command_handlers = {
if
(
saved_config
[
base_code
]
!=
undefined
)
if
(
saved_config
[
base_code
]
!=
undefined
)
old_saved
=
saved_config
[
base_code
];
old_saved
=
saved_config
[
base_code
];
read_cfg
(
base_code
,
true
);
read_cfg
(
base_code
,
true
);
apply_seen
();
index
=
read_index
(
base_code
);
apply_seen
(
index
);
delete
saved_config
[
base_code
];
delete
saved_config
[
base_code
];
if
(
old_saved
!=
undefined
)
if
(
old_saved
!=
undefined
)
saved_config
[
base_code
]
=
old_saved
;
saved_config
[
base_code
]
=
old_saved
;
...
@@ -1649,7 +1650,7 @@ function do_store(seq, uid, item, data)
...
@@ -1649,7 +1650,7 @@ function do_store(seq, uid, item, data)
}
}
saved_config
[
base
.
cfg
.
code
].
Seen
[
seq
[
i
]]
^=
1
;
saved_config
[
base
.
cfg
.
code
].
Seen
[
seq
[
i
]]
^=
1
;
save_cfg
(
false
);
save_cfg
(
false
);
apply_seen
();
apply_seen
(
index
);
unlock_cfg
();
unlock_cfg
();
}
}
if
(
!
silent
)
if
(
!
silent
)
...
@@ -2012,7 +2013,7 @@ var selected_command_handlers = {
...
@@ -2012,7 +2013,7 @@ var selected_command_handlers = {
var
i
;
var
i
;
read_cfg
(
get_base_code
(
base
),
true
);
read_cfg
(
get_base_code
(
base
),
true
);
apply_seen
();
apply_seen
(
index
);
for
(
i
in
seq
)
{
for
(
i
in
seq
)
{
send_fetch_response
(
seq
[
i
],
data_items
,
false
);
send_fetch_response
(
seq
[
i
],
data_items
,
false
);
}
}
...
@@ -2063,7 +2064,7 @@ var selected_command_handlers = {
...
@@ -2063,7 +2064,7 @@ var selected_command_handlers = {
seq
=
parse_seq_set
(
args
[
2
],
true
);
seq
=
parse_seq_set
(
args
[
2
],
true
);
data_items
=
parse_data_items
(
args
[
3
]);
data_items
=
parse_data_items
(
args
[
3
]);
read_cfg
(
get_base_code
(
base
),
true
);
read_cfg
(
get_base_code
(
base
),
true
);
apply_seen
();
apply_seen
(
index
);
for
(
i
in
seq
)
{
for
(
i
in
seq
)
{
send_fetch_response
(
seq
[
i
],
data_items
,
true
);
send_fetch_response
(
seq
[
i
],
data_items
,
true
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Deucе
@Deuce
mentioned in commit
a28da743
·
5 months ago
mentioned in commit
a28da743
mentioned in commit a28da743101258c0c1c2fbd58582f2728db08f4b
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment