Thanks.
There is a lot of good stuff here to look into.
I think I will try with grepmail first.
I was wondering what the simplest way to send an email might be - the
mentioned "mail" unix utility, perhaps?

Thanks very much,
Julius



On Tue, Jul 6, 2021, 19:33 Jon LaBadie <mut...@jgcomp.com> wrote:

> On Tue, Jul 06, 2021 at 06:19:54PM +0200, Julius Hamilton wrote:
> >Thanks very much.
> >
> >I am now looking into using a Python IMAP library.
> >
> >However, I think there must be a way to just dump the contents of a Mutt
> >page, and that could be an easier short-term solution.
> >You mentioned there being a print function.
> >Could you provide an example of using that to print the inbox to stdout?
> It
> >would have to be automatic, i.e. not requiring the user to actually open
> >Mutt themselves and type the print command. So that leads me to the
> >question of if this command can somehow be passed to mutt as a command
> line
> >option, or if there is some bash automation tool for calling it inside
> Mutt
> >anyway.
> >
> >The context is that I just would like to send emails and check for
> >responses in a more precise and quick way than opening my inbox. I would
> >like to have commands at my disposal when I am working on something to
> just
> >send an email directly and later check for responses to that email, or
> >check for all new emails from a particular sender. That info would need to
> >come back as the output of commands, to stdout.
> >
> >Thanks very much,
> >Julius
>
> If looking at separate programs, what about "grepmail"?
>
> Ex.    grepmail -h -B -e '^Subject: <your subject>' <your mbox>
>
>     -h (grep only headers)
>     -B (print body with limited headers)
>
> jon
>
> --
> Jon H. LaBadie                 j...@labadie.us
>   11226 South Shore Rd.          (703) 787-0688 (H)
>   Reston, VA  20190              (703) 935-6720 (C)
>

Reply via email to