Fetch mail from other mailboxes (including KULeuven mail)

The fetchmail program offers POP and IMAP client facilities from your UNIX account: it can query POP/IMAP-servers and fetch new (or all) mail to your local account.

To fetch mail from your account bobby04 on mailserver mail.server.com using fetchmail, you could use

fetchmail -u bobby04 mail.server.com

Options include keep mail on server (-k), non-default remote mailfolder, mailport or smtpserver specification, maximum message size, etc. These options can also be stored in a configuration file (~/.fetchmailrc). man fetchmail explains this in detail.
For KULeuven mail you can store this configuration in ~/.fetchmailrc:

poll .kuleuven.be proto imap
    user  
    with pass "<password>" is "<ulyssis-userid>" here no keep ssl fetchall

Make sure it's unreadable for others, as it contains your KULeuven password:

chmod 600 ~/.fetchmailrc

To run fetchmail every day at 5 o'clock, run crontab -e and add a line:

0 5 * * * fetchmail