// The accounts of tools/java-oracle's EmailRun and MailCases (EmailRun.ACCOUNTS, // Java's /mailserver/konten.txt) as the model holds them: anna with a mail // from bob and one from carla, bob without mail. import type { EmailServerAccount } from '../src/index.js'; const message = (fields: Partial): EmailServerAccount['mailbox'][number] => ({ id: 0, from: { name: null, mailAddress: null }, to: [], cc: [], bcc: [], subject: '', body: '', isNew: true, isMarkedForDeletion: false, isSent: false, ...fields, }); export const MAIL_ACCOUNTS: readonly EmailServerAccount[] = [ { username: 'anna', password: 'geheim', firstName: 'Anna', lastName: 'Muster', mailbox: [ message({ id: 1, from: { name: 'Bob Beispiel', mailAddress: 'bob@filius.de' }, to: [{ name: null, mailAddress: 'anna@filius.de' }], subject: 'Hallo Anna', body: 'Erste Zeile\nZweite Zeile' }), message({ id: 2, from: { name: 'Carla', mailAddress: 'carla@andere.de' }, to: [ { name: 'Anna Muster', mailAddress: 'anna@filius.de' }, { name: null, mailAddress: 'bob@filius.de' }, ], cc: [{ name: null, mailAddress: 'chef@filius.de' }], subject: 'Termin', body: 'Morgen um 10?', }), ], }, { username: 'bob', password: 'passwort', firstName: 'Bob', lastName: 'Beispiel', mailbox: [] }, ];