Skip to content
juw12Public

About

Read, answer and write your Outlook mail from your phone, served by your own PC, on your network or from any network through a relay that only holds ciphertext. Autopilot answers the safe Gmail on its own. Updates itself.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Titip

Read, answer and write your Outlook mail from your phone. Your own PC serves it. It can also answer the easy mail in your Gmail and keep the rest for you.

Titip is Indonesian for leaving something with someone to pass on. You leave a message with your PC, and Outlook on that PC sends it exactly as if you had typed it at your desk.

Try it with invented mail: https://juw12.github.io/titip/

Titip on a phone: the inbox, an answer to all with two files attached, and the calendar with an invitation

Get it on your device

The Windows, Mac and Android apps open Titip's web page in a window of its own (desktop/, android/) and change with it. That page is a demo with invented mail; your own mail is served by Titip on your PC. Each build is opened on GitHub's machines before it is published: on Windows and on a Mac the page loads, the app starts and can store data; on an Android emulator it installs, opens and stays up. They are not code-signed or notarised, and no real phone or PC has run them yet.

What it does

  • Shows Inbox, Sent and Drafts from the classic Outlook desktop app, newest first, including mail that rules or archivers moved into .pst data files. Tap the folder's name in the bar for the others: Outbox, Deleted, Junk, and under them your own folders, of every data file, each with where it is and how much in it is unread. A mail that waits in the Outbox is said over every list, so you know it has not left yet. It is laid out the way Outlook's phone app is: a round initial for each sender, mail grouped under Today, Yesterday and so on, unread mail in bold with a coloured edge. It is drawn the way Cairn is: warm paper, ink, hairlines, a serif for headings, and one orange for what is new (see design.md).
  • Opens a message with its formatting in a frame that cannot run scripts or load remote pictures, or as plain text. Attachments download to the phone.
  • Reply, Reply all, Forward and new mail. Outlook adds the earlier thread. A new mail starts with the signature Outlook has for new mail, an answer with the one for answers, as text under the cursor: change it or take it out. High importance and Read receipt are buttons under the text.
  • B, I, U and List over the text put marks around what you selected (**bold**, *italic*, __underlined__, - in front of a line). In the mail that leaves they are bold, italic, underlined and a real list. Typed without those keys, every sign stays as you typed it. Title makes a line stand out (# in front of it), M marks a passage yellow (==words==) and Link writes [words](https://...), which leaves as the words with the address behind them.
  • Picture in the text: the picture goes along as a file, and a line in the text ([picture: name]) says where it is shown. Move the line, and the picture moves with it.
  • An answer lists who it goes to, To and Cc, the way Outlook addressed it, and you can change that: take somebody out, put somebody in, move somebody to Cc. It works the same for Reply, Reply all and Forward. Bcc opens a third line. The mail goes to the people listed and to nobody else.
  • Attach a file to any mail you write: a new one, an answer, a forward, a draft. Photos and files come from the phone. A forward and a draft list the files of the original, and a tap leaves one behind. Up to 20 files and 15 MB a mail on your own network, 5 MB through the relay.
  • Calendar shows your meetings and appointments two weeks at a time, under Today, Tomorrow and their dates. A meeting opens with when, where, who is invited and its text. An invitation can be answered with Accept, Tentative or Decline, from the calendar or from the mail that brought it, and the organizer is told as if you had answered in Outlook.
  • New entry on the calendar makes an appointment, or with people in it a meeting, and Outlook invites them. It can repeat every day, working day, week, second week, month or year, a number of times or without an end. A weekly one can take place on several days of the week (Tuesdays and Thursdays), a monthly one on the date or on such a weekday (the second Tuesday, the last Friday). It can remind you from a week before down to the minute it starts. It can end on a later day than it starts, with its hours. Show as says how the time looks to others (busy, free, tentative, out of office, working elsewhere), and Private hides what it is. An entry of your own opens with Change and Delete (Cancel the meeting when people are invited, and they are told). Change lists who is invited and who is optional: take somebody off, put somebody on. Of an entry that repeats you are asked: only this one, or the whole series. The whole series can be given new hours.
  • An invitation can be answered with a note: a line over the three answers, which the organizer reads in the answer. Suggest another time answers tentative and says the day and the hours you would rather have, in words and in the fields Outlook's own "Propose New Time" writes. Of a meeting that repeats you are asked: answer this one time, or the whole series.
  • Select several mails (under the search box, or hold a finger on a mail): tick them, then Delete, Read, Unread, Flag or Move them together.
  • Push a row aside in a list of mail: to the left it is deleted (behind Undo, as always), to the right it is marked read or unread. What it does is said in words behind the row.
  • Tap the sender's name in an open mail for what Outlook knows of that person: job, department, company, office and numbers, from the company directory or your contacts, with Write a mail and the numbers to call.
  • Other calendars on the calendar page: more of your own and the ones people share with you, as Outlook lists them. They are read; nothing in them is answered or changed from the phone.
  • Reminders on this phone, one line on the calendar page: switched on, an entry whose reminder is due is said on the page with a short tone, and as a notification where the phone allows one. They ring while Titip is open on the phone, not while it is closed.
  • Notifications while Titip is closed, under the list of folders: new mail and Outlook's own reminders are announced on the phone, the way a mail app does it, and a tap opens the mail. On an iPhone they come to the Home Screen icon. Send a test proves the way from your PC to the phone.
  • Tasks, Notes and Contacts, under the folder's name with the other folders: Outlook's own. The open tasks come by the day they are due, the done ones a tap away; New task, Done, Change, Delete. A task can have a start day and a reminder at a day and time of its own. A note is its text, and its first line is its name. A contact opens with the address to write to and the numbers to call: Write a mail starts one to that person, a tap on a number dials it, and the search finds a contact by name, company or address.
  • Send later, a button under the text: pick a day and a time, and the mail waits in Outlook's Outbox until then. It can still be stopped there.
  • Automatic replies (out of office), under the list of folders: the switch, on or off, what the reply says, and Change the text: one box for people in your organization, one for people outside it. While they are on, one line over every list says so, with Switch off next to it.
  • Delete moves a message to Deleted Items. A draft is discarded the same way, and a mail deleted from the Outbox does not leave. In Deleted Items, Delete for good removes a mail for good, and under the list of folders Empty Deleted Items removes everything in it. Empty Junk moves the junk to Deleted Items.
  • More, next to Delete: Mark as unread, Flag, Move to a folder (any folder of your own, so also Archive), Categories (Outlook's own with their colours, ticked, and New category in a colour you pick), Always move mail from this sender (Outlook makes a rule). A flag and high importance show in the list.
  • Under the list of folders: New folder (inside the folder you are in), Rename this folder, Take out this folder (an empty one of your own only), and Rules: Outlook's rules, each switched on or off.
  • A mail you open on the phone is marked read in Outlook too, the way Outlook's own phone app does it.
  • Type a few letters in To or Cc and Titip suggests the people of your own mail, name and address, the ones you write to first, and under them people from Outlook's address book (the company directory). Tap one, or press Enter. Each person becomes a label with the name on it, the way Outlook shows them; tap a label or press Backspace to take it out.
  • Every send waits 3 seconds behind an Undo button, and so does a delete and an answer to an invitation. Save as draft puts it in Outlook's Drafts. If a send fails, the message comes back with your text, your files and the reason.
  • Search by subject or person, and with a tick also in the text of the mail. Under the search box: All, Unread, Flagged. Light and dark. Works as a home-screen app.
  • The subject of an answer or a forward is shown the way Outlook will write it, and can be changed.

It stores no password, and on the PC it writes no mail to disk. A file you attach is the one exception, for a moment: it rests in Titip's memory, and is put in Windows' temporary folder only while Outlook reads it into the mail, then deleted. It drives the Outlook that is already signed in on your PC. Titip keeps the first page of each folder and the messages on it in its own memory, so a tap opens at once. Those copies are gone when Titip stops. The phone keeps a little as well, see What the phone keeps. It keeps itself up to date (see Updates).

What the phone keeps

So that the app opens with your mail on screen instead of an empty page, the browser on the phone keeps the first page of Inbox, Sent and Drafts as it was last shown (sender, subject and the first lines, not the messages themselves) and the names and addresses it suggests. The other folders and the calendar are not kept, and neither is a file you attached: a mail you were writing is still there after the app was closed, its files have to be attached again. What the address book answers while you type is not kept, only a person you picked from it. When the PC cannot be reached, that list is shown with a note that says from when, and Titip keeps trying by itself until the PC answers. Unlink, unpairing the phone, or clearing the browser's data removes it. The demo keeps nothing.

Autopilot for Gmail

Titip can also look after a Gmail inbox on the same PC. It is off until you switch it on.

The Autopilot page on a phone: On, the two ways to answer, and an invoice waiting with a draft

Every 10 minutes it looks at new mail in the Primary tab of the Gmail that Chrome is signed in to, and for each mail does one of three things. All three are written down on the Autopilot page, live.

  • Answers it. Only a short answer that promises nothing: thanks, "please send the details in writing", a simple question about your public work.
  • Keeps it for you. Anything about money, a contract, a password or code, personal papers, or an answer that would name a date, a price, a link or an address. It waits under Waiting for you with a draft. You edit it and press Send, or press Don't answer.
  • Leaves it alone. Newsletters, receipts, machines.

What it keeps for you or leaves alone is marked unread again in Gmail, so it still looks new; only a mail it answered stays read. If something else on your PC reads through the mail it leaves alone, you can have that mail stay read, so that only what waits for you is unread. Ask Titip once, on the PC:

curl -X POST http://127.0.0.1:47780/api/auto -H "X-Titip: 1" -H "Content-Type: application/json" -d "{\"command\": \"left\", \"read\": true}"

A mail it could not judge, because the model did not answer or Gmail's page did not show the sender's address, is read again at the next look, three times in all, before it is kept for you with that reason. The Autopilot page shows each of those looks as Trying again.

The sender is always whoever wrote the last message of the thread. Gmail shows only the name of somebody you have written to before, a recruiter answering your application for one. Autopilot then opens that message's own Show details, reads the address from its from: line and closes it again.

What it can never do is fixed in code, not in a prompt:

  • answer anyone but the sender of the mail it just read
  • send more than 8 answers a day per mailbox, or two to one conversation within 12 hours
  • forward or delete mail, follow a link, open an attachment
  • touch the mail that was already unread when you switched it on

Choose Show me first and nothing leaves without you. Your own answering rules go in autopilot_profile.md in Titip's folder (~/.titip); without it a careful default is used.

Who wrote is written down too: autopilot.json in the same folder keeps, under wrote, the address of each sender whose mail Autopilot read and the time of the last one, whatever it did with the mail. Another program on the same PC can read that to tell that somebody answered.

How it works: Titip opens a narrow Chrome window at the edge of the screen, reads the mail through Windows' accessibility interface and closes the window. It stores no Google password and uses no Google API. The text of a mail is given to OpenCode on your PC with every tool switched off, so the model you run there reads it. If that model is a hosted one, the mail text goes to that host.

Autopilot from any network

The Autopilot page can be opened from mobile data. For that the PC sends its state to a small relay and takes your button presses from it. Both are encrypted on the PC and on the phone with a key that only travels inside the QR code, after the # of the address, which a browser never sends to a server. The relay holds ciphertext it cannot read.

You run the relay yourself, free, as a Cloudflare Worker:

cd worker
npx wrangler kv namespace create RELAY      # put the id it prints into wrangler.toml
npx wrangler deploy                         # prints https://titip-relay.<you>.workers.dev

The relay keeps the Autopilot state in that KV namespace and passes mail through a Durable Object (SQLite storage, which Cloudflare's free plan includes). wrangler deploy sets up both.

Put that address into ~/.titip/remote.json as {"relay": "https://titip-relay.<you>.workers.dev"}, start Titip again, and on the PC page press Show a QR code under Pair a phone. Scan it once, on any network. Make a new code cuts off every phone that scanned the old one.

The PC reaches the relay the way its environment says (HTTPS_PROXY), then through the proxy Windows is set to, then straight out, and remembers which one worked. So it keeps working when the PC moves between an office and home, or when a local proxy program is not running.

Mail from anywhere

With the relay in place, your Outlook mail can pass through it too: inbox, sent, drafts, reading, attachments, writing, replying. It is off until you press Switch on next to Outlook mail from anywhere on the PC page. From then on the code under Pair a phone opens the mail app itself, so scanning it is all the pairing a phone needs: the phone can be on mobile data, and the PC on an office network the phone could never join. A phone that scanned the code earlier gets a Mail tab on its Autopilot page; the code is the same.

  • The phone seals each question (show my inbox, open this mail, send this) with the key from the QR code. The PC picks it up, lets Outlook do it, and seals the answer. The relay passes both on and cannot read either. A question waits there at most 5 minutes, an answer is handed out once.
  • A send is carried out once. A question the PC has seen before, one older than two minutes, or a send made before Titip last started is refused, so a mail cannot go out twice.
  • It is slower than your own network. The PC looks for questions every 0.7 seconds while somebody reads mail, every 1.5 seconds for half an hour after that, and every 3 seconds the rest of the day, so the first tap after a long pause can take a few seconds. With the 20-second look for Autopilot that is about 33,000 requests on a day nobody uses it; the relay's free plan allows 100,000. The PC keeps its connection to the relay open between questions: through an office proxy a new one took about two seconds each time, and every tap needs two.
  • While you write, the phone tells the PC once a minute that somebody is there, so Send is picked up within a second or so and does not wait for the PC's slow look.
  • An attachment over 1 MB is not opened through the relay. A very long formatted mail arrives as plain text.
  • A file you attach goes to the PC in sealed pieces of about 100 KB, three at a time, so 5 MB of files take around a minute. The relay never holds a whole file, and cannot read a piece.
  • Anyone holding the link the phone saved can read and send your mail while the switch is on. Switch off closes that at once; Make a new code cuts off every phone.

Autopilot does not touch Outlook mail. It only ever answers Gmail.

On the iPhone Home Screen

An iPhone gives a Home Screen icon its own storage. The key the browser kept after the scan is not in it, so an icon made from the mail app used to open with nothing. The key now travels in the one thing the icon keeps: the address of the page it was made from.

  1. On the PC page press Show a QR code and scan it with the iPhone camera.
  2. The page that opens says what to tap: Share, Add to Home Screen, Add.
  3. Open Titip from the new icon. Mail, Sent, Drafts, writing, answering and Autopilot are all there, on any network.
  • While that page waits for you, its address holds the key, for at most five minutes. Do not copy or share the address in that time. After five minutes, or when you leave the page, the key is taken out again. Not now skips the icon and opens Titip in the browser.
  • The icon carries the key for as long as it exists. Whoever holds the unlocked phone can open it. Unlink this icon on its Autopilot page stops it; delete the icon afterwards. Make a new code on the PC cuts off every icon and phone.
  • An icon made before version 0.5.1, or from any other Titip page, has no key. It says so when you open it. Delete it and scan the code again.
  • Later, the Autopilot page in the iPhone browser has Put Titip on the Home Screen at the bottom.
  • Android needs none of this: an icon there shares the browser's storage.

When the phone cannot reach your PC

The phone finds out what stands in the way and says it over the list it kept. It reads the PC's last sealed state from the relay, which costs one request and asks the PC nothing.

The phone says What it found What to do
This phone is offline. The phone itself reports no connection. Nothing: the list refreshes by itself when the connection is back.
This phone has no internet connection right now. Neither the relay nor the site the page came from answered. The same.
This network does not let the phone reach the relay (host). The site answered, the relay did not. Some office Wi-Fi networks and some mobile carriers block workers.dev addresses. Switch between Wi-Fi and mobile data. To stop it for good, give the relay an address of your own (a Cloudflare custom domain), put it in remote.json and scan the new code.
The relay does not know the code this phone has. The relay has nothing under this code: a new code was made on the PC, or the PC was off for over a week. Show the code on the PC and scan it again. On an iPhone, make the Home Screen icon again and delete the old one: an icon keeps the code it was made with.
This phone has an older code than your PC. The key on the phone does not open what the PC wrote. The same.
Your PC was last heard from time. The PC has not written to the relay for 45 minutes. Check that the PC is on and Titip is running.
“Mail from anywhere” is switched off in Titip on your PC. The PC is there, the switch is off. Switch it on at the PC page.
The relay answered with an error (number). The relay itself failed. Try again in a minute.
Your PC did not answer. Relay and PC are there, and no answer came in 45 seconds. Outlook on the PC is busy or closed.

A request that gets no reply is made again for a few seconds before any of this is shown, and one that hangs for 10 seconds is dropped and made again: a phone that just woke up often hands the page a dead connection first. Under the list the page names its version (Titip 0.16.1). A Home Screen icon that has been open for more than 12 hours reloads itself the next time you come back to it, so it does not keep running an old page. The page for any network keeps its own files on the phone (the page, never mail), so its icon opens without a connection too and says that the phone is offline, where a browser would show an error page. With a connection it always takes the newest files.

Updates

A copy installed with git clone keeps itself up to date. A minute after it starts, then every 15 minutes, it looks at the published version. When there is a newer one it checks that the new version starts on this PC, moves to it (a plain fast-forward), waits until nothing is in progress and starts again. If the new version does not come up within 90 seconds, Titip goes back to the one before and does not try that version again.

A copy on another branch, or with changes of its own, is left alone. The PC page shows the version, the last look and a switch under Updates. If GitHub is only reachable through a proxy, put it in ~/.titip/update.json: {"on": true, "proxy": "http://localhost:3128"}. Each restart is noted in ~/.titip/update.log. The relay is not updated this way: run npx wrangler deploy again when worker/ changes.

Titip and everything it starts (git, the trial start, the new version) run at normal priority, even when a tool on the PC has put Titip itself down to a lower one. Windows passes a lowered priority on to whatever a program starts, and on a busy PC a new version started that way would not come up in time.

What you need

  • Windows with classic Outlook (the desktop app, not "new Outlook") open and signed in
  • Python 3.10 or newer
  • The phone on the same network as the PC, or Tailscale on both, or your own relay (see Mail from anywhere) and then any network will do
  • For Autopilot: Google Chrome signed in to Gmail, and OpenCode with a model

Start

git clone https://github.com/juw12/titip
cd titip
pip install -r requirements.txt
python -m titip

A page opens on the PC. Press Show a same-Wi-Fi code and scan it with the phone's camera. (With a relay set up, Show a QR code at the top gives a code that works on any network instead.)

The first time, the phone warns that the connection is not private. That is expected: the PC made its own certificate, so the link is encrypted but no authority vouches for it. Tap Advanced, then Proceed (Safari: Show Details, then visit this website).

scripts/install.ps1 adds a Desktop shortcut and starts Titip quietly when you sign in to Windows. scripts/install.ps1 -Remove takes both away.

Command What it does
python -m titip Serve your Outlook mail to paired phones
python -m titip --demo Invented mail instead of Outlook, safe to show around
python -m titip unpair Cut every paired phone off
python -m titip --http No encryption on the phone link. Only for a network you trust.

How the phone is trusted

  • The same-Wi-Fi QR code holds a random code that works once, for five minutes. It sits in the part of the link that browsers never send to a server or write to a log.
  • The QR code for any network is another kind: it does not expire, and it carries the key that seals everything the phone and the PC say to each other through the relay. It also sits after the #, and the phone takes it out of the address bar once it has kept it. Treat a picture of that code like a password. Make a new code makes the old one worthless.
  • The phone trades it for a random device cookie (HttpOnly, SameSite=Strict, Secure). The PC keeps only a hash of it in ~/.titip/devices.json.
  • A phone without that cookie gets one page: "scan the QR code". No mail, no subject, no count.
  • Unpair all phones on the PC page, or python -m titip unpair, cuts every phone off at once.
  • The PC page that shows the QR code answers only on 127.0.0.1.
  • Your Outlook mail does not go through another server unless you switch on Mail from anywhere. Then it passes your own relay, encrypted, and the relay cannot read it. Autopilot from any network does the same for Gmail. There is no account and no analytics.

Before you use it with work mail

Titip opens a door from your network to your mailbox. Read this first.

  • Anyone holding a paired, unlocked phone can read and send your mail. Keep a screen lock on the phone.
  • Check your employer's rules. Many companies do not allow mail on personal devices or extra services on a work PC, and Mail from anywhere carries mail off the company network, sealed, through a relay you run. That call is yours and theirs, not this tool's.
  • Windows Firewall may block the phone. If the phone cannot connect, allow Python on port 47779 for your private or domain network. That needs an administrator.
  • The PC must be on, awake and running Outlook. Titip is a window onto that Outlook, not a mail server. If a tool on the PC lowers the priority of background programs, Titip puts itself back to normal (never higher), so the phone still gets an answer while the PC is busy.
  • Outlook answers one program at a time, and a full PC can keep any program waiting. So Titip reads ahead: the newest 40 messages of the Inbox, 20 of Sent and 10 drafts, and whatever an older page or a search showed the phone. Those open at once whatever Outlook is doing. It starts when a phone asks for mail, or with Titip itself when a phone is paired and Outlook is already open, so the first look after a restart does not wait either. When Outlook is busy the list is shown from memory with a note that says from when, and is replaced as soon as Outlook answers.
  • The names Titip suggests in To and Cc come from that same mail, plus who the 100 newest sent messages went to (read one a second, only for their recipients). They are kept in memory on the PC and in the phone's browser.
  • The address book is asked after two letters and a short pause, and answers with up to eight people whose name, as the book lists it, starts with what you typed (for "Lie, Juwen" type "lie"), or the one person a short name (alias) belongs to. It does not find a first name in the middle of an entry. A name it does not suggest can still be typed: it becomes a grey label, and Outlook resolves it when the mail is sent. If Outlook is busy, the address book part is left out and the people of your own mail are still suggested.
  • Names with a comma in them ("Okonkwo, Chidi") stay one person: the phone sends recipients as a list, not as one line of text.
  • A send goes ahead of everything else that waits for Outlook, the reading ahead included. So does a delete and an answer to an invitation.
  • An answer you did not re-address goes to whom Outlook addressed it, by the same steps as before 0.9.0: the phone says that nobody was added or taken out, and the PC then leaves the recipients alone. Only an answer you changed has its recipients gone through.
  • Reply all lists the first 300 people of a mail. A mail that went to more says so, and is better answered in Outlook. Somebody Outlook knows only by an internal name (some lists and rooms) is shown by name with a grey label; untouched, he stays on the answer exactly as Outlook put him.
  • A phone page from before 0.9.0 (an icon that was open for hours) does not list who an answer goes to. For it Titip does what it did before: Outlook addresses the answer and Cc is only added to.
  • A mail that asks for a read receipt is not marked read from the phone. Outlook may ask on the PC whether to send the receipt, and nobody is there to answer. It stays unread in Outlook until you open it there.
  • Your own folders are asked for when you open the list of folders, and kept an hour: walking every data file takes Outlook a while. At most 300 are listed, five folders deep. The number of unread mail is shown for the folders of your mailbox, not for those of older data files.
  • A search in the text asks Outlook by word where it keeps an index of the data file (quick), and letter by letter where it does not, which reads every mail of the folder and can take a minute.
  • The signature is read from the files Outlook keeps for it, as plain text. Formatting and pictures of a signature do not come along. If Outlook keeps its signatures only online, there is none.
  • An entry's time is handed to the PC as one moment, so a phone in another time zone still makes it at the hour you meant. The PC sets the time, reads it back, and sets it again if Outlook shifted it.
  • A rule made on the phone is the plainest Outlook has: mail from one sender goes to one folder. It is named "sender → folder", runs after the rules that were there, and is changed or taken out in Outlook. Rules are those of your own mailbox, not of other data files.
  • Who is invited: the people a meeting requires are listed. Yourself, optional guests and rooms stay as they are. Somebody taken off is no longer on the meeting; Outlook's object model does not send a cancellation for one person, so tell them yourself.
  • One time of a series is found by when it starts. If Outlook takes that time as written on another clock, it is asked again shifted by the PC's distance from UTC, and what comes back must start at the right moment or nothing is changed.
  • The hours of a whole series go to the pattern Outlook keeps for it: the time of day it starts and how long it lasts, set and read back, and set again if Outlook took the time as written on another clock. Outlook then puts every time of the series back on the pattern: a time you had moved or renamed by itself is like the others again. The sheet says so before you save, and the hours are only handed over when you changed them. The days a series takes place on are changed in Outlook.
  • Other calendars are the ones Outlook lists at the side of its own calendar, which needs an Outlook window open on the PC. One that cannot be reached is left out of the list.
  • Marks become formatting only when the keys over the text were used in that mail and a mark is still in it. A mark needs text right inside it: 2 * 3 * 4 and snake__case stay as typed.
  • The Outbox, Deleted, Junk, your own folders and the calendar are not read ahead: they are asked for when you open them. The calendar is kept for ten minutes, read again after you answered an invitation or changed an entry, and read anew when you press Refresh.
  • Some questions take Outlook long: the calendar of a large mailbox from 40 seconds to minutes, the folders of several data files, another person's calendar. Such a question is put to Outlook once, however often the phone asks meanwhile, and its answer is kept even when the phone had stopped waiting, so the next try has it. (Before 0.10.3 each try set Outlook to read it all again, the answer never came, and a mail sent meanwhile was told "Outlook is busy".)
  • A long reading stops between two steps when a send is waiting, and is asked for again afterwards. A send that still could not wait says what kept Outlook: "Outlook has been reading the calendar for 95 seconds."
  • A call Outlook turns away because a window of its own is in the way is made again three times, a second and a half apart, before the phone is told. A call turned away was not carried out, so nothing can happen twice.
  • What an invitation is for (when, where, your answer) is looked up when you open the mail, not for every mail read ahead.
  • Calendar dates are asked of Outlook in the way your PC writes dates (Windows' short date), a day more on each side, and every entry is then checked against the real days. If what comes back is mostly from other days, Outlook read the dates another way: they are asked again year first, then month first, and the way that worked is remembered.
  • Files that wait to be attached hold back a restart for an update for two minutes, and are dropped after fifteen when no mail came for them.
  • Unread and Flagged are asked of Outlook like a search, and are not kept on the phone. A search then looks among those only. A search, an older page or a narrowed list that takes Outlook longer than the phone waits is asked once, however often the phone asks meanwhile, and the answer is kept ten seconds for the next try (before 0.12.0 every try started it over).
  • The subject of an answer that you leave as it is shown is not sent to the PC: Outlook writes its own, which in another language may start with AW: or TR:. Only a subject you changed is set.
  • One person is looked up by the address the mail carries, in the company directory first, then in your contacts. A name that fits several people is not guessed at. If Outlook is busy, nothing is shown and nothing waits. With the directory out of reach (no network to the company), a colleague shows with name and address only.
  • Guests who need not come are listed apart from the others and changed apart. A phone page from before 0.12.0 does not list them, and leaves them as they are. Private is kept by Outlook for a whole series, so it is not offered for one time of it.
  • Several mails are done one after the other, so Outlook is asked for one thing at a time. If one fails, the phone says how many were done and why the last one was not.
  • Nothing leaves a folder for good in one step: only what is in Deleted Items already is deleted for good, and the countdown before it says "for good". Emptying takes 300 at a time and says how many are still there. It empties the Deleted Items of your mailbox, not those of other data files.
  • What the automatic reply says is read from, and written to, the two hidden notes Outlook keeps for it in the Inbox (one for people in your organization, one for people outside), and read back after it is written. The one for people outside is written only when you changed it. The texts are plain: a text with formatting set in Outlook loses the formatting when the phone changes it. Whether people outside get an answer at all, and a time span, are set in Outlook. Reading the notes is tried on a real Exchange mailbox. That the reply people get is the text written from the phone is not: after the first change, look in Outlook once that it shows your text.
  • Another time for a meeting is always said in words in the tentative answer. Outlook's own "Propose New Time" cannot be called by a program, so Titip also writes the four fields that form fills in (the start, the end, the length, and that it is a proposal), each read back. If Outlook does not take one of them, all four are taken out and the answer leaves with the words alone. An organizer whose Outlook reads the fields sees the time as a proposal to accept; another mail program shows the words.
  • One time of a meeting that repeats is found by when it starts, the way one time of your own series is, and only that time is answered.
  • The days of the week an entry repeats on are handed over as the phone counts them, together with the day it starts on. A PC whose clock has that moment on another day turns them all by as much. The day it starts on is always one of them. "The last Friday" is taken only when the day is the last one of its month; a fifth one is the last one, as Outlook has it.
  • A task's start day is set after its due day and both are read back: Outlook moves the one when the other is set. If it does not keep both, Titip says so and saves nothing new. The reminder is a day and a time, set, read back, and set again if Outlook shifted it.
  • A task without a day has none set. A day is taken off by handing Outlook its own "no date" back, read off a new task that is thrown away: a real Outlook takes that and nothing else (before 0.15.1 a task without a due day could not be saved from the phone at all).
  • A picture in the text is a PNG, a JPEG or a GIF. If the line that names it is taken out, it goes along as a plain file. A link is made only of an address that starts with http or https.
  • A row has to be pushed about a quarter of the screen before it counts; let go earlier and nothing happens. In Deleted nothing can be pushed away, and in Sent, Drafts and the Outbox only to the left.
  • A reply you started in Outlook's reading pane on the PC, or a draft that is clicked there, is being written in that pane, and Outlook then refuses to send, delete or move it for anyone else ("This method can't be used with an inline response mail item"). Before Titip sends, deletes or moves a draft it looks whether an Outlook window has it open like that, and makes the window let go: first by selecting nothing, then by showing Sent for a moment (the folder it showed comes back), last by opening the draft in a window of its own. Leaving the pane, Outlook saves what was typed there; text you did not change on the phone leaves as Outlook saved it. If Outlook still holds on, the phone says so: click another mail on the PC, then send again. Tried on a real Outlook: selecting nothing was enough, and the draft was deleted. That Outlook did not refuse a draft deleted under the pane by another program; it deleted it and kept the reply in the pane with nothing behind it. Titip never does that.
  • A mail sent for later is handed to Outlook at once, with the time before which it is not to be delivered. Outlook must be open on the PC at that time for it to leave; if it is not, the mail leaves the next time Outlook runs. It can wait 60 days at most. The time is set, read back, and set again if Outlook shifted it; a time Outlook does not take stops the mail instead of sending it now.
  • The switch for automatic replies switches them on or off. Whom outside the company they go to, and from when to when, are what was last set in Outlook. An Exchange mailbox says whether they are on; for another kind of mailbox the phone does not offer the switch. After switching, Titip reads the state back, and says so if Outlook took the switch and nothing changed.
  • The files the page keeps on the phone are its own (the page, its script, its looks, its icons), kept by a worker in the background, and only for the page for any network. Nothing that came from your PC is kept: no list, no mail, no answer. Every load asks the network first and falls back to the kept file only when there is no answer.
  • Notifications reach a closed page through the push service of the phone's maker: Apple's for an iPhone, Google's for Android and Chrome. The phone signs up there and hands your PC an address and a key. For each notice your PC seals who wrote and what about for that one phone (RFC 8291) and posts it to that address, with a proof that it is the PC the phone signed up with (a key pair of its own, push-key.pem in Titip's folder). The push service sees that something was sent, when and how large. It cannot read it. Your relay is not involved.
  • For that your PC talks to web.push.apple.com or fcm.googleapis.com, through the same ways out of the network as the relay. A company network may not allow it: Send a test then says that the PC could not reach the push service. Check your employer's rules before you switch this on, as for Mail from anywhere.
  • A notice holds the sender and the subject of a mail, or the title and the start of a reminder, and nothing else. More than four mails at one look become one line with their senders.
  • While a phone is signed up, your PC looks at Outlook every minute and a half: at the 15 newest mails of the Inbox, and at the reminders Outlook is showing. It announces unread mail that came since the look before, so a mail you read on the PC right away is not announced. It only looks while Outlook is open and never starts it. A PC that is off or asleep announces nothing, and what it missed is not announced later.
  • Notifications work on the page for any network (Mail from anywhere, and its Home Screen icon), not on the page of your own network: that one has no certificate a phone accepts for a worker in the background. An iPhone needs iOS 16.4 or later and the Home Screen icon.
  • Up to 8 phones can be signed up. One that switched notices off, or was reset, is forgotten the next time a notice is sent to it. A reminder closed on the PC stays on the phone until you swipe it away.
  • Reminders ring only while Titip is open and on screen: a web page cannot wake a phone, so do not count on them the way you count on Outlook's own. For them the phone asks for the calendar every half hour, which on a PC where reading the calendar is slow keeps Outlook busy that often: leave them off there. An entry made less than half an hour before its reminder can be missed. Outlook's own reminder on the PC is not answered or closed from the phone.
  • Tasks, notes and contacts are those of your own mailbox, not of other data files or shared folders, the first 300 of each. They are asked for when you open the page, like the calendar. A list of people among the contacts is left out. A contact's name, company, job title, first address, mobile and work number are changed on the phone; everything else it has stays as it is. Text you did not change keeps the formatting it has in Outlook. Delete moves to Deleted Items.
  • A search in the contacts asks Outlook to look in name, company and first address. Where Outlook cannot search the folder, Titip looks through the first 3,000 contacts itself.
  • A task's due day is set at noon and read back, so an Outlook that shifts times still lands on the day you picked. If it does not, the day is not saved and the phone says so.
  • After the phone is put down, Titip goes on looking for new mail every five minutes for eight hours, so what arrived in the meantime is already there when the phone is picked up again. It stops the first time it finds Outlook closed, and never opens Outlook for a phone nobody holds.
  • While Outlook answers Titip its own window waits. Counting the folders is the slowest question when mail is kept in several data files, so the counts on the PC page and the drafts number on the phone are asked for at most every five minutes, and right after a send or a saved draft. The first question after Titip starts looks through every data file once, which can take a minute or two on a busy PC.
  • A message Titip has not read yet still needs Outlook. The phone shows how it starts (the list knows the first lines) and keeps asking for up to five minutes. The question waits in Outlook's queue once, however often the phone asks. Only reading is asked again. A send is never repeated.
  • A rule or tool that moves new mail into a data file changes the message's id. Titip finds the same message again by time, subject and sender, so it still opens and can be answered.
  • If you run a tool that slows background programs (for example CPU Eco Toggle), exempt Titip there. Titip restores its own priority, but a program that is not given the processor cannot even do that quickly.

Limits

  • Classic Outlook on Windows only.
  • Text you type is sent as plain paragraphs. A draft sent unchanged keeps its formatting; a draft you edit on the phone goes as plain text.
  • Search looks at subject and sender (recipient in Sent), and at the text only when you tick it.
  • Of a series that is there, the hours can be changed, not the days or how it repeats: those are changed in Outlook. How an entry repeats is said when it is made. A room is booked in Outlook: booking one sends a real request to a real room, which no check here can try. Whether an organizer's mail program shows another time you suggested as a proposal to accept is up to that program; the words are always in the answer. Outlook takes a declined meeting out of the calendar. An online meeting (Teams) is made in Outlook: its link comes from an add-in Titip cannot drive.
  • Delete moves to Deleted Items. Only what is there already can be deleted for good.
  • A folder that holds mail or folders is not taken out from the phone, and Outlook's own folders are never renamed or taken out. A new category gets one of eight colours, or none. Outlook has 25: one of its others is shown as the nearest of the eight. The colour of a category that is there, and its name, are changed in Outlook.
  • Formatting is bold, italic, underlined, lists, a title line, a marked passage, links and pictures. No fonts, colours or tables: Outlook's own phone app has none either.
  • A task has a name, a start day, a due day, a reminder, high importance and a text. How it repeats and whom it is assigned to are set in Outlook. A task that starts on a day is due on a day too: that is Outlook's rule. A note has no colour here: in today's Outlook a note's colour is its category. A contact has no picture.
  • Automatic replies: the switch and the two texts. Whether people outside get an answer, and a time span, are set in Outlook; they are kept by the mail server, where a program on the PC cannot reach them.
  • It is laid out like Outlook's phone app but is not it. Notifications come only while the PC is on and Outlook is open, up to a minute and a half after the mail, and only to the page for any network.
  • iPhone: Safari can forget the key of a page you have not opened for a week. A Home Screen icon does not, which is one more reason to make one. Web apps in the Mac Dock are not covered.

Autopilot

  • Windows and Chrome only. The PC must be on, unlocked and signed in to Gmail in Chrome's first profile.
  • English Gmail. It finds Reply, Send and Mark as unread by their names.
  • It reads the Primary tab only, at most 3 new mails per look, and nothing older than 2 days.
  • A narrow Chrome window appears at the screen edge for a few seconds per look. Now and then it takes the keyboard for a moment and gives it back.
  • Through the relay, an Autopilot button you press reaches the PC within about a minute.
  • The model can misjudge a mail. The rules above hold whatever it says, and Show me first removes the risk.

Develop

python -m unittest discover -s tests -t .     # unit and server tests, no Outlook needed (the relay tests need Node)
python scripts/e2e.py                         # real browser against the demo mailbox (needs playwright)
python scripts/sync_docs.py                   # copy titip/web into docs/ for the public demo
python scripts/check_outlook.py               # on the PC: what 0.9.0 to 0.16.0 added, against the real Outlook, reading only

The pairing code is adapted from Cairn by the same author.

MIT License.

About

Read, answer and write your Outlook mail from your phone, served by your own PC, on your network or from any network through a relay that only holds ciphertext. Autopilot answers the safe Gmail on its own. Updates itself.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages