This is an old revision of the document!


paclink-unix Use Cases

Description of using paclink-unix that all use different mail clients but the transport mechanism is the same. All Winlink mail clients have the same 2 step operation. On the send side you compose a message and deposit it to a directory then you invoke a transport mechanism to send messages. For paclink-unix the transport mechanisms are telnet (wl2ktelnet) for sending over the Internet, radio (wlk2kax25) for sending via a TNC to your radio & serial (wl2kserial) for sending via a Pactor modem to your radio. The receive process is just the reverse, invoke the transport mechanism then view your messages.

Use Case 1: command-line movemail client

I run a number of RMS Gateways & I would like to know if they are up & working on a daily basis. Once a day around midnight a cron job runs a script that parses the RMS Gateway log file and pulls out the call signs of everyone that successfully connected to that gateway. The script takes that information and Winlink mails it to my SMTP e-mail address.

For this case, since I am using a script, everything runs from a command line. Linux offers a number of choices of composing e-mail via the command line ie. Mail & Mutt.

  • mutt and mail programs have similar syntax for the basic operation
    • 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
# send content of a file
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
  • Note you must use single quotes in the subject line because the get # 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>

  • Example using mutt program
mutt -s "put subject line here" you@youremailid.com someoneelse@whatever.com < file_name_of_content
# mutt -c allows specifying Carbon Copy addresses
  • Install mutt:
apt-get install mutt
  • Install mail:
<apt-get install mailutils

Use Case 2: GUI or command line movemail client

I am at my workstation & I need to send a message out to the group. In this case I have a choice of e-mail clients but they have a requirement of being able to handle Unix movemail. Mozilla_Thunderbird, dtmail, the webmail client Neomail and console based clients pine, elm & mutt all satisfy that requirement. In this case you can use any mail client that supports movemail to compose & receive messages, the transport mechanism remains the same.

Use Case 3: GUI IMAP client

I am in the living room controlling my MythTV box with my Android pad and I want to use a mail client on that pad to send a winlink mail message. In this case the mail client does not support movemail but it does support IMAP or POP3. You need to install & configure a Mail Transfer Agent or “mail server” on the same machine that hosts AX.25 and paclink-unix. I use the Android K-9 mail program to compose the messge on my pad and a very simple web app to invoke either wl2ktelnet, wl2kax25 or wl2kserial on the remote machine. The way I have this set up I could be in my living room or in a hotel room in another city.

plu/use_cases.1474735540.txt.gz · Last modified: 2016/09/24 09:45 by gunn
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0