[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] reporting of argument errors doesn't identify src, I

From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] reporting of argument errors doesn't identify src, In-reply-to: Your message of Mon, 21 Apr 2003 15:26:11 -0400 <address@hidden>
Date: Tue, 22 Apr 2003 14:28:48 +0300

>       :mailer --mailer=smtp://smtpmail.certicom.com address@hidden 

It is an error: --email-addr does not belong to the "mailer" option
group. It should have been:

:mailer --mailer=smtp://smtpmail.certicom.com
:address address@hidden 

Sieve uses "mailer" group but does not use "address", that's why it
choked on --email-addr. Ideally the mu_argp stuff should check the
contents of each group declaration *before* adding it to the command
line, this would allow to catch such errors earlier.

> Also, perhaps
> the documentation for an argument should mention the group?

Good idea, but I'm afraid that would make help output too
verbose. It's better to mention the group once, in the header, e.g.:

$ mail.remote --help
Address options (group :address)
  -D, --email-domain=DOMAIN  Set domain for unqualified user names
                             (default is this host)
  -E, --email-addr=EMAIL     Set current user's email address (default
                             is address@hidden)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]