9thport ruby, rails, sysadmin, os x, and other stuff

26Jun/080

automatically archiving Lotus Notes email with windows vbs script

So I have come to a love/hate relationship with Lotus Notes. While I really enjoy the robustness of the application with its idea of making everything a database, I do hate the features it majority lacks. One in particular is the fact of, no, archive, management. So I have devised my own solution until I find another one that makes more sense. I have made this script to roll the archive file that Lotus Notes makes and rename the file to YYYYMMDD of when the script was executed.
So, here is the script:

'VBScript that renames a log file with the current date
Dim StrSource, StrNew, fso, sf, systime
StrSource="H:\path\of\archive.nsf"
Set fso = CreateObject("Scripting.FileSystemObject")
set sf=fso.GetFile(StrSource)
systime=now()
'You can skip either of the procedures below
'Call Comment(sf) 'Add a timestamp at the end of the source file
Call RenameFile(sf) 'Rename the source file with the date format of
yyyymmdd.log
 
Sub Comment(f)
Dim ts
Const ForAppending = 8
set ts=f.OpenAsTextStream(ForAppending)
ts.writeline cstr(systime)
ts.close
End Sub
 
Sub RenameFile(f)
StrNew=f.ParentFolder &"\" & cstr(year(systime)) & cstr(month(systime)) &
cstr(day(systime)) & "-archive.nfs"
f.move StrNew
End Sub</blockquote>
Save this text into a .VBS file and setup the schedule in the Schedule program found under Programs-&gt;Accessories-&gt;System Tools-&gt;Scheduled Tasks

I set mine up to run on the first Wednesday of every month. So to put this all into an example, on 2008 June 6th, the archive.nsf file will be moved to "20080628-archive.nsf" file.

19Jun/080

Tripel Dipsea Belgian Style Ale

Okay, 2 nights ago, my wife and a friend took part in some nice home cooking food and a beverage that got us tanked for about 3 hours straight. And we had only one glass each! This beer came from the Marin Brewing Co. and I have to say it tasted GREAT!! but it could have lasted a little less. ... on the other hand, was worth my money, I have to say. Anyways, the beer's name that we drank is none other than the Tripel Dipsea Belgian Style Ale.

Filed under: Food, Travel No Comments
19Jun/080

redhat 5 server notes and rants

So before you get into reading this article, I have to say this is going to be all technical. This area is for me to use as a reminder to find info easier than thumbing through a thick redhat book... so with out further letters being typed...

Filed under: Sysadmin Continue reading