Repository navigation
v0.7.0 — Selection Rules, Advanced Search Filters, Ingestion and Indexing Reliability #544
weishest
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This release adds selection rules, which let an ingestion source archive only selected mailboxes, folders and tags. It also adds separate Cc and Bcc filters to advanced search, shows the archive time on each email, and corrects several cases where IMAP sources skipped email and where one email stopped the indexing worker.
Highlights
Selection rules
Until now, an ingestion source archived everything it could reach. A source can now be narrowed down with selection rules, which are set under Advanced Options when a source is created or edited, or through the
selectionRulesfield of the API.A pattern can be a plain name, a name with the wildcards
*and?, or a regular expression written between two slashes. Regular expressions run on the RE2 engine, so a pattern cannot slow a sync down, and a pattern that RE2 does not support is refused when the source is saved. An exclude pattern always wins over an include pattern.Rules apply from the next sync onwards and never delete mail that is already in the archive. After each sync, the status message of the source says how many mailboxes were skipped and why.
The selection rules guide describes every option, including how Gmail labels are checked and what happens when rules are changed later. This feature answers the requests in #53, #211 and #331.
Cc and Bcc filters in advanced search
The To (recipient) filter matches an address in To, Cc or Bcc together. Advanced search now has separate Cc and Bcc filters that check only that one field, which makes it possible to find, for example, the emails where a person was only copied. The same filters are available on
GET /v1/searchasccandbcc.These two filters accept exact addresses only. A value that contains
*is refused, because the index stores the wildcard parts for To, Cc and Bcc together and cannot tell the fields apart. Mail that is already indexed does not need to be indexed again.The archive time is shown on each email
The email page showed only when an email was sent. It now also shows when the email was archived, next to the sent time and in the date format chosen in System Settings. The two differ for imported old mail and for mailboxes that synced late, and until now the page gave no way to tell.
Ingestion
UIDVALIDITYvalue is now stored with the position, and the folder is scanned again when the value changes. Mail that is already in the archive is not archived twice (Inbox is not being loaded after domain migration #525).Content-Type: ;made the email fail, and the email was not archived (stripNullBytesFromEmailthrows "value.replace is not a function" for attachments with an empty Content-Type #509).organizationsendpoint, which Microsoft refuses for a single-tenant app registration with the errorAADSTS50059. The form has a new optional Directory (Tenant) ID field for this case (Microsoft work or school OAuth device flow fails with AADSTS50059 in v0.6.1 #503).Search and indexing
INDEXING_PARSE_TIMEOUT_MSvariable.Deployment and operations
[api]and[frontend](fix(docker): restart the API and frontend when either process dies #530).INDEXING_PARSE_TIMEOUT_MS. It sets the base time allowed to parse one email for indexing. The default is60000(60 seconds), and 2 seconds are added for every megabyte of the email. The minimum is1000.Upgrade notes
MailboxSettings.Readapplication permission, with admin consent, on the app registration. Without it, a source that uses these options holds back the affected mailboxes, shows the Error status and names the missing permission in its status message. Sources that do not use these options are not affected. The Microsoft 365 guide lists the permission.Contributors
stripNullBytesFromEmailthrows "value.replace is not a function" for attachments with an empty Content-Type #509)Thanks to everyone who reported the issues that shaped this release.
Full Changelog: v0.6.2...v0.7.0
This discussion was created from the release v0.7.0 — Selection Rules, Advanced Search Filters, Ingestion and Indexing Reliability.
All reactions