crystal faeries

divine love consciousness blog

1st February 1970
Aloha from celeste:crystalfaery

I received this educational notice, read the article,
and started hacking on the sample script code, until, yep,
I'd produced an actual read-only e-mail client for IMAPS,
(yes, it does mark your messages as read (no longer "new")),
and it does use your ~/.netrc file to find your password.
Dependencies are curl, sed and less.

This is not likely to see much usage, compared to your usual e-mail client,
because it can't delete any e-mail and because you can't use it to reply or
to send e-mail, but if you've just installed a very basic system without
your usual applications, this will let you see incoming e-mail, such as,
user "root", the administration account on most UNIX / LINUX systems,
gets via e-mail lots of information about operational health of the system.
Because it uses the IMAPS network protocol for encrypted access, it is also
possibly useful in administering a "headless" (no keyboard/screen) remote system.

Well, i had fun learning about curl and IMAPS in writing this.
Oh, naturally it's open source, so do with it what you will,
but if you hack it and give away copies,
I don't wanna get blamed for your modified version :-)

Script:  /usr/local/bin/curlmail
ManPage: /usr/local/share/man/man1/curlmail.1

----- Forwarded message from Steve -----

> Date: Thu, 14 Jan 2016 08:27:45 -0000
> From: Steve
> To: Debian-Administration
> Subject: Performing IMAP queries via curl
> Feed: Debian GNU/Linux System Administration Resources
> Item: [1]Performing IMAP queries via curl
>    Most people are familiar with curl, the tool that allows you to make
>    HTTP-requests, and FTP-requests, via the command-line. Recently it
>    gained the ability to perform IMAP operations, and this brief article
>    demonstrates how that is done.


----- End forwarded message -----

Aloha, celeste:crystalfaery
All information & transactions are private between the parties & are non
negotiable. All rights claimed without prejudice by celeste:crystalfaery           +1(808)822-5272

Created by Chronicle v4.6