id = "roundcube"
frontend = "port"
access = "read"
root = "apps/roundcube"
environment = "php"
egress = ["outlook.office365.com:993", "smtp.office365.com:587"]

[[processes]]
id = "server"
command = ["sh", "launch.sh"]
ready = { port = 8080 }
restart = "on-failure"
port = 8080

[[processes]]
id = "tunnel"
command = [
  "python",
  "tunnel.py",
  "10993=outlook.office365.com:993",
  "10587=smtp.office365.com:587",
]
ready = "started"
restart = "on-failure"

[[secrets]]
name = "microsoft"
per = "person"
kind = "microsoft_oauth"
optional = true
scopes = [
  "https://outlook.office.com/IMAP.AccessAsUser.All",
  "https://outlook.office.com/SMTP.Send",
]

[name]
en = "Roundcube"
de = "Roundcube"
fr = "Roundcube"
es = "Roundcube"
it = "Roundcube"
el = "Roundcube"
hu = "Roundcube"

[description]
en = "Reads and sends email in your Microsoft 365 mailbox. Sign in to Microsoft once under Settings → Connected accounts, and Roundcube opens your mailbox."
de = "Liest und sendet E-Mails in Ihrem Microsoft 365-Postfach. Melden Sie sich einmal unter Einstellungen → Verbundene Konten bei Microsoft an, und Roundcube öffnet Ihr Postfach."
fr = "Lit et envoie les e-mails de votre boîte aux lettres Microsoft 365. Connectez-vous une fois à Microsoft dans Paramètres → Comptes connectés, et Roundcube ouvre votre boîte aux lettres."
es = "Lee y envía el correo electrónico de su buzón de Microsoft 365. Inicie sesión una vez en Microsoft en Configuración → Cuentas conectadas, y Roundcube abre su buzón."
it = "Legge e invia le e-mail della Sua casella di posta Microsoft 365. Acceda una volta a Microsoft da Impostazioni → Account connessi, e Roundcube apre la Sua casella di posta."
el = "Διαβάζει και στέλνει email στο γραμματοκιβώτιό σας στο Microsoft 365. Συνδεθείτε μία φορά με λογαριασμό Microsoft στις Ρυθμίσεις → Συνδεδεμένοι λογαριασμοί, και το Roundcube ανοίγει το γραμματοκιβώτιό σας."
hu = "E-maileket olvas és küld a Microsoft 365-postafiókjában. Jelentkezzen be egyszer Microsoft-fiókkal a Beállítások → Csatlakoztatott fiókok részben, és a Roundcube megnyitja a postafiókját."

