diff --git a/libmuguile/mu-guile-msg.c b/libmuguile/mu-guile-msg.c index 9db5e219..c9e4c347 100644 --- a/libmuguile/mu-guile-msg.c +++ b/libmuguile/mu-guile-msg.c @@ -509,7 +509,7 @@ mu_guile_msg_load_current (const char *path) } msgsmob = mu_guile_msg_to_scm (msg); - scm_c_define ("mu:current", msgsmob); + scm_c_define ("mu:current-msg", msgsmob); return TRUE; } diff --git a/toys/muile/README b/toys/muile/README index de4b7e71..93eca2c2 100644 --- a/toys/muile/README +++ b/toys/muile/README @@ -70,8 +70,17 @@ (see the documentation on --muhome in the mu-find manpage). And there is --msg= where you specify some particular message file; - it will be available as 'mu:current' in the guile (muile) environment. + it will be available as 'mu:current-msg' in the guile (muile) environment. For + example: + ,---- + | ./muile --msg=~/Maildir/inbox/cur/1311310172_1234:2,S + | [...] + | scheme@(guile-user)> mu:current-msg + | $1 = # + | scheme@(guile-user)> (mu:msg:size mu:current-msg) + | $2 = 7206 + `---- ** What about searching messages in the database? diff --git a/toys/muile/muile.cc b/toys/muile/muile.cc index f9bd33d3..d55d8abf 100644 --- a/toys/muile/muile.cc +++ b/toys/muile/muile.cc @@ -43,7 +43,7 @@ muile_config_new (int *argcp, char ***argvp) {"muhome", 0, 0, G_OPTION_ARG_FILENAME, &opts->muhome, "specify an alternative mu directory", NULL}, {"msg", 0, 0, G_OPTION_ARG_FILENAME, &opts->msgpath, - "specify path to a message to load as (mu:msg:current)", NULL}, + "specify path to a message to load as mu:current-msg)", NULL}, {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}/* sentinel */ };