1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
|
<HEAD>
<TITLE>EMIL version 2 TUTORIAL</TITLE>
</HEAD>
<BODY>
<H1>TUTORIAL FOR EMIL VERSION 2.1
</H1>
<EM>Written by Martin Wendel, ITS, Uppsala university.
Martin.Wendel@its.uu.se
</EM>
<HR>
<A HREF=configuration.html><IMG ALIGN=MIDDLE SRC=arrow_right3.gif></A><A HREF=main.html><IMG ALIGN=MIDDLE SRC=arrow_up2.gif></A><A HREF=control.html><IMG ALIGN=MIDDLE SRC=arrow_left3.gif></A>
<H2>COMMAND LINE ARGUMENTS
</H2>
<H3>Address specification arguments:
</H3>
<DIR>
<LI> -r <address> The address of the recipient.
<LI> -s <address> The address of the sender.
<LI> -x <hostname> The name of the recipient host.
</DIR>
<P>
The address specifications are used when you want to redirect output
to a program such as /bin/mail or sendmail. The usage of these addresses
is as arguments to the execv of the program. They are also used to
lookup sender and recipient information such as format and encoding etc.
Emil does not rewrite addresses, so beware the address format you use.
<H3> Target Group specification
</H3>
<DIR>
<LI> -G <group> The target conversion group.
</DIR>
<p>
The target group specification is used when you want Emil to act according
to a conversion profile specified in emil.cf. The conversion profile should be
specified in emil.cf using the group command (see the documentation of
emil.cf).
<H3> Format, Encodings and Charsets
</H3>
<DIR>
<LI> -A <appletype> The target applefile encoding style.
<LI> -B <encoding> The target binary encoding style.
<LI> -C <charset> The target charset.
<LI> -F <format> The target format.
<LI> -H <encoding> The target header encoding style.
<LI> -S <charset> The sender's charset.
<LI> -T <encoding> The target text encoding style.
</DIR>
<H4>Legal values</H4>
<UL>
<LI><appletype> One of:
<UL>
<LI> (s) AppleSingle
<LI> (d) AppleDouble
<LI> (b) BinHex
</UL>
<LI><format> One of:
<UL>
<LI> (MIME) MIME - MIME message format.
<LI> (MAILTOOL) Mailtool - SUN Mailtool message format.
<LI> (RFC822) RFC822 - Plain old style RFC822 message format.
<LI> (TRANSPARENT) Pass through the message as it is, without conversion.
</UL>
<LI><encoding> Choose between:
<UL>
<LI> (7) 7bit - 7bit encoding (if text or header, converts to US-ASCII).
<LI> (8) 8bit - 8bit encoding.
<LI> (s) se - convert to national variant of ASCII (for type text and header only).
<LI> (bi) binhex - BinHex encoding.
<LI> (u) uuencode - UUencode encoding.
<LI> (ba) base64 - Base64 encoding.
<LI> (q) quoted-printable - Quoted-Printable.
</UL>
<LI><charset> Any charset name as defined in rfc1345.
</UL>
<P>
It is possible to explicitly specify the format, encoding or charset of the
target message on the command line. If done, the lookup for this
information in the configuration file is disabled. Therefore, make sure
to <EM>apply a complete specification of the format and encoding features</EM> using
these arguments, if one of them is omitted the value of that feature will
be set to the default value.
<P><EM>The specification of the sender's charset will not override the charset
specification of a MIME or Mailtool message.</EM> Therefore this is really only
used when converting an old style RFC822 message.
<H3> Logging and Debug
</H3>
<DIR>
<LI> -d Debug output on stderr.
<LI> -f <facility> The log facility of syslog logging.
<LI> -h <level> The log level of header logging.
<LI> -l <level> The log level of syslog logging.
</DIR>
<H4>Legal values</H4>
<UL>
<LI><facility> Choose between:
<UL>
<LI> m - LOG_MAIL
<LI> d - LOG_DAEMON
<LI> 0 - LOG_LOCAL0
<LI> 1 - LOG_LOCAL1
<LI> 2 - LOG_LOCAL2
<LI> 3 - LOG_LOCAL3
<LI> 4 - LOG_LOCAL4
<LI> 5 - LOG_LOCAL5
<LI> 6 - LOG_LOCAL6
<LI> 7 - LOG_LOCAL7
</UL>
<LI><level> Choose between:
<UL>
<LI> 1 - LOG_ERR
<LI> 2 - LOG_NOTICE
<LI> 3 - LOG_INFO
<LI> 4 - LOG_DEBUG
</UL>
</UL>
<P>Logging and debug is controlled using the above command line arguments.
<H4> Configuration files
</H4>
<DIR>
<LI> -c <path> Path of charsets file.
<LI> -e <path> Path of configuration file.
</DIR>
<P>It is possible to explicitly specify the path of the configuration
or charsets files. If not specified, the default paths will be used.
<H4> I/O Specifications
</H4>
<DIR>
<LI> -i <path> Path of input file.
<LI> -m <mailer> The program to which to pipe output (see the configuration file).
<LI> -n Pipe output to the builtin SMTP client.
<LI> -o <path> Path to output file.
<LI> -p Add pseudo route to recipient address.
<LI> -u Wants UNIX style from line.
</DIR>
<P>Input/Output is controlled by command line arguments and this applies for
the SMTP client and the redirect of output to arbitrary programs aswell. When
using the builtin SMTP client, an SMTP connection to the <EM>recipient host</EM> (as
specified by the command line arguments) will be opened. In the SMTP
conversation, the specified <EM>sender</EM> and <EM>recipient</EM> addresses will be used.
<B>Therefore, make sure (when using this) that you have specified all three of
these arguments.</B>
<H4> Miscellaneous
</H4>
<DIR>
<LI> -g Return group match.
<LI> -v Print out version.
</DIR>
<P>It is possible the get information from Emil using the above flags.
These arguments disables all other activities and should be used
for testing purposes only. Emil will print the desired information and then exit.
<HR>
<A HREF=configuration.html><IMG ALIGN=MIDDLE SRC=arrow_right3.gif></A><A HREF=main.html><IMG ALIGN=MIDDLE SRC=arrow_up2.gif></A><A HREF=control.html><IMG ALIGN=MIDDLE SRC=arrow_left3.gif></A>
<hr size="4" noshade>
<ADDRESS>
<table WIDTH="95%">
<td>
March 1996<p>
<B>ITS Uppsala university</B><BR>
Box 887<BR>
751 08 Uppsala<BR>
SWEDEN<P>
</td>
<td ALIGN="right" VALIGN="middle">
<a href="mailto:Martin.Wendel@its.uu.se">Martin Wendel</a>
</td>
<td ALIGN="left" VALIGN="middle">
<a href="mailto:Martin.Wendel@its.uu.se">
<IMG border="0" SRC="binpobox.gif" ALT="E-Mail: "></a>
</td>
</table>
</ADDRESS>
</body>
</html>
|