> > I'd like to have a list of users who have not logged in to my Squirrel
> > server, or when they loggin in. I guess I need a bash script to scan
> > through the pref files. Any suggestions? --
> > Pål Monstad
>
> One way of doing this is to use the Show User and IP plugin
> <http://www.squirrelmail.org/plugin_view.php?id=123>, since it writes a
> timestamp in the end users preferences on every login. All you have to do
> is to grep/select that preference key (it's "my_last_date" in the version
> I'm using) and convert the UNIX timestamp to something readable.
>
> If you use file system base preferences it's even easier. All you have to
> do is a "ls -l *pref", and you will get the time when the pref-file was
> last modified. This will work if you're sure that it will be modified
> every time the user logs in.

The more robust way to do this that doesn't rely on an unrelated plugin is here:

http://www.squirrelmail.org/plugin_view.php?id=52


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to