That's what I referenced above, but the link didn't post, I guess. Anyway, it works great!Also, there's a community script (referenced on the feature request) available on the following GitHub page you may want to try instead:
loweryaustin/cpanel-squirrelmail-exporter
Can you let me know if this script is more useful?
-Pete