forked from Silverfish/proton-bridge
feat(BRIDGE-383): Internal mailbox conflict resolution extended; Minor alterations to mailbox conflict pre-checker
This commit is contained in:
@ -40,7 +40,10 @@ type IMAPServerManager interface {
|
||||
|
||||
GetUserMailboxByName(ctx context.Context, addrID string, mailboxName []string) (imap.MailboxData, error)
|
||||
|
||||
GetUserMailboxCountByInternalID(ctx context.Context, addrID string, internalID imap.InternalMailboxID) (int, error)
|
||||
|
||||
GetOpenIMAPSessionCount() int
|
||||
|
||||
GetRollingIMAPConnectionCount() int
|
||||
}
|
||||
|
||||
@ -77,6 +80,10 @@ func (n NullIMAPServerManager) GetUserMailboxByName(_ context.Context, _ string,
|
||||
return imap.MailboxData{}, nil
|
||||
}
|
||||
|
||||
func (n NullIMAPServerManager) GetUserMailboxCountByInternalID(_ context.Context, _ string, _ imap.InternalMailboxID) (int, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (n NullIMAPServerManager) GetOpenIMAPSessionCount() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user