[comm]

Communications

Generic, counterparty-agnostic communication log: address book (lists, contacts, endpoints) and an outbound/inbound message store across channels. Depends on nothing — business modules (crm, fin, wms) reach it through the parties-comm bridge or a raw source pointer.

In Ihrem Workspace ausprobierenkostenloser Workspace · Installation erst nach Ihrer Bestätigung

v0.2.2 · 39 installationen · free

What it does

comm is the address book and message log for everything your business says to people outside it. Contacts own their email addresses, phone numbers and messenger handles. Every message is stored once, with its status, and can point back to the record it was about, such as an invoice or a quote.

Other modules can send email without building their own mail plumbing: they insert a message row, and comm delivers it.

Highlights

  • Address book that works like an address book - a contact owns its contact points (email, SMS, WhatsApp, Telegram, phone) and you edit them directly on the contact card. No separate endpoint registry to maintain.
  • Lists - group contacts into Shared, Personal or Synced lists.
  • Unknown senders are kept - a message from an address that matches no contact is stored with an unlinked contact point, so it can be linked to a contact later.
  • One message log - outbound and inbound messages across channels, with status (Queued, Sent, Delivered, Received, Failed, Bounced), attempt count, last error and threading fields (thread_id, in_reply_to).
  • Link to any record - a message carries the entity code and record id it relates to, so a reply to an invoice mail can be traced back to the invoice. This works without comm knowing the other module.
  • Queued email sending - any module queues an email by inserting a message. A scheduled job hands queued mail to the platform mailer every minute, and Send Now sends one immediately.
  • Format checks - contact points are validated by channel (email format, phone format) and a contact cannot hold the same point twice.
  • Inbox view - inbound messages, newest first.

Scheduled job

dispatch_messages runs every minute and sends up to 10 queued email messages per run, oldest first. It writes the resolved recipient, status, send time and attempt count back to each message.

Sending email from another module

Sending is an insert, from any action:

insert('comm.message', {
	channel: 'email',
	direction: 'out',
	to_addr: 'ap@acme.example',        // status defaults to 'queued'
	subject: 'Invoice ' + [invoice_no],
	body_html: html,
	source_entity_cd: 'fin.invoice',
	source_record_id: [invoice_id]
})

Typing a message by hand in the Messages grid queues it the same way. The recipient is to_addr, or the address of the linked to_point when to_addr is empty.

Not included yet:

  • Sent means handed to the platform mailer; a delivery failure at the mail server is not reported back to the message.
  • Mail goes out through the platform's mail configuration. channel_account records the sender identity but does not yet drive the transport.
  • Attachments are stored but not sent.
  • Only email is sent. Messages on other channels stay queued.
  • Inbound mailbox polling is not built; inbound messages are entered or loaded by other means.

Demo data

2 contact lists, 4 contacts with 8 contact points, one email channel account and 4 messages: a sent quote, a threaded reply, an unmatched inbound message and a failed one.

Communications
Testen
/ mehr entdecken

Durchstöbern Sie den
Modulkatalog.

Jedes Modul ist Metadaten — mit einem Klick installieren, dann alles ändern.