Use LWP to access gmail messages

------=_NextPart_000_002B_01D3E969.447FA410
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi everybody,

I am new to perl but think I love it.

How can I use LWP to access the google mail web page, select uread messages
and display them directly in the gmail?

I do not want to save them somewhere. Just make gmail display the unread
messages.

 

Here are steps:

1.      Run Google Chrome;

2.      Go to the page http://www.google.com, this will display the page
https://www.google.com;

3.      Find and clic on gmail button in this page;

4.      Wait until all the page loads;

5.      Select my account in a displayed form (there is a list of 2 accounts
in a that form: one is my wife's account) and clic on it;

6.      Fill in my password and clic Next

7.      When all messages are completely loaded, display only those unread.

 

I do not want to use WWW:Mechanize because it does not deal will javascript.

Can hope to be helped?

 

Anyway thanks a lot.

 

A.KOTE


------=_NextPart_000_002B_01D3E969.447FA410
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
..MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:360009153;
	mso-list-type:hybrid;
	mso-list-template-ids:1473643386 67895311 67895321 67895323 67895311 =
67895321 67895323 67895311 67895321 67895323;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DFR link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-US>Hi everybody,<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>I am new to perl but think I love =
it.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US>How can =
I use LWP to access the google mail web page, select uread messages and =
display them directly in the gmail?<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>I do not want to save them =
somewhere. Just make gmail display the unread =
messages.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Here are steps:<o:p></o:p></span></p><p =
class=3DMsoListParagraph style=3D'text-indent:-18.0pt;mso-list:l0 level1 =
lfo1'><![if !supportLists]><span lang=3DEN-US><span =
style=3D'mso-list:Ignore'>1.<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US>Run Google =
Chrome;<o:p></o:p></span></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span lang=3DEN-US><span =
style=3D'mso-list:Ignore'>2.<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US>Go to the page <a =
href=3D"http://www.google.com">http://www.google.com</a>, this will =
display the page https://www.google.com;<o:p></o:p></span></p><p =
class=3DMsoListParagraph style=3D'text-indent:-18.0pt;mso-list:l0 level1 =
lfo1'><![if !supportLists]><span lang=3DEN-US><span =
style=3D'mso-list:Ignore'>3.<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US>Find and clic on gmail =
button in this page;<o:p></o:p></span></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span lang=3DEN-US><span =
style=3D'mso-list:Ignore'>4.<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US>Wait until all the =
page loads;<o:p></o:p></span></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span lang=3DEN-US><span =
style=3D'mso-list:Ignore'>5.<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US>Select my account in a =
displayed form (there is a list of 2 accounts in a that form: one is my =
wife&#8217;s account) and clic on it;<o:p></o:p></span></p><p =
class=3DMsoListParagraph style=3D'text-indent:-18.0pt;mso-list:l0 level1 =
lfo1'><![if !supportLists]><span lang=3DEN-US><span =
style=3D'mso-list:Ignore'>6.<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US>Fill in my password =
and clic Next<o:p></o:p></span></p><p class=3DMsoListParagraph =
style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if =
!supportLists]><span lang=3DEN-US><span =
style=3D'mso-list:Ignore'>7.<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US>When all messages are =
completely loaded, display only those unread.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>I do not want to use WWW:Mechanize =
because it does not deal will javascript.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>Can hope to be =
helped?<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Anyway thanks a lot.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
lang=3DEN-US>A.KOTE<o:p></o:p></span></p></div></body></html>
------=_NextPart_000_002B_01D3E969.447FA410--
0
ali
5/11/2018 8:47:19 PM
perl.libwww 3329 articles. 0 followers. Follow

3 Replies
15 Views

Similar Articles

[PageSpeed] 34

Hi A!

Please reply to list if it's a mailing list post - http://shlom.in/reply .

On Fri, 11 May 2018 20:47:19 -0000
"Alicourant KOTE" <ali.kote@orange.sn> wrote:

> Hi everybody,
>=20
> I am new to perl but think I love it.
>=20
> How can I use LWP to access the google mail web page, select uread messag=
es
> and display them directly in the gmail?
>=20
> I do not want to save them somewhere. Just make gmail display the unread
> messages.
>=20
> =20
>=20
> Here are steps:
>=20
> 1.      Run Google Chrome;
>=20
> 2.      Go to the page http://www.google.com, this will display the page
> https://www.google.com;
>=20
> 3.      Find and clic on gmail button in this page;
>=20
> 4.      Wait until all the page loads;
>=20
> 5.      Select my account in a displayed form (there is a list of 2 accou=
nts
> in a that form: one is my wife's account) and clic on it;
>=20
> 6.      Fill in my password and clic Next
>=20
> 7.      When all messages are completely loaded, display only those unrea=
d.
>=20
> =20
>=20
> I do not want to use WWW:Mechanize because it does not deal will javascri=
pt.
>=20
> Can hope to be helped?
>=20

See http://perl-begin.org/uses/web-automation/ and
https://metacpan.org/release/WWW-Mechanize-Chrome . LWP does not deal with =
JS
either.

Regards,

> =20
>=20
> Anyway thanks a lot.
>=20
> =20
>=20
> A.KOTE
>=20



--=20
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/New-versions-of-the-GPL/

Take your schedule estimates and multiply them by Pi. Take your expected
profits and divide them by Pi.
    =E2=80=94 My father=E2=80=99s mentor=E2=80=99s advice

Please reply to list if it's a mailing list post - http://shlom.in/reply .
0
shlomif
5/12/2018 8:14:18 AM
--------------0AA6940771D34623094CC123
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

On 11/05/18 21:47, Alicourant KOTE wrote:
>
> Hi everybody,
>
> I am new to perl but think I love it.
>
> How can I use LWP to access the google mail web page, select uread 
> messages and display them directly in the gmail?
>
> I do not want to save them somewhere. Just make gmail display the 
> unread messages.
>
> Here are steps:
>
> 1.Run Google Chrome;
>
> 2.Go to the page http://www.google.com, this will display the page 
> https://www.google.com;
>
> 3.Find and clic on gmail button in this page;
>
> 4.Wait until all the page loads;
>
> 5.Select my account in a displayed form (there is a list of 2 accounts 
> in a that form: one is my wife�s account) and clic on it;
>
> 6.Fill in my password and clic Next
>
> 7.When all messages are completely loaded, display only those unread.
>
> I do not want to use WWW:Mechanize because it does not deal will 
> javascript.
>
> Can hope to be helped?
>

The the usual answer to this would be to use Mechanize or HTML::Tree 
builder, but in either case it will be hard because of JavaScript, and 
because those web pages are designed for human interaction, not to be 
parsed by scripts.

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.

You may have to adjust the security settings on your gmail account so 
that IMAP access is permitted.

-- 
David Pottage


--------------0AA6940771D34623094CC123
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 11/05/18 21:47, Alicourant KOTE
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:002a01d3e969$447eb9b0$cd7c2d10$@orange.sn">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
..MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:360009153;
	mso-list-type:hybrid;
	mso-list-template-ids:1473643386 67895311 67895321 67895323 67895311 67895321 67895323 67895311 67895321 67895323;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Hi everybody,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I am new to perl but
            think I love it.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">How can I use LWP to
            access the google mail web page, select uread messages and
            display them directly in the gmail?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I do not want to save
            them somewhere. Just make gmail display the unread messages.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>�</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Here are steps:<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">1.<span
                style="font:7.0pt &quot;Times New Roman&quot;">����� </span></span></span><!--[endif]--><span
            lang="EN-US">Run Google Chrome;<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">2.<span
                style="font:7.0pt &quot;Times New Roman&quot;">����� </span></span></span><!--[endif]--><span
            lang="EN-US">Go to the page <a href="http://www.google.com"
              moz-do-not-send="true">http://www.google.com</a>, this
            will display the page <a class="moz-txt-link-freetext" href="https://www.google.com">https://www.google.com</a>;<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">3.<span
                style="font:7.0pt &quot;Times New Roman&quot;">����� </span></span></span><!--[endif]--><span
            lang="EN-US">Find and clic on gmail button in this page;<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">4.<span
                style="font:7.0pt &quot;Times New Roman&quot;">����� </span></span></span><!--[endif]--><span
            lang="EN-US">Wait until all the page loads;<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">5.<span
                style="font:7.0pt &quot;Times New Roman&quot;">����� </span></span></span><!--[endif]--><span
            lang="EN-US">Select my account in a displayed form (there is
            a list of 2 accounts in a that form: one is my wife�s
            account) and clic on it;<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">6.<span
                style="font:7.0pt &quot;Times New Roman&quot;">����� </span></span></span><!--[endif]--><span
            lang="EN-US">Fill in my password and clic Next<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">7.<span
                style="font:7.0pt &quot;Times New Roman&quot;">����� </span></span></span><!--[endif]--><span
            lang="EN-US">When all messages are completely loaded,
            display only those unread.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>�</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I do not want to use
            WWW:Mechanize because it does not deal will javascript.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Can hope to be helped?</span></p>
      </div>
    </blockquote>
    <br>
    The the usual answer to this would be to use <span lang="EN-US">Mechanize
      or HTML::Tree builder, but in either case it will be hard because
      of JavaScript, and because those web pages are designed for human
      interaction, not to be parsed by scripts.<br>
      <br>
      In the case of gmail email, the easiest approach would be to
      access the mailbox using the IMAP protocol. See </span><span
      lang="EN-US">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>
      <br>
      You may have to adjust the security settings on your gmail account
      so that IMAP access is permitted.<br>
      <br>
      -- <br>
      David Pottage<br>
      <br>
    </span>
  </body>
</html>

--------------0AA6940771D34623094CC123--
0
david
5/12/2018 8:20:19 AM
--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 <david@electric-spoon.com> =
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:david@electric-spoon.com" =
class=3D"">david@electric-spoon.com</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--
0
dan
5/12/2018 8:57:02 AM
Reply: