[vchkpw] Feature request for vaddaliasdomain

2003-09-24 Thread Paul L. Allen

A feature request for vaddaliasdomin.  I would like a configure option 
(best) or a command-line switch (not so good) that reverses the order of
the two arguments.  I'd like it for two reasons:

  1) It is then the same order as for ln (original, alias) so easier to
  remember if they're that way around.

  2) We get clients who register lots of domain names and want them
aliased.
  After the first vaddaliasdomain I can up-arrow to recall the command but
  then I have to left-arrow over the original domain (a pain if the network
  in between me and the server is bursty because it's easy to overshoot) so
  I can modify the alias domain.  Reversing the order of these two would
  greatly cut down the number of times I have to left-arrow.

Obviously it would have to default to the old behaviour, but those of us
who knew of it could take advantage of it.

-- 
Paul Allen
Softflare Support




RE: [vchkpw] Feature request for vaddaliasdomain

2003-09-24 Thread webmaster
If you do this often enough, why not just write a simple little shell script
to accomplish this:

Say you have 100 domains you need to alias to 1.
Put this 100 domains in a text file - one per line.
Write a perl script to take in 2 arguments, the main domain name and the
file with all the domains to be aliased.

parse the file and run the vaddaliasdomain.

This will save you even more time since you do not have to left-arrow or
backspace at all.

Lu

 -Original Message-
 From: Paul L. Allen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 24, 2003 9:16 AM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] Feature request for vaddaliasdomain
 
 
 
 A feature request for vaddaliasdomin.  I would like a 
 configure option 
 (best) or a command-line switch (not so good) that reverses 
 the order of the two arguments.  I'd like it for two reasons:
 
   1) It is then the same order as for ln (original, alias) so 
 easier to
   remember if they're that way around.
 
   2) We get clients who register lots of domain names and 
 want them aliased.
   After the first vaddaliasdomain I can up-arrow to recall 
 the command but
   then I have to left-arrow over the original domain (a pain 
 if the network
   in between me and the server is bursty because it's easy to 
 overshoot) so
   I can modify the alias domain.  Reversing the order of 
 these two would
   greatly cut down the number of times I have to left-arrow.
 
 Obviously it would have to default to the old behaviour, but 
 those of us who knew of it could take advantage of it.
 
 -- 
 Paul Allen
 Softflare Support
 
 




Re: [vchkpw] Feature request for vaddaliasdomain

2003-09-24 Thread Tom Collins
On Wednesday, September 24, 2003, at 09:16  AM, Paul L. Allen wrote:
A feature request for vaddaliasdomin.  I would like a configure option
(best) or a command-line switch (not so good) that reverses the order 
of
the two arguments.  I'd like it for two reasons:
What if it was automatic?

vaddaliasdomain x.com y.com

If both x.com and y.com exist, exit with an error.
If x.com exists, make y.com an alias to it.
If y.com exists, make x.com an alias to it.
If neither exists, exit with an error.
It shouldn't be difficult to do -- you can use vget_assign() to see if 
the domain exists.

--
Tom Collins
[EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] Feature request for vaddaliasdomain

2003-09-24 Thread Anders Brander
Hi,

On Wed, 2003-09-24 at 23:31, Tom Collins wrote:
  A feature request for vaddaliasdomin.  I would like a configure option
  (best) or a command-line switch (not so good) that reverses the order 
  of the two arguments.  I'd like it for two reasons:
 What if it was automatic?

A bit odd to document, but otherwise a fabulous idea.

 vaddaliasdomain x.com y.com
 
 If both x.com and y.com exist, exit with an error.
 If x.com exists, make y.com an alias to it.
 If y.com exists, make x.com an alias to it.
 If neither exists, exit with an error.
 
 It shouldn't be difficult to do -- you can use vget_assign() to see if 
 the domain exists.

Please see SF Patch 812150 - It does exactly what you proposed here.
http://sourceforge.net/tracker/index.php?func=detailaid=812150group_id=85937atid=577800

/Anders