# This file is part of GNU Mailutils -*- Autotest -*- # Copyright (C) 2018-2021 Free Software Foundation, Inc. # License GPLv3+: GNU GPL version 3 or later # This is free software: you are free to change and redistribute it. # There is NO WARRANTY, to the extent permitted by law. AT_SETUP([mu-mailbox-get-message]) AT_KEYWORDS([mailbox]) WITH_MAILBOX([spool/mbox1], [MU_GUILE_CHECK([ (let ((mbox (mu-mailbox-open "mbox" "r"))) (let ((n (mu-mailbox-messages-count mbox))) (do ((i 1 (1+ i))) ((> i n)) (let ((msg (mu-mailbox-get-message mbox i))) (display msg)(newline)))))], 0, [# # # # # ])]) AT_CLEANUP