[spambayes-bugs] [ spambayes-Feature Requests-768162 ] UNC path for
data_directory?
SourceForge.net
noreply at sourceforge.net
Tue Jul 8 23:18:05 EDT 2003
Feature Requests item #768162, was opened at 2003-07-09 13:13
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498106&aid=768162&group_id=61702
Category: Outlook
Group: None
Status: Open
Priority: 5
Submitted By: Bobby Wilkins (hwilkins)
Assigned to: Mark Hammond (mhammond)
Summary: UNC path for data_directory?
Initial Comment:
I'd like to keep one SpamBayes database, but I use
several PCs threough out the day.
I can mount a shared resource, and specify in my
default_configuration.ini:
data_directory:M:\data\Mail\SpamBayes
However, I'd like to be able to specify a UNC path, like:
data_directory:\myhost\c$\data\Mail\SpamBayes
so that I do not have to keep a drive-letter mounted or
rely on it being there...
I realize that, for laptops, this might cause issues when
offline; however, if that folder were marked for
synchronization, it should work, right?
Thanks,
Bobby Wilkins
----------------------------------------------------------------------
>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-07-09 17:18
Message:
Logged In: YES
user_id=552329
I've checked in that change (to OptionsClass.py).
I believe this should work now as long as os.path.isdir() works
for the UNC directory on the user's system. This works for
Bobby, but does not work on my system.
I presume this is a Python thing and not a SpamBayes thing
and so there's not much that can be done here. (Unless
there is a different function that can be used to check if a
directory exists that reliably works with UNC).
Mark, you can close this if you think that it's not worth doing
anything else. Otherwise, do want you want :)
----------------------------------------------------------------------
Comment By: Bobby Wilkins (hwilkins)
Date: 2003-07-09 17:10
Message:
Logged In: YES
user_id=145585
Continuing to work with Tony, we believe we've isolated this
to an "omission" bug -- the PATH was not allowing '$' to be
included, which is a necessity for any hidden-share UNC
paths...
I think we can close this, and I believe Tony said he'd get the
change rolled into the distribution (if I'm speaking for you,
Tony, please step in).
Now, off to try out the manual install... ;^)
Thanks,
Bobby
----------------------------------------------------------------------
Comment By: Bobby Wilkins (hwilkins)
Date: 2003-07-09 16:10
Message:
Logged In: YES
user_id=145585
(... and one should check one's typography when submitting
late at night...)
----------------------------------------------------------------------
Comment By: Bobby Wilkins (hwilkins)
Date: 2003-07-09 16:08
Message:
Logged In: YES
user_id=145585
Note: on discussion with Tony Meyer, it was identified to me
that SpamBayes is doing an os.path.isdir() on the value of
data_directory.
My personal testing of this function indicates that it
successfully identifies UNC paths; directiries return ture, and
other items do not.
Therefore, I suggest that this might be a "bug", not
a "feature request".
Should I re-submit in the "bugs" area?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498106&aid=768162&group_id=61702
More information about the Spambayes-bugs
mailing list