mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 08:06:59 +00:00
Launcher, app/base, sentry, update service
This commit is contained in:
@ -58,6 +58,8 @@ func IMAPActionsMessagesFeatureContext(s *godog.Suite) {
|
||||
s.Step(`^IMAP client "([^"]*)" starts IDLE-ing$`, imapClientNamedStartsIDLEing)
|
||||
s.Step(`^IMAP client sends expunge$`, imapClientExpunge)
|
||||
s.Step(`^IMAP client "([^"]*)" sends expunge$`, imapClientNamedExpunge)
|
||||
s.Step(`^IMAP client sends ID with argument:$`, imapClientSendsID)
|
||||
s.Step(`^IMAP client "([^"]*)" sends ID with argument:$`, imapClientNamedSendsID)
|
||||
}
|
||||
|
||||
func imapClientSendsCommand(command string) error {
|
||||
@ -284,3 +286,13 @@ func imapClientNamedExpunge(imapClient string) error {
|
||||
ctx.SetIMAPLastResponse(imapClient, res)
|
||||
return nil
|
||||
}
|
||||
|
||||
func imapClientSendsID(data *gherkin.DocString) error {
|
||||
return imapClientNamedSendsID("imap", data)
|
||||
}
|
||||
|
||||
func imapClientNamedSendsID(imapClient string, data *gherkin.DocString) error {
|
||||
res := ctx.GetIMAPClient(imapClient).ID(data.Content)
|
||||
ctx.SetIMAPLastResponse(imapClient, res)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user