[assistant]
en = "Start Roundcube with start_app when the person wants to read or send email, and tell them to open it from its row under this chat. It opens their Microsoft 365 mailbox, signed in with the Microsoft account they connected under Settings → Connected accounts; if Roundcube shows its sign-in form instead, they haven’t connected one yet: tell them to sign in to Microsoft there, then start Roundcube again. Never ask for a password in the chat, and never type one yourself. If it doesn’t start or misbehaves, read its logs with read_app and say what they show."
de = "Starten Sie Roundcube mit start_app, wenn die Person E-Mails lesen oder senden möchte, und sagen Sie ihr, dass sie es über seine Zeile unter diesem Chat öffnet. Es öffnet ihr Microsoft 365-Postfach, angemeldet mit dem Microsoft-Konto, das sie unter Einstellungen → Verbundene Konten verbunden hat. Zeigt Roundcube stattdessen sein Anmeldeformular, hat sie noch keines verbunden: Sagen Sie ihr, dass sie sich dort bei Microsoft anmeldet, und starten Sie Roundcube dann erneut. Fragen Sie im Chat nie nach einem Passwort und geben Sie nie selbst eines ein. Wenn es nicht startet oder sich falsch verhält, lesen Sie seine Protokolle mit read_app und sagen Sie, was sie zeigen."
fr = "Démarrez Roundcube avec start_app lorsque la personne veut lire ou envoyer des e-mails, et dites-lui de l’ouvrir depuis sa ligne sous ce chat. Il ouvre sa boîte aux lettres Microsoft 365, connecté avec le compte Microsoft qu’elle a connecté dans Paramètres → Comptes connectés ; si Roundcube affiche plutôt son formulaire de connexion, elle n’en a pas encore connecté : dites-lui de s’y connecter à Microsoft, puis redémarrez Roundcube. Ne demandez jamais de mot de passe dans le chat et n’en saisissez jamais vous-même. S’il ne démarre pas ou se comporte mal, lisez ses journaux avec read_app et dites ce qu’ils montrent."
es = "Inicie Roundcube con start_app cuando la persona quiera leer o enviar correo electrónico, y dígale que lo abra desde su fila bajo este chat. Abre su buzón de Microsoft 365, con la sesión iniciada con la cuenta de Microsoft que conectó en Configuración → Cuentas conectadas; si Roundcube muestra en su lugar su formulario de inicio de sesión, aún no ha conectado ninguna: dígale que inicie sesión en Microsoft allí y vuelva a iniciar Roundcube. Nunca pida una contraseña en el chat ni escriba usted una. Si no se inicia o falla, lea sus registros con read_app y diga lo que muestran."
it = "Avvii Roundcube con start_app quando la persona vuole leggere o inviare e-mail, e le dica di aprirlo dalla sua riga sotto questa chat. Apre la sua casella di posta Microsoft 365, con l’accesso dell’account Microsoft che ha collegato da Impostazioni → Account connessi; se Roundcube mostra invece il suo modulo di accesso, non ne ha ancora collegato uno: le dica di accedere a Microsoft lì, poi avvii di nuovo Roundcube. Non chieda mai una password nella chat e non ne digiti mai una Lei stesso. Se non si avvia o non funziona bene, legga i suoi log con read_app e dica che cosa mostrano."
el = "Ξεκινήστε το Roundcube με start_app όταν το άτομο θέλει να διαβάσει ή να στείλει email, και πείτε του να το ανοίξει από τη γραμμή του κάτω από αυτή τη συνομιλία. Ανοίγει το γραμματοκιβώτιό του στο Microsoft 365, συνδεδεμένο με τον λογαριασμό Microsoft που συνέδεσε στις Ρυθμίσεις → Συνδεδεμένοι λογαριασμοί· αν το Roundcube εμφανίσει αντί γι’ αυτό τη φόρμα σύνδεσής του, δεν έχει συνδέσει ακόμη λογαριασμό: πείτε του να συνδεθεί εκεί με λογαριασμό Microsoft και ξεκινήστε ξανά το Roundcube. Μη ζητάτε ποτέ κωδικό πρόσβασης στη συνομιλία και μην πληκτρολογείτε ποτέ εσείς κάποιον. Αν δεν ξεκινά ή δεν λειτουργεί σωστά, διαβάστε τα αρχεία καταγραφής του με read_app και πείτε τι δείχνουν."
hu = "Indítsa el a Roundcube-ot a start_app segítségével, ha a felhasználó e-mailt szeretne olvasni vagy küldeni, és mondja meg neki, hogy a csevegés alatti sorából nyissa meg. A Roundcube a Microsoft 365-postafiókját nyitja meg, azzal a Microsoft-fiókkal bejelentkezve, amelyet a Beállítások → Csatlakoztatott fiókok részben csatlakoztatott; ha a Roundcube ehelyett a saját bejelentkezési űrlapját mutatja, még nem csatlakoztatott fiókot: kérje meg, hogy ott jelentkezzen be Microsoft-fiókkal, majd indítsa el újra a Roundcube-ot. Soha ne kérjen jelszót a csevegésben, és soha ne írjon be jelszót saját maga. Ha nem indul el, vagy hibásan működik, olvassa el a naplóit a read_app segítségével, és mondja el, mit mutatnak."
