Re: Use LWP to access gmail messages

Daniel Wright <[email protected]> Sat, 12 May 2018 04:57:02 -0400
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
--Apple-Mail=_18E0485E-3EA5-4BF8-BC47-67A4DD148963
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

An alternate solution if you want to be able to manage your email using =
all of the gmail specific features would be to use their API:

   https://developers.google.com/gmail/api/v1/reference/ =
<https://developers.google.com/gmail/api/v1/reference/>

In which case, you might want to take a look at REST::Client.

-Dan


> On May 12, 2018, at 4:20 AM, David Pottage <[email protected]> =
wrote:
>=20
> In the case of gmail email, the easiest approach would be to access =
the mailbox using the IMAP protocol. See Mail::IMAPClient. This will =
avoid using a web browser of any sort, and instead use a protocol that =
is designed for use by scripts and other programs.


--Apple-Mail=_18E0485E-3EA5-4BF8-BC47-67A4DD148963
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D"">An alternate solution if you want to be able =
to manage your email using all of the gmail specific features would be =
to use their API:</div><div class=3D""><br class=3D""></div><div =
class=3D"">&nbsp; &nbsp;<a =
href=3D"https://developers.google.com/gmail/api/v1/reference/" =
class=3D"">https://developers.google.com/gmail/api/v1/reference/</a></div>=
<div class=3D""><br class=3D""></div><div class=3D"">In which case, you =
might want to take a look at REST::Client.</div><div class=3D""><br =
class=3D""></div><div class=3D"">-Dan</div><div class=3D""><br =
class=3D""></div><br class=3D""><div><blockquote type=3D"cite" =
class=3D""><div class=3D"">On May 12, 2018, at 4:20 AM, David Pottage =
&lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><span lang=3D"EN-US" =
style=3D"font-family: Helvetica; font-size: 18px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
background-color: rgb(255, 255, 255);" class=3D"">In the case of gmail =
email, the easiest approach would be to access the mailbox using the =
IMAP protocol. See<span =
class=3D"Apple-converted-space">&nbsp;</span></span><span lang=3D"EN-US" =
style=3D"font-family: Helvetica; font-size: 18px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
background-color: rgb(255, 255, 255);" class=3D"">Mail::IMAPClient. This =
will avoid using a web browser of any sort, and instead use a protocol =
that is designed for use by scripts and other programs.<br =
class=3D""></span></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_18E0485E-3EA5-4BF8-BC47-67A4DD148963--