I'm trying to do some integration between Drupal and a webmail client and I want to call a Drupal function from a PHP file that is part of the webmail client. In this case, the function I want to call is provided by a contrib module, but I'm assuming that won't matter.
So, if I have a non-Drupal page called mail_login.php and want to call Drupal's foo_bar() method, how can I do that?