// Copyright (c) 2025 H0llyW00dzZ All rights reserved. // // By accessing or using this software, you agree to be bound by the terms // of the License Agreement, which you can find at LICENSE files. package client import "fmt" // GetClient retrieves the IMAPClient for a specific user func (m *MultiUserIMAP) GetClient(username string) (*IMAPClient, error) { m.mu.Lock() defer m.mu.Unlock() client, exists := m.clients[username] if !exists { return nil, fmt.Errorf("user not found: %s", username) } return client, nil }