func (mbox *Mailbox) CopyMessages(uid bool, seqset *imap.SeqSet, destName string) error {
	boxID := getIDFromName(destName)
	if boxID == 0 {
		return backend.ErrNoSuchMailbox
	}

	for i, msg := range mbox.Messages {
		var id uint32
		if uid {
			id = msg.UID
		} else {
			id = uint32(i + 1)
		}
		if !seqset.Contains(id) {
			continue
		}

		mbox.user.Client.MoveMessage(mbox.user.Info.Address.Hash(), msg.ID, mbox.id, boxID)
	}

	return nil
}
// CopyMessages will copy a message
CopyMessages will copy a message
// CopyMessages will copy a message
func (mbox *Mailbox) CopyMessages(uid bool, seqset *imap.SeqSet, destName string) error {
	boxID := getIDFromName(destName)
	if boxID == 0 {
		return backend.ErrNoSuchMailbox
	}
	for i, msg := range mbox.Messages {
		var id uint32
		if uid {
			id = msg.UID
		} else {
			id = uint32(i + 1)
		}
		if !seqset.Contains(id) {
			continue
		}
		mbox.user.Client.MoveMessage(mbox.user.Info.Address.Hash(), msg.ID, mbox.id, boxID)
	}
	return nil
}
func ( mbox * Mailbox ) CopyMessages ( uid bool , seqset * imap . SeqSet , destName string ) error { boxID := getIDFromName ( destName ) if boxID == 0 { return backend . ErrNoSuchMailbox } for i , msg := range mbox . Messages { var id uint32 if uid { id = msg . UID } else { id = uint32 ( i + 1 ) } if ! seqset . Contains ( id ) { continue } mbox . user . Client . MoveMessage ( mbox . user . Info . Address . Hash ( ) , msg . ID , mbox . id , boxID ) } return nil }
CopyMessages will copy a message
CopyMessages will copy a message