#71 postgres support for fetchmail.pl

closed-accepted
nobody
None
5
2009-04-09
2009-04-09
johker
No

Adds support for postgreSQL to fetchmail.pl by adding a variable "$backend" to determine what type of database backend is used. According to this variable the DSN and SQL-statement is changed to be compatible with the backend.
NB: This is just some quick and dirty code, but hey, it works :-)

Discussion

  • johker
    johker
    2009-04-09

    fetchmail.pl featuring postgreSQL support

     
    Attachments
    • status: open --> closed-accepted
     
  • I'd propose to use $db_type instead of $backend to have a common variable name across all scripts. And while I'm on it, I'll add support for using a /etc/mail/postfixadmin/fetchmail.conf ;-)

    Commited to SVN r619.

    johker, thanks for your patch!
    One small note: If possible, please use the unified diff format ("diff -u") for future patches - they are more readable. (No need to re-submit this patch.)