It is currently April 24th, 2024, 2:41 am

RegExp for GMail with topic and date of my last 4 e-mails

Share and get help with Plugins and Addons
Helix2648
Posts: 10
Joined: November 13th, 2012, 2:43 pm

RegExp for GMail with topic and date of my last 4 e-mails

Post by Helix2648 »

Hello @ all,

I'm really frustrated! I'm trying for almost 2 days to get my own modification of the gmail skin to work.

The problem is, that I don't get a string, when I don't have more than 4 e-mails.

For example:

Code: Select all


[Variables]
GetTitle=".*<title>(.*)<\/title>"
GetTime=".*<modified>[0-9]{4}\-[0-9]{2}\-[0-9]{2}T(.*)Z<\/modified>"

[MeasureCount]
Measure=Plugin
Plugin=WebParser
Url=https://"User":"PW"@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>"
StringIndex=1
UpdateDivider=60

[MeasureTitle1]
Measure=Plugin
Plugin=WebParser
Url=https://"User":"PW"@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<entry>#GetTitle##GetTitle##GetTitle##GetTitle#"
StringIndex=4
UpdateDivider=60

[MeasureTime1]
Measure=Plugin
Plugin=WebParser
Url=https://"User":"PW"@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<entry>#GetTime##GetTime##GetTime##GetTime#"
StringIndex=4
UpdateDivider=60
This code works fine, if I've got 4 or more e-mails, but the metertext ist empty, if I've got 2 or 3 e-mails.

How can I modify the RegExp, that it show's me either 0 e-mail informations or for the first e-mail, or the first and the second and so on. Think, that I don't have always 4 new mail's in my account. :)

Thank you!

Regards,
Helix
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RegExp for GMail with topic and date of my last 4 e-mail

Post by jsmorley »

Helix2648
Posts: 10
Joined: November 13th, 2012, 2:43 pm

Re: RegExp for GMail with topic and date of my last 4 e-mail

Post by Helix2648 »

Perfect! Thank you very much!
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RegExp for GMail with topic and date of my last 4 e-mail

Post by jsmorley »

Glad to help.