/* * Copyright (c) 2026 Kaiy Ragur * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package remote import ( "fmt" pb "github.com/neilalexander/yggmail/internal/remote/types" "github.com/neilalexander/yggmail/internal/storage/types" ) func (s *RemoteStorage) QueueInsertDestinationForID(pk string, dest string, id int, from, rcpt string) error { _, _, err := s.Call(&pb.Request{ Call: &pb.Request_QueueInsert{ QueueInsert: &pb.QueueInsertRequest{Destination: dest, Id: uint32(id), From: from, Rcpt: rcpt}, }, }, nil, 0) if err != nil { return err } return nil } func (s *RemoteStorage) QueueListDestinations() ([]string, error) { return nil, nil } func (s *RemoteStorage) QueueMailIDsForDestination(dest string) ([]types.QueuedMail, error) { return nil, nil } func (s *RemoteStorage) QueueDeleteDestinationForID(pk, dest string, id int) error { return nil } func (s *RemoteStorage) QueueSelectIsMessagePendingSend(pk, mailbox string, id int) (bool, error) { _, mail, err := s.MailSelect(pk, mailbox, id) if err != nil { return false, fmt.Errorf("storage.MailSelect: %w", err) } if mail != nil { return true, nil } return false, nil }