Hi! I would also be interested in such a script.
Regards, Steinar -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grant Griffith - IMail Sent: 15. desember 2005 15:53 To: [email protected] Subject: RE: [IMail Forum] LastLogin Stamp in external database (IMail 8.15) Thanks for the info Eric. However I am trying to write a script to do this on a per user basis, therefore since I can not put any arguments the tool will not work in my situation. Is the source available for this executable? Thanks, Grant Griffith EI8HTLEGS, A Division of ETC (812)932-1000 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Shanbrom Sent: Wednesday, December 14, 2005 11:34 PM To: [email protected] Subject: Re: [IMail Forum] LastLogin Stamp in external database (IMail 8.15) On our utilities page is a last login utility.. this might make things easier for you Eric S Grant Griffith - IMail wrote: >Hello All, > >I am working on a script for a client of ours and am trying to >determine how >to use the LASTLOGIN field in the external database. I know the value >is supposed to be the number of seconds after 1/1/1970 from the >archives. But when I run this calculation I am coming up around 21 hours off. > >Here is the VBScript I am using, can anyone tell me why the value is >coming out off? > >tmpDormantTime = DateDiff("s",date(), "01/01/1970 >00:00:00")-(daystodormant*86400) > >The daystodormant is a variable I currently have set to 90 and 86400 is >the number of seconds in a day. Therefore the tmpDormantTime should >equal the seconds for 90 days prior. That was I know if they have >logged in within the past 90 days by comparing the tmpDormantTime to the LASTLOGIN value. > >As a side note, I also check the lastlog.in file for POP3 and IMAP >connections, but that is working fine... > >Thanks, >Grant Griffith >EI8HTLEGS, A Division of ETC >(812)932-1000 > > > > >To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html >List Archive: >http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ >Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ > > To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ Denne emailen er skannet og funnet fri for virus Denne emailen er skannet og funnet fri for virus To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
