Glenn, see http://en.wikipedia.org/wiki/IMAPS and
http://www.ietf.org/rfc/rfc2595.txt (search for imaps). It might be
possible to pipe the imap connection through /usr/bin/openssl as
Roland did for his rss reader to implement https support, see
http://svn.nrubsig.org/svn/people/gisburn/scripts/rssread.sh or read
this code fragment which shows now to establish the fifo between
rssreader and openssl:
===================================
function open_connection
{
if [[ "${_.protocol}" == 'https' ]] ; then
_.ssl.fifo.dir="$(mktemp -t -d)"
_.ssl.fifo.in="${_.ssl.fifo.dir}/in"
_.ssl.fifo.out="${_.ssl.fifo.dir}/out"
# Use "errexit" to leave it at the first error
# (this saves lots of if/fi tests for error checking)
set -o errexit
mkfifo "${_.ssl.fifo.in}" "${_.ssl.fifo.out}"
# create async openssl child to handle https
openssl s_client -quiet -connect "${_.host}:${_.port}"
<"${_.ssl.fifo.in}" >>"${_.ssl.fifo.out}" &
(( _.ssl.openssl_client_pid=$! ))
else
redirect {_.netfd.in}<> "/dev/tcp/${_.host}/${_.port}"
(( $? != 0 )) && { print -u2 -f $"%s: Could not open
%s\n" "${0}"
"${1}" ; return 1 ; }
(( _.netfd.out=_.netfd.in ))
fi
return 0
}
===================================
This would solve the feature gap in the short term, without relying on
extra libraries or packages.
But IMO real STARTTLS support, defined in
http://www.ietf.org/rfc/rfc2595.txt, would be better in the long term.
Olga
On Fri, Apr 13, 2012 at 9:57 PM, Glenn Fowler <[email protected]> wrote:
>
> are there imaps RFCs?
>
> On Fri, 13 Apr 2012 21:30:58 +0200 Dan Shelton wrote:
>> On 13 April 2012 20:40, Cedric Blancher <[email protected]>
>> wrote:
>> > Has anyone figured out how or if it is possible to use AST mailx to
>> > access Googlemail? Has anyone to share a howto?
>
>> This is unlikely to work because Google requires imap over ssl
>> (imaps://), which AST mailx does not support (I tried
>> imap://dan.shelton%[email protected] per
>> instructions at
>> http://support.google.com/mail/bin/answer.py?hl=en&answer=78799 as
>> folder name without success).
>
>> If you want to use Googlemail with mailx try heirloom mailx with imaps
>> support: http://heirloom.sourceforge.net/mailx.html
>> _______________________________________________
>> ast-users mailing list
>> [email protected]
>> https://mailman.research.att.com/mailman/listinfo/ast-users
>
> _______________________________________________
> ast-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/ast-users
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ [email protected] \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users