You are not logged in.

#1 2008-02-27 14:15:33

niller
Member
From: Denmark
Registered: 2008-02-12
Posts: 91

Conky and mailcheck

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 sad

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

#2 2008-02-27 14:45:08

aboutreefitty
Member
Registered: 2008-02-14
Posts: 5

Re: Conky and mailcheck

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

#3 2008-02-27 15:06:49

niller
Member
From: Denmark
Registered: 2008-02-12
Posts: 91

Re: Conky and mailcheck

Nope

It wont work sad

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  neutral


/Niels
Registered Linux user #133791
Get counted at http://counter.li.org

Offline

#4 2008-02-27 20:10:22

niller
Member
From: Denmark
Registered: 2008-02-12
Posts: 91

Re: Conky and mailcheck

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

#5 2008-02-27 22:04:54

lzs
Member
Registered: 2008-01-23
Posts: 39

Re: Conky and mailcheck

The conky arguments also go between the curly brackets. like this:

${new_mails /home/niels/Mail/INBOX}

Offline

#6 2008-02-28 08:23:16

niller
Member
From: Denmark
Registered: 2008-02-12
Posts: 91

Re: Conky and mailcheck

Well...... that was about the ONLY thing I didn't do :-/

It's working now, Thanks smile

Cheers,


/Niels
Registered Linux user #133791
Get counted at http://counter.li.org

Offline

Board footer

Powered by FluxBB