You are not logged in.

#1 2013-01-19 07:04:09

rogorido
Member
Registered: 2009-08-17
Posts: 111

[solved] checkgmail no longer working

Hi, since a few days checkgmail is not working anymore. It gives a ERROR 200 OK. Any ideas? (I'm using checkgmail from community, have also tried the AUR svn package with no success).

Last edited by rogorido (2013-01-19 15:50:43)

Offline

#2 2013-01-19 14:46:06

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [solved] checkgmail no longer working

rogorido,

I am using checkgmail 1.13-7.

However for some reason I don't remember, I have to start it with:

checkgmail -no_cookies

Checkgmail depends on


perl-crypt-blowfish
    perl-crypt-simple
    perl-freezethaw
    perl-gtk2-trayicon
    perl-lwp-protocol-https
    perl-xml-simple
    perl-gtk2-sexy (optional)

Try reinstalling.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2013-01-19 15:50:28

rogorido
Member
Registered: 2009-08-17
Posts: 111

Re: [solved] checkgmail no longer working

exactly. With the option -no_cookies it's working again... maybe some change made by google?

Thnaks!

Offline

#4 2013-01-19 16:27:28

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: [solved] checkgmail no longer working

Something did change with GMail.

Re-installing and clearing config didn't help. Disabling cookies takes care of it.


--
JSkier

Offline

#5 2013-01-21 07:58:52

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

Re: [solved] checkgmail no longer working

Without cookies, checkgmail is just another email notifier. No "Mark as read, Archive" etc.


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#6 2013-01-23 03:10:07

jtaylor
Member
Registered: 2013-01-23
Posts: 1

Re: [solved] checkgmail no longer working

There is a proper solution in the comments for the bug report on SourceForge.

The brief summary of that is that you need to edit /usr/bin/checkgmail and replace https://www.google.com/accounts/ with https://accounts.google.com/, which should be three occurrences.

Offline

#7 2013-01-23 16:56:23

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [solved] checkgmail no longer working

jtaylor wrote:

There is a proper solution in the comments for the bug report on SourceForge.

The brief summary of that is that you need to edit /usr/bin/checkgmail and replace https://www.google.com/accounts/ with https://accounts.google.com/, which should be three occurrences.

Solves problem. Thanks, jtaylor

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#8 2013-01-28 15:17:05

rogorido
Member
Registered: 2009-08-17
Posts: 111

Re: [solved] checkgmail no longer working

This solves really the problem. Thnaks.

Offline

#9 2013-04-18 13:57:38

bpont
Banned
Registered: 2010-03-24
Posts: 161

Re: [solved] checkgmail no longer working

Mektub wrote:
jtaylor wrote:

There is a proper solution in the comments for the bug report on SourceForge.

The brief summary of that is that you need to edit /usr/bin/checkgmail and replace https://www.google.com/accounts/ with https://accounts.google.com/, which should be three occurrences.

Solves problem. Thanks, jtaylor

Mektub

I'm trying to follow the advice on that page, but when I ran:

# patch checkgmail checkgmail.patch

I got:

# patching file checkgmail
Reversed (or previously applied) patch detected!  Assume -R? [n] 

I still have my console up and I haven't responded to the console prompt until I get some advice here.

Last edited by bpont (2013-04-18 13:58:22)

Offline

#10 2013-04-19 18:30:48

bpont
Banned
Registered: 2010-03-24
Posts: 161

Re: [solved] checkgmail no longer working

# patching file checkgmail
Reversed (or previously applied) patch detected!  Assume -R? [n]

Why is this error appearing?

-R  or  --reverse
          Assume that this patch was created with the old and new files swapped.  (Yes, I'm afraid  that  does  happen  occasionally,  human
          nature  being  what  it is.)  patch attempts to swap each hunk around before applying it.  Rejects come out in the swapped format.
          The -R option does not work with ed diff scripts because there is too little information to reconstruct the reverse operation.

          If the first hunk of a patch fails, patch reverses the hunk to see if it can be applied that way.  If it can, you are asked if you
          want  to  have  the  -R  option set.  If it can't, the patch continues to be applied normally.  (Note: this method cannot detect a
          reversed patch if it is a normal diff and if the first command is an append (i.e. it should have  been  a  delete)  since  appends
          always  succeed,  due  to  the  fact  that a null context matches anywhere.  Luckily, most patches add or change lines rather than
          delete them, so most reversed normal diffs begin with a delete, which fails, triggering the heuristic.)

