Difference between revisions of "Mailutils wicket"
m |
|||
Line 21: | Line 21: | ||
As you see, even in that case the tool hides the actual password part by replacing it with three asteriscs. If you are working in a secure environment, you can tell <tt>mailutils wicket</tt> to show passwords as well, by giving the <tt>-v</tt> option twice. | As you see, even in that case the tool hides the actual password part by replacing it with three asteriscs. If you are working in a secure environment, you can tell <tt>mailutils wicket</tt> to show passwords as well, by giving the <tt>-v</tt> option twice. | ||
− | + | The counterpart of <tt>--verbose</tt> is the <tt>--quiet</tt> (<tt>-q</tt>) option, which instructs <tt>wicket</tt> to suppress any output, excepting error messages. This can be used in scripts, which analyze the <tt>mailutils</tt> exit code to alter the control flow. | |
The <tt>mailutils wicket</tt> tool exits with code 0 if all URLs were matched and with code 1 if some of them were not matched in the ticket file. If an error occurred, the code 2 is returned. | The <tt>mailutils wicket</tt> tool exits with code 0 if all URLs were matched and with code 1 if some of them were not matched in the ticket file. If an error occurred, the code 2 is returned. |
Latest revision as of 12:08, 8 February 2016
The mailutils wicket command looks up matching URLs in the Mailutils ticket file (by default, ~/.mu-tickets) and prints them. The URLs to look for are supplied in the command line.
Consider the following ticket file as an example:
smtp://foo:bar@* smtp://bar:baz@gnu.org *://baz:qux@* *://quux:bar@gnu.org
Now, running mailutils wicket smtp://bar@gnu.org will show:
smtp://bar@gnu.org: /home/user/.mu-tickets:2
which means that this URL matches the line 2 in your .mu-tickets file. The wicket command does not show the actual matching line to avoid revealing eventual security-sensitive information. You can instruct it to do so using the --verbose (-v) option:
$ mailutils wicket -v smtp://bar@gnu.org smtp://bar@gnu.org: /home/user/.mu-tickets:2: smtp://bar:***@gnu.org
As you see, even in that case the tool hides the actual password part by replacing it with three asteriscs. If you are working in a secure environment, you can tell mailutils wicket to show passwords as well, by giving the -v option twice.
The counterpart of --verbose is the --quiet (-q) option, which instructs wicket to suppress any output, excepting error messages. This can be used in scripts, which analyze the mailutils exit code to alter the control flow.
The mailutils wicket tool exits with code 0 if all URLs were matched and with code 1 if some of them were not matched in the ticket file. If an error occurred, the code 2 is returned.