You are not logged in.
Pages: 1
Hi all
I'm fetching my mails from Gmail with offlineimap.
All mails goes to /home/niels/Mail/INBOX
I would like to have conky showing me the amount of new mail.
background no
out_to_console yes
update_interval 1.0
total_run_times 0
use_spacer no
mail_spool $MAIL
TEXT
${new_mails} Nye breve
But this doesn't work ??
I've set the maildir in my enviroment:
MAILPATH=/home/niels/Mail/INBOX/new/
With this I can see there are new mails, in my shell.
But it wont work with conky
I've tried:
${new_mails (/home/niels/Mail/INBOX/new)} Nye breve
and
${mails (/home/niels/Mail/INBOX/new)} Nye breve
But nothing seems to work !!
Anyone knows what should be done here ??
I am using Xnomad with conky-CLI/dzen !
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
you need something like this in the top part of the .conkyrc
mail_spool /home/niels/Mail/INBOX/new/
and in the TEXT part
$mails
Offline
Nope
It wont work
I have this in my .conkyrc:
background no
out_to_console yes
update_interval 1.0
total_run_times 0
use_spacer no
mail_spool /home/niels/Mail/INBOX/new/
TEXT
${mails} Nye breve ^fg(#ff0000)${loadavg 1 2 3} ^fg()${time %A d.%d.%m.%y | uge %V |} ^fg(#00FF00)${time %T}
It outputs the same devastating result
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
Hmmm It doesn't matter what I do !!
The mail variables in conky seems corrupt in some way, no matter what I type in either the 'mail_spool' or ${mails} , everything defaults to /var/spool/mail/<user>.
According to the variable table at http://conky.sourceforge.net/variables.html it should be possible to override this ??
Anyone who can confirm this ??
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
The conky arguments also go between the curly brackets. like this:
${new_mails /home/niels/Mail/INBOX}
Offline
Well...... that was about the ONLY thing I didn't do :-/
It's working now, Thanks
Cheers,
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
Pages: 1