Assume that this patch was created with the old and new files swapped.

By this I'm assuming the -R switch thinks that it's dealing with a newer version of the executable in which the patch had already been applied versus a version of the executable in which the patch hadn't been applied?

(Yes, I'm afraid  that  does  happen  occasionally,  human
          nature  being  what  it is.)  patch attempts to swap each hunk around before applying it.  Rejects come out in the swapped format.

I'm not really understanding what's being described here.

The -R option does not work with ed diff scripts because there is too little information to reconstruct the reverse operation.

OK

If the first hunk of a patch fails, patch reverses the hunk to see if it can be applied that way.  If it can, you are asked if you
          want  to  have  the  -R  option set.

So I should assume this is exactly what happened and that's why I was prompted if I wanted to apply the -R switch?  If so, since it reversed the first hunk and was applied successfully, should I assume that I have a version of the executable in which the patch was already applied?

If it can't, the patch continues to be applied normally.  (Note: this method cannot detect a
          reversed patch if it is a normal diff and if the first command is an append (i.e. it should have  been  a  delete)  since  appends
          always  succeed,  due  to  the  fact  that a null context matches anywhere.  Luckily, most patches add or change lines rather than
          delete them, so most reversed normal diffs begin with a delete, which fails, triggering the heuristic.)

I don't understand this part, but don't think it really applies to this particular issue.

Offline

#11 2013-05-02 02:23:15

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: [solved] checkgmail no longer working

checkgmail -no_cookies & in autostart or a shell alias will suffice, fixes it for me on 2 arch installs. the method above replacing 3x URL entries didnt work for me, the -no_cookies switch did.

Offline

#12 2013-05-02 06:48:18

Lockheed
Member
Registered: 2010-03-16
Posts: 1,512

Re: [solved] checkgmail no longer working

Replacing URLs does work for me, while no_cookies destroys functionality of checkgmail.

Offline

#13 2013-05-02 12:48:41

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [solved] checkgmail no longer working

Some additional information that's SORT OF related to this issue:

I use the "check Gmail" Bash script found here in the wiki: https://wiki.archlinux.org/index.php/Co … er_Methods I noticed it stopped working reliably around the time that this thread was created.

Thanks to the information in this thread, I tried changing the wget command by adding "--no-cookies" to it, and it seems to work better now. After I learn a bit more about the recent changes to Gmail and this situation, I'll update the wiki.

Offline

#14 2013-05-02 13:26:36

Lockheed
Member
Registered: 2010-03-16
Posts: 1,512

Re: [solved] checkgmail no longer working

Speaking of checkgmail, I am really surprised no-one is developing or at least maintaining it since a long time, because this is by far and away THE BEST gmail notificator available for linux.

Offline

#15 2013-05-02 13:29:49

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [solved] checkgmail no longer working

Lockheed wrote:

Speaking of checkgmail, I am really surprised no-one is developing or at least maintaining it since a long time, because this is by far and away THE BEST gmail notificator available for linux.

Oh my gosh... It hasn't had a code commit in three years?? yikes I'm amazed that it still works!

As for my comment above, I just want to further clarify that I don't really know what I'm doing. I'm still looking into my problem. And now I'll stop hijacking this thread. Maybe.

Offline

#16 2013-05-09 00:05:26

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: [solved] checkgmail no longer working

I don't think this is officially solved because I just installled this program today and I am stuck with the -no-cookies option because the url change didn't fix the ERROR 200 OK issue for me.  Anyone still working on or dealing with this? I'm using the version of checkgmail from the main repos, not AUR...


