* Guile + mailutils
@ 2004-06-03 14:18 Chris Hall
2004-06-04 2:48 ` Chris Hall
0 siblings, 1 reply; 3+ messages in thread
From: Chris Hall @ 2004-06-03 14:18 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1740 bytes --]
I recently ran across, downloaded, built and installed the GNU Mailutils
- they rock! Of course, I *was* already using 'mbox' for my mailboxes
anyway. ;-D
(I'm posting his here because they don't seem to even have a 'user'
mailing list, and their 'devel' had nothing I found helpful. Plus, this
where all _real_ guile hackers are, anway, right?)
They provide functions to open and manipulate IMAP, POP and local mail
spools, read, filter, dispose of, etc. messages: 'fetchmail' and
'procmail' all in one cool scheme-y package - woot!
They seem to have made one design decision that I find a bit puzzling -
there appears to be no way to run their executable 'guimb' (GUIle
MailBox?) interactively - if you try, it prints a message saying that
'one of -fecs' is required. '-fecs' is
'file/expression/command/script'.
I find this puzzling, since how is one to debug scripts, using 'write'
statements? Heh. It *is* after all, one's email being processed, so
shouldn't one be as careful as possible?
Never mind how much faster interactive development is, esp. using Emacs
or something as the 'IDE'.
So, does anyone know a of a straightforward way to get mailutils
available from a guile prompt, or am I hoping against hope?
I've already been through the mailutils info files, but didn't find
anything.
I'm wondering if there is some sort of evironment variable, flag, or
guile procedure that can be used to 'pop up' the guile repl?interective
prompt?
Failing that, I imagine I would need to load their library/extension
into guile somehow - is there a 'tutorial' for doing this available
somewhere that somebody could point me at?
Thanks,
+Chris
--
Dude, I want my country back.
-- MooseByte (751829), on Slashdot 29 Apr 2004
[-- Attachment #1.2: Type: application/pgp-signature, Size: 231 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Guile + mailutils
2004-06-03 14:18 Guile + mailutils Chris Hall
@ 2004-06-04 2:48 ` Chris Hall
2004-06-04 9:40 ` Doh! found it Chris Hall
0 siblings, 1 reply; 3+ messages in thread
From: Chris Hall @ 2004-06-04 2:48 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 897 bytes --]
Woohoo! I think I've found the answer.
In /usr/local/share/mailutils is a script 'mailutils.scm' - this script
defines a module 'mailutils', exports a bunch of variables, constants
and procedure names, and does 'load-extension' for all of it's
libraries.
It would appear that this provides the access to mailutils from a
standalone Guile interpreter?
The only problem is that I get the message
'no code for module (mailutils mailutils)'
when I try to load it into guile1.6.4 - I'm guessing that
that really means it can't find the libraries?
Am I correct in thinking that given a path
'/usr/local/share/mailutils/mailutils'
and the statement
'(use-module (mailutils mailutils))'
^^^^^^^^^ ^^^^^^^^^
dir name? script?
TIA,
+Chris
--
Take away the right to say "fuck" and you take away the right to say
"fuck the government."
-- Lenny Bruce (1923 - 1966)
[-- Attachment #1.2: Type: application/pgp-signature, Size: 231 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
* Doh! found it.
2004-06-04 2:48 ` Chris Hall
@ 2004-06-04 9:40 ` Chris Hall
0 siblings, 0 replies; 3+ messages in thread
From: Chris Hall @ 2004-06-04 9:40 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 251 bytes --]
I don't know why it is in section 'Dynamic Linking' in the mailutils
info file, but '(use-modules (mailutils))' seems to work.
--
The only people who seem to have nothing to do with the education of
the children are the parents.
-- G.K. Chesterton
[-- Attachment #1.2: Type: application/pgp-signature, Size: 231 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-04 9:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03 14:18 Guile + mailutils Chris Hall
2004-06-04 2:48 ` Chris Hall
2004-06-04 9:40 ` Doh! found it Chris Hall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).