Previous: Direct Linking, Up: libmu_scm
Dynamic linking is the preferred method of using libmu_scm. It uses Guile “use-modules” mechanism. An interface module mailutils.scm is provided in order to facilitate using this method. This module is installed in the package data directory (by default it is prefix/share/mailutils). A sample use of this module is:
(set! %load-path (list "/usr/local/share/mailutils")) (use-modules (mailutils)) # Now you may use mailutils functions: (let ((mb (mu-mailbox-open "/var/spool/mail/gray" "r"))) ...
Note, that you should explicitly modify the %load-path
before calling use-modules
, otherwise Guile will not be able to
find mailutils.scm.