forked from Silverfish/proton-bridge
GODT-1405: Integration test fix: Prevent unilateral update in FETCH when copying message by append.
This commit is contained in:
@ -186,6 +186,10 @@ func imapClientsMoveMessageSeqOfUserFromToByOrederedOperations(sourceIMAPClient,
|
|||||||
if account == nil {
|
if account == nil {
|
||||||
return godog.ErrPending
|
return godog.ErrPending
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// call NOOP to prevent unilateral updates in following FETCH
|
||||||
|
ctx.GetIMAPClient(sourceIMAPClient).Noop().AssertOK()
|
||||||
|
|
||||||
msgStr, err := extractMessageBodyFromImapResponse(ctx.GetIMAPClient(sourceIMAPClient).Fetch(messageSeq, "BODY.PEEK[]").AssertOK())
|
msgStr, err := extractMessageBodyFromImapResponse(ctx.GetIMAPClient(sourceIMAPClient).Fetch(messageSeq, "BODY.PEEK[]").AssertOK())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@ -253,6 +253,10 @@ func (c *IMAPClient) ExpungeUID(ids string) *IMAPResponse {
|
|||||||
return c.SendCommand(fmt.Sprintf("UID EXPUNGE %s", ids))
|
return c.SendCommand(fmt.Sprintf("UID EXPUNGE %s", ids))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *IMAPClient) Noop() *IMAPResponse {
|
||||||
|
return c.SendCommand("NOOP")
|
||||||
|
}
|
||||||
|
|
||||||
// Extennsions
|
// Extennsions
|
||||||
// Extennsions: IDLE
|
// Extennsions: IDLE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user