Install paclink-unix
- Configure a single MTA
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
plu:use_cases [2016/09/24 10:36] gunn [Use Case 1: command-line movemail client] |
plu:use_cases [2016/09/25 15:20] gunn [Use Case 1: command-line movemail client] |
||
---|---|---|---|
Line 25: | Line 25: | ||
the command line ie. [[wp>Mail_(Unix) | Mail]] & [[wp>Mutt_(e-mail_client) | Mutt]]. | the command line ie. [[wp>Mail_(Unix) | Mail]] & [[wp>Mutt_(e-mail_client) | Mutt]]. | ||
- | * //mutt// and //mail// programs have similar syntax for the basic operation | + | * Examples using [[plu:email_client_config#mutt_and_mail]] in scripts or command line. |
- | * //mutt -x// will emulate the mailx compose mode | + | |
- | * Example using //mail// program | + | |
- | * **NOTE**: winlink mail is picky about the "From:" & "Reply-To:" fields so you need to set them explicitly | + | |
- | === mail example === | ||
- | <code> | ||
- | # send content of a file in body of e-mail | ||
- | mail -s "//WL2K your subject line here" -a "From: yourcallsign@winlink.org" -a "Reply-To: yourcallsign@winlink.org" someonescallsign@winlink.org someregularemailaddress < file_name_of_content | ||
- | </code> | ||
- | * Note in the example below you must use single quotes in the -s subject argument because of the forward slashes | ||
- | <code> | ||
- | # from command line or script | ||
- | echo “This will go into the body of the mail” | mail -s '//WL2K cmd line test' -a "From: yourcallsign@winlink.org" -a "Reply-To: yourcallsign@winlink.org" some_regular_email_address | ||
- | </code> | ||
- | === mutt example === | ||
- | * modify //.muttrc// with these entries | ||
- | * The //.muttrc// file lives in your home dir | ||
- | <file> | ||
- | hdr_order date from to cc subject | ||
- | set use_from=yes | ||
- | set realname ="Your Real Name" | ||
- | set from=yourcallsign@$hostname | ||
- | my_hdr Reply-To: yourcallsign@winlink.org | ||
- | </file> | ||
- | |||
- | * //mutt -c// allows specifying Carbon Copy addresses | ||
- | * Blind Copy (Bcc:) does not work in winlink e-mail | ||
- | <code> | ||
- | # send content of a file in body of e-mail | ||
- | mutt -s "put subject line here" you@youremailid.com someoneelse@whatever.com < file_name_of_content | ||
- | </code> | ||
- | |||
- | === Install mutt and mail === | ||
- | |||
- | <code> | ||
- | apt-get install mutt | ||
- | </code> | ||
- | |||
- | <code> | ||
- | <apt-get install mailutils | ||
- | </code> | ||
===== Use Case 2: GUI or command line movemail client ===== | ===== Use Case 2: GUI or command line movemail client ===== | ||