aboutsummaryrefslogtreecommitdiffstats
path: root/imapsync
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-09-06 20:51:37 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-09-06 20:51:37 +0200
commit3f1aca1a80e41bb6e8d7ff30bc45f920f3a82590 (patch)
tree84c99d244c9913c56dbcfb2219067ba45d413bf1 /imapsync
parentf5b7ec21e9d53ac7d93797a83c3c100dfa4de076 (diff)
Message Sequence Match Data: sequence set come before UIDs.
Cf. RFC 7162: seq-match-data = "(" known-sequence-set SP known-uid-set ")"
Diffstat (limited to 'imapsync')
-rwxr-xr-ximapsync8
1 files changed, 4 insertions, 4 deletions
diff --git a/imapsync b/imapsync
index ac63577..927d205 100755
--- a/imapsync
+++ b/imapsync
@@ -619,10 +619,10 @@ sub delete_mapping($$) {
}
-# Create a sample (UIDs, sequence numbers) to use as 3rd and 4th
-# argument of the QRESYNC parameters to the SELECT command.
+# Create a sample (sequence numbers, UIDs) to use as Message Sequence
+# Match Data for the QRESYNC parameter to the SELECT command.
# QRESYNC [RFC7162] doesn't force the server to remember the MODSEQs of
-# EXPUNGEd messages. By passing a sample of known UIDs/sequence numbers
+# EXPUNGEd messages. By passing a sample of known sequence numbers/UIDs
# we let the server know that the messages have been EXPUNGEd [RFC7162,
# section 3.2.5.2].
# The UID set is the largest set of higest UIDs with at most 1024 UIDs,
@@ -660,7 +660,7 @@ sub sample($$$) {
$uids = ($min == $max ? $min : "$min:$max")
.(defined $uids ? ','.$uids : '');
}
- return ( $uids, ($count - $n + 1).':'.$count );
+ return ( ($count - $n + 1).':'.$count, $uids );
}