Editing scripts
Select a server, then a script. The editor highlights the Sieve syntax and checks the script while you type. Suggestions while typing, placeholders, templates and the vacation assistant are described in Editor assistance; the list view of a script’s rules in Editing rules.



Line numbers and the current line
Line numbers appear left of the script on Mac, iPad and iPhone; the number of the line with the cursor is emphasized. The toolbar button Hide Line Numbers / Show Line Numbers switches them; the choice is kept on each device. The line with the cursor is highlighted across the editor’s width. Go to Line (⌘L) and choosing a problem in the problems panel scroll to the line and let it light up for a moment. VoiceOver reads the line numbers as “Line 12 of 450”.
Invisible characters
Show invisible characters marks tabs (→), spaces (·), line breaks (¬), no-break spaces (°) and other control characters (¤) in a faint color. The marks are only drawn, never written into the script. Switch them in Settings › Editor, in the View menu on the Mac, or in the editor’s More menu on iPhone and iPad. The setting syncs across your devices.
Problems and quick fixes
Errors and warnings are underlined. The status bar below the editor counts them; select it (Mac: ⇧⌘M) to open the
Problems list, and select a problem to jump to it. After a short pause in typing the list opens by itself when
the script has errors. Some problems offer a quick fix, e.g. adding a missing require for an extension.
The check knows the extensions your server announced, so it flags commands your server does not support. Check on Server (⇧⌘K) lets the server check the script, too, without uploading it.



Indentation: tabs or spaces
Settings › Editor › Indent with chooses Tabs or Spaces, and Indentation width sets how many columns one level takes (1–8; tabs are shown that wide). Tab inserts one level (with several lines selected it indents them), Shift-Tab outdents the selected lines, and Return keeps the indentation of the line — always in the chosen kind.
The status bar shows how the script is actually indented: Tabs, 4 Spaces or Mixed. Click it to convert the script (or only the selected lines) to tabs or spaces, or to open the indentation settings; the same commands are in Editor › Convert Indentation on the Mac and in the More menu on iPhone and iPad. Lines that mix tabs and spaces, or a script that uses the other kind than your setting, get a hint in the problems panel with a quick fix. Nothing is converted on its own, and the text of a vacation message is never changed.
Format (⌃⌘I) indents the script consistently, also in the chosen kind.
Find and replace, Go to Line
- Find (⌘F) searches the script; the find bar also replaces.
- Go to Line (⌘L) jumps to a line number. The status bar shows the line and column of the cursor.
Drafts
Every change is kept as a local draft on this device, also after you quit the app. A pencil in the script list marks scripts with local changes. The draft is gone once the script is uploaded.