You are not logged in.

#1 2006-11-29 13:34:16

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

mail meter @ ion statusbar

Fixed all my conf issues after last ion upgrade except the mail meter settings. On ion start I get:

Errors starting ion-statusd:
   /usr/lib/ion3/bin/ion-statusd: statusd_mail.lua:57: Is a directory

on my cfg_statusbar.lua I have:

template="[ %date ] [ weather %weather_tempC %weather_humidity %weather_windspeed (%weather_time) ] [ load % %>load ] [ mail % %>mail_new ] [ batt %>linuxbatt ] [ in %netmon_kbsin out %netmon_kbsout ] %filler%systray",

mail={
      update_interval=60*1000,
      mbox=os.getenv("/var/spool/mail/alex/"),
},

I'm failing to see where's the catch... getmail and procmail are working fine with the maildir settings.

Offline

#2 2006-11-29 16:11:24

Arrakis
Member
From: Turin, Italy
Registered: 2006-02-18
Posts: 10

Re: mail meter @ ion statusbar

try to change this:

mbox=os.getenv("/var/spool/mail/alex/"),

with this one:

mbox=os.getenv("MAIL"),

I just *love* scanning for life forms.

Life forms. / You precious little life forms. / You darling little life forms. / Where are you?

Offline

#3 2006-11-30 13:58:09

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Re: mail meter @ ion statusbar

Doesn't work. Same error.
Before this I had the mail_INBOX_new variable generated through the cfg_maildir script being INBOX={"/var/spool/mail/mymail/"}. Worked ok. But with the new upgrade the problems started.
If I undersood it well, the new cfg_statusbar doesn need the cfg_maildir script as it calls the mail_new variables itself. I'm still a bit confused...

Offline

#4 2006-11-30 16:39:32

Arrakis
Member
From: Turin, Italy
Registered: 2006-02-18
Posts: 10

Re: mail meter @ ion statusbar

maybe you can try to assign to mbox just the path to your mailbox without doing the syscall, like this:

mbox="/var/spool/mail/alex",

without the trailing slash because it complains that the argument you pass to the script is a directory while it (I think) expects the path to your mbox file


I just *love* scanning for life forms.

Life forms. / You precious little life forms. / You darling little life forms. / Where are you?

Offline

#5 2006-12-04 14:05:15

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Re: mail meter @ ion statusbar

still nothing :-(
i'm intrigued about the statusd_mail.lua script mentioned in the error message. I can't find that script anywhere...
this is beginning to get my nerves. your sugestions makes all the sense and all the info I got from google about cfg_statusbar examples says that things should work as they are. I'm not an expert in lua but I got all the other confs right.
Excuse me for all the bitching, arrakis. Your help is really insightful. It's just my temper acting up ;-)

Offline

#6 2006-12-04 17:31:58

Arrakis
Member
From: Turin, Italy
Registered: 2006-02-18
Posts: 10

Re: mail meter @ ion statusbar

I searched for statusd_mail.lua too and I couldn't find it neither in ~/.ion3 nor in /etc/ion3

Once I had another strange problem with ion and my dual monitor rig and, just like you now, I couldn't find any useful information so I registered to the official mailing list and Tuomo himself replied and adressed me to the solution so, all I can suggest you is to ask to the official ml and see if they can help you solve your issue or checkout the darcs repository and see if you can find the statusd_mail.lua and track the problem down


I just *love* scanning for life forms.

Life forms. / You precious little life forms. / You darling little life forms. / Where are you?

Offline

#7 2006-12-04 17:38:48

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: mail meter @ ion statusbar

Just checkout darcs and look at the file.  The lua gets compiled down when the package is made.

Offline

Board footer

Powered by FluxBB