-
Notifications
You must be signed in to change notification settings - Fork 1k
Contact management
Contacts are stored on disk as RFC6350 compliant VCARDs.
Base code for Contacts is in mailpile/plugins/contacts.py
- VCARD Importer
- Mork Importer
- CardDAV Importer
- GnuPG Contact Importer
- Google Contacts
Modulo some complexity, import + export = syncrhonization. Let's get import working first.
We want to make sure there's no crud in some fields, because we expect those fields to be actionable. Field validators may therefore be useful.
Not done:
- E-mail field
- Website field
- ...?
A context provider is an import filter which, when provided with certain information about a contact, extracts useful context about the contact to deepen the user's understanding of what the user is doing. This is a slightly creepy feature, but actually fairly reasonable to implement as long as it's primarily using public info or info that is otherwise available to the Mailpile user in question. Heck, it might even encourage people to think a bit more about privacy...
Not done:
- ...
-
register_contact_importer(importer)
- importer is subclass ofContactImporter
. -
register_contact_exporter(exporter)
- exporter is subclass ofContactExporter
. -
register_contact_field_validator(field, validator)
- field is string, validator is subclass ofContactFieldValidator
. -
register_contact_context_provider(provider)
- provider is subclass ofContactContextProvider
.