Re: Getmail for many users

Charles Cazabon <[email protected]>
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
Mike Mildner <[email protected]> wrote:
> 
> is there another way to get mails from extern ISP for 'many' Users?

I have posted example "scripts" (they're just shell one-liners...) to do this
in the past several times.  I also believe the Debian (and therefore probably
Ubuntu as well) packages include a script that does this.

A fancier script like this will do it too, and is more readable:

  #!/bin/sh
  rcs=""
  cd /path/to/rcfiles
  for file in * ; do 
    rcs="$rcs -r $file"
  done
  exec getmail $rcs "$@"

That will pass any cmdline options you give the script through to getmail
along with -r options for each file in the directory specified.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:               http://pyropus.ca/software/
-----------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.