about summary refs log tree commit diff
NOTEMAP(1) General Commands Manual NOTEMAP(1)

notemap, git-notemapmirror notes to IMAP

notemap [-afvw] [-M mailbox] [-h host] [-m file] [-p port] user [file ...]

git notemap [-afv] [-M mailbox] [-h host] [-m file] [-p port] [-u user] [file ...]

The notemap utility mirrors text notes to an IMAP mailbox appropriate for display by the Apple Notes application. Files are mapped to IMAP messages using a map file, by default .notemap in the current directory. If no files are specified, all mapped files are mirrored. New files are added to the map file using -a.

IMAP over TLS is assumed. The IMAP host and port are automatically discovered through SRV record lookup on the domain portion of user. The password is read from /dev/tty, or standard input if -w is used.

The git-notemap wrapper uses git-config(1) and gitcredentials(7) for defaults and authentication.

The arguments are as follows:

mailbox
Mirror notes to mailbox. The default is .
Add new notes to the map file.
Overwrite modified notes in the mailbox.
host
Connect to IMAP on host.
file
Set the path of the map file. The default is .notemap.
port
Connect to IMAP on port.
Log IMAP protocol to standard error.
Read the password from standard input.

The git-notemap wrapper loads defaults from the following git-config(1) options: notemap.imapServer, notemap.imapServerPort, notemap.imapUser, notemap.imapPass, notemap.imapMailbox, notemap.mapFile. If notemap.imapPass is unset, the password is obtained through gitcredentials(7).

notemap -a june@causal.agency note.txt
git config notemap.imapUser june@causal.agency
git notemap note.txt

June McEnroe <june@causal.agency>

Notes are assumed to be plain UTF-8 text with LF line endings.

Send mail to <list+notemap@causal.agency> or join #ascii.town on irc.tilde.chat.

December 16, 2020 OpenBSD 7.4