Re: Getmail for many users
Mike Mildner <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
sure, a for loop will do things right. But you must call (and maintance) all rcfiles seperatly. Is there a way to but all together in one rc file? > Charles Cazabon <[email protected]> hat am 9. März 2019 um 15:42 geschrieben: > > > 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/ > ----------------------------------------------------------------------- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >