maddr1
Extract mail addresses from messages
Usage
maddr [-ad]
[-h
headers]
[msgs ...]
Overview
maddr prints, separated by newlines, all mail addresses found in the headers of the specified msgs. (See mmsg(7) for the message argument syntax.)
If no msgs are specified and maddr is used interactively, maddr will operate on the current sequence by default. Otherwise, maddr will read filenames from the standard input.
The options are as follows:
-
-a -
Only print the addr-spec address, not the display name.
-
-d -
Only print the display name.
-
-h headers -
Only search the colon-separated list of headers for mail addresses. Default: ‘from:sender:reply-to:to:cc:bcc:’ and their respective ‘resent-’ variants, if any.
Exit status
The maddr utility exits 0 on success, and >0 if an error occurs.
Releases
4 releases since Debian 10 (Buster); the text changed 1 time.
-d since Debian 11 (Bullseye).