apsend

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: ISC Imports: 15 Imported by: 0

Documentation

Overview

Command apsend reads a mail message from the standard input and disposes of it based on the provided recipient addresses.

Its usage is:

apsend [ -F ] [ -t ] rcpt ...

Messages are disposed of in one of two ways:

  • If the recipient refers to a local user, the message is appended to their local mailbox.
  • If the recipients refers to a remote user or collection, the message is sent via ActivityPub to each recipent's corresponding Actor inbox.

Local recipients are addrsessed as a plain username such as "otl". Remote recipients are addressed as an email address, such as "mort@novum.streats.dev" or "otl+followers@hachyderm.io".

apsend is not intended to be executed directly by users. Usually it is executed as a mailer by a SMTP server like [apsubmit], or by a server which receives ActivityPub activities for local recipients like [apserve].

The flags understood are:

  • *-F* File a copy to the sender's mailbox.

  • *-t* Read recipients from the To: and CC: lines of the message.

Example

Given the following message in the file greeting.eml:

From: otl@apubtest2.srcbeat.com
To: otl@hachyderm.io

Hello, Oliver!

Send it with the following command:

apsend otl@hachyderm.io < greeting.eml

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL