This is a new plugin I've developed (based on the work of nullbie) that remove personal settings from database.
WARNING: This is an pre-alpha version. It can delete all files in your computer (altought it never happened to me :P ). Use it at your own risk.
It can remove all users, remove some files and directories from miranda dir (but only if these aren't beeing used), call services and disable plugins. To do that it is based in a configuration .ini file. If you need some especial configuration (and probabily you will need, because I just put some settings there, but I bet I forgot some), just edit the file RemovePersonalSettings.ini
The idea for using this plugin is to allow sending a copy of you miranda with your actual configuration, but without your personal settings. To use it, you should:
1) Copy the hole miranda dir to other location
2) Enable the plugin (if it isn't enabled)
4) Set global status to offline
3) Run the menu option "Remove personal settings..."
4) Exit miranda
4) Run DBTOOL.EXE to compact sweeped database file
5) Pack and send to your friend
I made this based on the discussion in the thread:
http://forums.miranda-im.org/showthread.php?t=5224
I asked the source from nullbie and made my version of the plugin. Thief, I know you are implementing something like this, but I needed it and so I made an initial version. If you want to continue this in any way, please, feel free to do so. I do not intend to continue the developing of this code (maybe I'll do just some fixes).
Files:
Source: http://pescuma.mirandaim.ru/miranda/rps_src.zip
Dll: http://pescuma.mirandaim.ru/miranda/rps.zip
I think is a good idea to post here the configuration that is missing in this default file, so we can build a good default configuration file.
The default configuration file: (I think it does not need any explanation)
Code:[GlobalSettings] ; Set protocol status to offline before any other action ; true or false ; default=true SetProtocolsOffline=true ; Remove all folders that have protocol names inside miranda folder ; true or false ; default=true RemoveProtocolFolders=true ; Remove all miranda users ; true or false ; default=true RemoveAllUsers=true ; Remove some default settings for all enabled protocols ; The name of the module has to be the same name as the name of the protocol ; These are the ones under ProtocolSettings ; true or false ; default=true RemoveProtocolSettings=true ; Remove all settings inside the protocol module ; (and not only the ones at ProtocolSettings) ; true or false ; default=false RemoveWholeProtocolModule=false [DisabledProtocols] ; Names of protocols that are disabled, but have to has its settings deleted ; The case must be correct! YAHOO YAHOO1 YAHOO2 YAHOO3 YAHOO4 MSN MSN1 MSN2 MSN3 MSN4 ICQ ICQ1 ICQ2 ICQ3 ICQ4 GG GG1 GG2 GG3 GG4 JABBER JABBER1 JABBER2 JABBER3 JABBER4 JGMAIL JGMAIL1 JGMAIL2 JGMAIL3 JGMAIL4 MEEBO MEEBO1 MEEBO2 MEEBO3 MEEBO4 AIM AIM1 AIM2 AIM3 AIM4 SKYPE [ProtocolSettings] ; Settings that will be erased for all enabled protocols if RemoveProtocolSettings == true ; Names with spaces or strange chars must be surrounded by " Password "Nick" LoginName PNick SN Name FirstName LastName Username User Timezone e-mail UIN IdleTS InfoTS LogonTS MemberTS LastSyncTime PictObject YourHost AvatarFile AvatarHash BirthDay BirthMonth BirthYear MaritalStatus Gender Age OriginCountry PublishPrimaryEmail SrvAvatarID SrvDefGroupId SrvLastUpdate SrvRecordCount SrvVisibility SrvVisibilityID XStatusMsg XStatusMessage AlernativeNick Status ServerComboSelection UserID Resource FirstRun WebAvare FullName LoginName jid Profile NLProxyPort NLProxyServer City Language1 Language2 Language3 Past0 RealIP State QuitMessage UserInfo GenderString GoogleToken Override yahoo_id AvatarURL [ProtocolModuleSufixes] ; Strings here will be appended to each protocol name and the module with this name ; will be deleted (the whole module) ; Names with spaces or strange chars must be surrounded by " Groups SrvGroups P2P :HotmailNotify [RemoveSettings] ; Settings that should be removed ; Only from hContact == NULL ; To remove a module, use ModuleName ; To remove a setting, use ModuleName/SettingName ; To remove all settings that start with a name, use * as last char ; Ex: Test/Test* ; To remove all settings that end with a name, use * as first key char ; Ex: Test/*Test ; Settings are case sensitive ; Names with spaces or strange chars must be surrounded by " "Gmail Notifier/name" "Gmail Notifier/pass" POP3 Options ContactPhoto/File MIMImport */Password */password FTPFile/password FTPFile/user FTPFile/url FTPFile/server SMSPlugin SRFile/MruDir* SRFile/RecvFilesDirAdv UserOnline WebSMS-Plugin/LastNumber* WebSMS-Plugin/LastPrefix* "WinPopup Protocol/Nick" "WinPopup Protocol/User" "WinPopup Protocol/Workgroup" NET_SEND/loging_name Alarm/ActionFlags* Alarm/Desc* Alarm/Hidden* Alarm/Occ* Alarm/NoStartup* Alarm/Snoozer* Alarm/SoundNum* Alarm/STDay* Alarm/STHour* Alarm/STMinute* Alarm/STMonth* Alarm/STSecond* Alarm/STYear* Alarm/Suspended* Alarm/Title* */NLProxyPort */NLProxyServer QuickContacts/LastSentTo VersionInfo/UploadPassword VersionInfo/UploadUser [ExecuteServices] ; Always calls passing 0 as wParam and lParam ; Names with spaces or strange chars must be surrounded by " DB3XS/RemovePassword [RemoveFilesOrFolders] ; This should be names inside miranda folder ; Names with spaces or strange chars must be surrounded by " ; * and ? can be used Avatars "Avatars History" Logs "Received Files" tabSRMM Updates UpdateData UpdateBackups yamn-accounts.pop3.*.book [DisablePlugins] ; Plugins dlls to be disabled ; Names with spaces or strange chars must be surrounded by " RemovePersonalSettings.dll
-----------------------------------
Changelog:
. 0.1.0.4
+ Added * to delete module names
+ Added miranda 0.8 support
+ Updated ini file
. 0.1.0.3
+ Added option to delete modules based on a sufix of the protocol name
+ Added * to delete module names
+ Added config to delete alarms and sent files
. 0.1.0.2
+ Added SetProtocolsOffline
* Bugfixes
. 0.1.0.1
+ Added RemoveWholeProtocolModule
+ Added DisabledProtocols to delete settings from these
+ Added deletion of events from DB

Reply With Quote

Bookmarks