Help grow the dev population... have your tech trained and certified!

Offline

#17 2013-06-11 19:25:29

tomaqa
Member
Registered: 2012-09-28
Posts: 4

Re: [solved] checkgmail no longer working

jtaylor wrote:

There is a proper solution in the comments for the bug report on SourceForge.

The brief summary of that is that you need to edit /usr/bin/checkgmail and replace https://www.google.com/accounts/ with https://accounts.google.com/, which should be three occurrences.

This helps for me.

Thanks,

Tomaqa

Offline

#18 2014-09-21 10:32:27

rcspam
Member
From: France
Registered: 2014-09-21
Posts: 3
Website

Re: [solved] checkgmail no longer working

Hi,

If you want a checkgmail adapted to the colors of your desktop theme, you can visit Rcspam's Blog
This version correct some little bugs and you can launch it without adding "--no-cookies".

Last edited by rcspam (2014-10-14 15:29:05)

Offline

#19 2014-09-22 07:51:44

Lockheed
Member
Registered: 2010-03-16
Posts: 1,512

Re: [solved] checkgmail no longer working

It is a pity the buttons to manage mail no longer work even with this version.

Offline

#20 2014-10-01 11:28:50

rcspam
Member
From: France
Registered: 2014-09-21
Posts: 3
Website

Re: [solved] checkgmail no longer working

Lockheed wrote:

It is a pity the buttons to manage mail no longer work even with this version.

Apparently, it's possible to code this with  'imaplib' and 'email' python libraries  but i have no time to learn it. If anyone could do it, he will be  my undying gratitude wink

Last edited by rcspam (2014-10-01 11:43:48)

Offline

#21 2014-10-11 18:24:45

monojp
Member
From: Karlsruhe, Germany
Registered: 2011-05-16
Posts: 17

Re: [solved] checkgmail no longer working

Hi, I think I got the buttons working again. There were - again - outdated urls in the script.
I'm not experienced in Perl scripts so I hope the simple url replacement is enough.

You can try and see if it works here:
https://aur.archlinux.org/packages/checkgmail-svn/

I also added a 2 factor auth patch which was floating around and seems to work fine for me

Last edited by monojp (2014-10-11 18:30:27)

Offline

#22 2014-10-14 11:41:38

rcspam
Member
From: France
Registered: 2014-09-21
Posts: 3
Website

Re: [solved] checkgmail no longer working

Hi monojp

Good Job, peharps we can join your "button back again" version and my "themable" version in one wink
I had re-write the themable version based on your hack, the script is here
This version resolve the "icon background color setting" bug.
As i see your are a perl hacker, perhaps you can write a part to change colors directly in the preferences window. The variables are already in the beginning of the script (line ~230 )
Cheers

Last edited by rcspam (2014-10-14 16:01:40)

Offline

#23 2014-10-15 11:50:14

Lockheed
Member
Registered: 2010-03-16
Posts: 1,512

Re: [solved] checkgmail no longer working

monojp wrote:

Hi, I think I got the buttons working again. There were - again - outdated urls in the script.
I'm not experienced in Perl scripts so I hope the simple url replacement is enough.

You can try and see if it works here:
https://aur.archlinux.org/packages/checkgmail-svn/

I also added a 2 factor auth patch which was floating around and seems to work fine for me

@monojp,

You have my great gratitude for taking over maintenance of this forgotten piece of irreplaceable software.

Offline

#24 2015-09-10 08:25:04

monojp
Member
From: Karlsruhe, Germany
Registered: 2011-05-16
Posts: 17

Re: [solved] checkgmail no longer working

Does somebody of you want to takeover the modified checkgmail? I'm afraid I'm not using it anymore (chromium extensions work well and better..) It's currently on https://github.com/monojp/checkgmail
Apparently the official homepage and sourceforge still seem to exist and are delivering the old and broken version. A new, cleaner approach in Python or something more readable smile would be better I guess. I'm not experienced in Perl myself, but the source code of checkgmail is really not easy to maintain.

Offline

Board footer

Powered by FluxBB