Doesn't load correctly a label with spaces
Brought to you by:
owenjm
In the config file i have
<label_delay calendar 2="300" />
The GUI saves the label with spaces in the xml but when i start checkgmail i got this
Specification mandate value for attribute calendar
attributes construct error
Specification mandate value for attribute 2
attributes construct error
at /usr/lib/perl5/XML/LibXML/SAX.pm line 64
at /usr/share/perl5/XML/Simple.pm line 295
A thread exited while 2 threads were running.
$ checkgmail --version
CheckGmail v1.10
Logged In: YES
user_id=874762
Originator: NO
Hmmm ... I thought I replied to this one ages ago, but it appears the comment didn't go through:
In short, this works for me with the label "Grand Rounds" - so can you provide details of the exact label that you're checking? Are there any special characters in it other than a space? Even numbers, perhaps?
Cheers,
Owen
(and sorry for the delay in responding - I'm sure I *did* comment on this earlier ...)
Logged In: YES
user_id=1776049
Originator: NO
I had the exact same problem with CheckGmail v1.10. The program ran fine when I had it open and entered the labels. However when, it reopened and tried to load prefs.xml it always quit.
CheckGmail seems to have a problem with the space between 'label' and 'two' on line 16.
Below is the output I get when I run CheckGmail:
--------------------------------------------------------------------------
Warning: Crypt::Simple not found ...
CheckGmail requires the above packages for password encryption
Please download and install from CPAN (http://search.cpan.org) if you want to use this feature ...
No '=' in Attribute [Ln: 16, Col: 21]
A thread exited while 2 threads were running.
--------------------------------------------------------------------------
Below is a copy of prefs.xml:
--------------------------------------------------------------------------
<opt archive_as_read="0"
atomfeed_address="mail.google.com/mail/feed/atom"
background="BEBEBE"
delay="150000"
gmail_command="firefox %u"
language="English"
nomail_command=""
notify_command=""
passwd="password"
popup_delay="6000"
save_passwd="1"
show_popup_delay="250"
time_24="0"
user="username">
<label_delay label="300"
label two="300"
label three="300"
label four="300" />
</opt>
Logged In: YES
user_id=874762
Originator: NO
OK, I'm not seeing the errors but I do notice that the labels aren't read by checkgmail when there's a label with spaces in the structure. Fair enough - I'll try to fix this when I can - I need to rework the way the XML structure is being saved.
In the meantime, renaming your labels might be the simplest solution ...
Cheers,
Owen
Logged In: YES
user_id=1776049
Originator: NO
Understandable, obviously I was able to figure out what is going on, and it's not a problem for me to change my labels. But to a user that knows nothing about programming, all they would see when they click on the CheckGmail launcher is that nothing happens. They are clueless without error messages.
Thanks a ton for the speedy response, and keep up the good work with the excellent product!
Logged In: YES
user_id=1647261
Originator: NO
I have a solution to deal with spaces in label.
In checkgmail define them with '-'.
For instance :
- your label in gmail is "my great label"
- use in checkgmail "my-great-label"
it works for me :)