From c38ff3e36c63b4623add3136d8d892d244e06980 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Mon, 28 Feb 2011 21:26:23 +0000 Subject: [PATCH] Remove unused files. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40743 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/mail/UserProvidedScripts.zip | Bin 3865 -> 0 bytes src/servers/mail/install.japanese.sh | 169 ----------------------- src/servers/mail/install.sh | 95 ------------- 3 files changed, 264 deletions(-) delete mode 100644 src/servers/mail/UserProvidedScripts.zip delete mode 100644 src/servers/mail/install.japanese.sh delete mode 100755 src/servers/mail/install.sh diff --git a/src/servers/mail/UserProvidedScripts.zip b/src/servers/mail/UserProvidedScripts.zip deleted file mode 100644 index 92e8531ba760e51abf92df95c8a0cd20b05b48fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3865 zcmZ{nXHXMr+J-|Qf^_MG&_sHXCcQ)ikpsaX9i#~{Gzlmeq)JgxAfc%w6j4eL1(YVz zYeKIAp(`N0_bQ9Kb9Q$3n{VEE+syr3f3LaWhLlun004jnuoXa*jZDTP)+hl078(G6 z4ln>Td+7AYRY327x9<~kvx@*q6;u<{<9wU@Q=QKM06K_Dp!Rw8eB2AMAl~w7!fQa5 zjdVLlFy0kknpB+~*XSP}2Cd4A*BN6|?8AO2h^(M}*HIp=B<_~)cPm;Gz|;W3)>Ez| zeg%^-18QzIRLT(X*WHJwt7OvN=E*2FP1yISW|(=5??Iu)nN&sb4K$=7a{}y>s~8IG z?NO_xSne=PsT>g4(W)vZzZ+Rc`$y?CSnGzx_3kQUj;t{)PaJu>jEEM5Fja~c@FBh5 zAaC6%tSzFu)EiS=jLEc3c0sUHOh6ro(cPyuU6~Yi1}FKs;6!`tLwqh@{9o4ghZ4K& zYd2mU=a7qVnfX+~jo)%{&|A1$ZLv_z`e-R5?r(|qtZ%hCV90cyp^b^QE?8}YmmH5b z=g=-MZFB$c$DkILuF%@>>C0f%W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G-h_l;^Sk*}Y?n*h>crklbWYbZCS_WlNguJDunye5nHX7A$cAdS2_ ztKPf03{DkSU%KJ95)FBS>_=(=AwFpI{vL-}5ZsQG;uuSlS+f@9^&04Ptpd9yFuT9b zM0)$Z(_V5LqSpTcnQLKL0Qiu1zeM)Atb5f0wG5DaQ=Na>o*y}v&2NfsrcW!8&xqM; zbB0E&IZMv2$&t8Nrm45Y^_k=ka_E@sEo4cajU?y$ zI$;=GwP`9Kl{sstll-Q&W7#xqo@h zu5@UuP7Yz)yeC`MWf9rV_=vX3+EzsTMfsgcA42&cx#VJ-YQNpnma#83eFVs?NxXN*gTWo`XGeOefpuz*Lf+fpJ$~%W zd86TYFpXk`TkDH)xo|AYHCFEy!(V}U^4+X>>Fuz6=Q1RHEDg&M^Z@-aY{cbvpRL1E zE7-Nx_aW7e{WF6C(9rU}(5qi2+ohvhR0_fGX02lS%uH^^XtC(>A%9^{xL_T5_A5I0 zT@Y$&a)7XUojpsf*2ajzUTs?#b5*Ii35-j3zA*fOEmzqV!Y({f{d>0waV5-5Wwa*9 zvstD0>-J5-43)p$YK_@+RaK-Gt6&gCH=q|%l7-%EAp9v;o$UVtOH64iwa*tk#I_Hr z4m*eVP@Gu`s;I5-YfUzVHKxc19g1|YS~f@39?VULaxr6?2{Y-dfwIW`J{^>o-6TwV zMLp!D`i>UihOs^zwF$V{JQ1)l<$N~?1UIArax(vaHIw6?Rg&WTTn+p4{IAjp`d8^R z_y1EiL4Y#gdEh^B|JUXJiCek=0Q{HP&vAdu{x`1ZUpUZt3;+P0uZ;5>!T9I*4>`vx AQUCw| diff --git a/src/servers/mail/install.japanese.sh b/src/servers/mail/install.japanese.sh deleted file mode 100644 index f944d88d1d..0000000000 --- a/src/servers/mail/install.japanese.sh +++ /dev/null @@ -1,169 +0,0 @@ -#!/bin/sh - -cd "$(dirname "$0")" - -if pwd | grep " "; - then alert "ディレクトリ名に空白を含めないでください。 -インストールが正常にできません。 -/boot/home/mydirectoryのように -空白を含まないディレクトリに -内容を移動してください。"; - exit 1; -fi - -RETURN=`alert "Mail Daemon Replacementインストール - -BeOSのメールデーモンは -システムに一つしか存在できません。 -(理由はREADMEをお読みください) - -「Purge」: - 保存しません -「Backup」: - MDRを初めてインストールする時に、 - 古いメールデーモン - (mail_daemon/libmail.so/BeMail/E-mail)を - 保存します。 - (2回目以降は選択しないでください) -「Don't do anything!」: - インストールを中止します。" "Purge" "Backup" "Abort - Don't do anything!"` - -if [[ $RETURN = Purge ]] -then - # note: we don't remove libmail.so, because it doesn't matter here, and there may be symlinks and things - query -a 'BEOS:APP_SIG == "application/x-vnd.Be-POST" || BEOS:APP_SIG == "application/x-vnd.Be-mprf" || BEOS:APP_SIG == "application/x-vnd.Be-MAIL" || BEOS:APP_SIG == "application/x-vnd.agmsmith.AGMSBayesianSpamServer"' | grep -v "`/bin/pwd`" | xargs rm -f -elif [[ $RETURN = Backup ]] -then - query -a 'BEOS:APP_SIG == "application/x-vnd.Be-POST" || BEOS:APP_SIG == "application/x-vnd.Be-mprf" || BEOS:APP_SIG == "application/x-vnd.Be-MAIL" || BEOS:APP_SIG == "application/x-vnd.agmsmith.AGMSBayesianSpamServer" || name == libmail.so' | grep -v "`/bin/pwd`" | xargs zip -ym /boot/home/maildaemon.zip -else - alert "Mail Daemon Replacementインストール - - バックアップを作成しませんでした。 - 現在のバージョンが唯一のメールデーモンとなります。" - exit -1 -fi - -# This should be translated -if [[ `uname -m` == BePC ]] && test ! -e ~/config/lib/libssl.so; then - -RETURN=`alert "You don't seem to have OpenSSL installed, which is required for IMAP." "Get OpenSSL" "I don't care"` - -if [[ $RETURN = "Get OpenSSL" ]] -then - NetPositive http://www.bebits.com/app/1020 & -fi - -fi - -quit "application/x-vnd.Be-POST" -quit "application/x-vnd.Be-TSKB" -quit "application/x-vnd.agmsmith.AGMSBayesianSpamServer" - -rm -rf ~/config/add-ons/mail_daemon/* -rm -f /system/servers/mail_daemon /boot/beos/preferences/E-mail /boot/beos/apps/BeMail -rm -f ~/config/lib/libmail2.so ~/config/lib/libnumail2.so /system/lib/libmail.so -rm -f "${HOME}/config/settings/Mail/New E-mail" -rm -f "${HOME}/config/settings/Mail/Menu Links/T) 本日のメール" - -mkdir -p ~/config/add-ons/mail_daemon - -copyattr -d -m bin/libmail.so /boot/beos/system/lib/libmail.so -copyattr -d -m bin/libcrypto.so /boot/home/config/lib/libcrypto.so -copyattr -d -m bin/libssl.so /boot/home/config/lib/libssl.so -copyattr -d -m -r bin/addons/* ~/config/add-ons/mail_daemon -copyattr -d -m bin/mail_daemon /system/servers/mail_daemon -copyattr -d -m bin/E-mail /boot/beos/preferences/E-mail -copyattr -d -m bin/BeMail /boot/beos/apps/BeMail - -# Set up the files in the Menu Links directory. They will appear in the pop-up -# menu in the deskbar. Overwrite existing ones, and remove ones in the wrong -# language (left over from previous installs). But don't delete any other ones -# that the user may have custom made. -mkdir -p ~/config/settings/Mail/Menu\ Links -unzip -o bin/ExtraMenuLinksForR5Tracker.zip -d ~/config/settings/Mail/Menu\ Links -rm bin/ExtraMenuLinksForR5Tracker.zip -mv -f -v "${HOME}/config/settings/Mail/Menu Links/E-Mail From…" "${HOME}/config/settings/Mail/Menu Links/F) 送信者を検索…" -mv -f -v "${HOME}/config/settings/Mail/Menu Links/Open Draft" "${HOME}/config/settings/Mail/Menu Links/D) ドラフトを開く…" -mv -f -v "${HOME}/config/settings/Mail/Menu Links/Open Inbox Folder" "${HOME}/config/settings/Mail/Menu Links/I) 受信箱を開く" -mv -f -v "${HOME}/config/settings/Mail/Menu Links/Open Mail Folder" "${HOME}/config/settings/Mail/Menu Links/M) 郵便箱を開く" -mv -f -v "${HOME}/config/settings/Mail/Menu Links/Subject Contains…" "${HOME}/config/settings/Mail/Menu Links/S) 見出しで検索…" -mv -f -v "${HOME}/config/settings/Mail/Menu Links/Received Today" "${HOME}/config/settings/Mail/Menu Links/R) 本日受信したメール" -mv -f -v "${HOME}/config/settings/Mail/Menu Links/Sent Today" "${HOME}/config/settings/Mail/Menu Links/T) 本日送信したメール" - -# Set up the spam classifier server. -copyattr -d -m bin/AGMSBayesianSpamServer ~/config/bin/AGMSBayesianSpamServer -mkdir -p ~/config/settings/AGMSBayesianSpam -if test ! -e "${HOME}/config/settings/AGMSBayesianSpam/AGMSBayesianSpam Database"; then - cp bin/SampleSpamDatabase "${HOME}/config/settings/AGMSBayesianSpam/AGMSBayesianSpam Database"; -fi -copyattr -d -m bin/SoundGenuine "${HOME}/config/settings/AGMSBayesianSpam/SoundGenuine" -copyattr -d -m bin/SoundSpam "${HOME}/config/settings/AGMSBayesianSpam/SoundSpam" -copyattr -d -m bin/SoundUncertain "${HOME}/config/settings/AGMSBayesianSpam/SoundUncertain" - -# Patch up things that need Japanese names. Do it here before the daemon is -# started. A link (rather than renaming) is done so that saved chain settings, -# which use the file names of the add-ons, will still work if they were made in -# English mode. Also done in the English version, in case someone was using -# Japanese and switched back to English. -ln -f -s -v "${HOME}/config/add-ons/mail_daemon/system_filters/Inbox" "${HOME}/config/add-ons/mail_daemon/system_filters/受信箱" -ln -f -s -v "${HOME}/config/add-ons/mail_daemon/system_filters/Outbox" "${HOME}/config/add-ons/mail_daemon/system_filters/送信箱" -ln -f -s -v "${HOME}/config/add-ons/mail_daemon/system_filters/New Mail Notification" "${HOME}/config/add-ons/mail_daemon/system_filters/着信通知方法" - -# Various fixups... - -# The word index files sometimes go corrupt. Since they are regenerated if -# they aren't there, this is fixed by just deleting the whole annoying -# directory. -rm -r /boot/beos/etc/word_index/ - -# The old installer used to delete the developer's link to the libmail.so -# library, so put it back. Do for x86 and ppc, will do nothing if you don't -# have that development system installed (ln will fail harmlessly). Won't work -# if you have both PPC and x86 development systems. -if test -e "/boot/develop/lib/x86/libmail.so"; then - echo "/boot/develop/lib/x86/libmail.so already exists, no need to fix."; -else - ln -s /boot/beos/system/lib/libmail.so /boot/develop/lib/x86/libmail.so -fi -if test -e "/boot/develop/lib/ppc/libmail.so"; then - echo "/boot/develop/lib/ppc/libmail.so already exists, no need to fix."; -else - ln -s /boot/beos/system/lib/libmail.so /boot/develop/lib/ppc/libmail.so -fi - -# Force the MIME database to reload the icons and other application info, since -# it doesn't do it automatically and we sometimes add new icons. -setmime -remove application/x-vnd.Be-POST; mimeset /system/servers/mail_daemon -setmime -remove application/x-vnd.Be-MAIL; mimeset /boot/beos/apps/BeMail -mimeset ~/config/bin/AGMSBayesianSpamServer - -setmime -set text/x-email -preferredApp /boot/beos/apps/BeMail -preferredAppSig application/x-vnd.Be-MAIL -setmime -set text/x-vnd.be-maildraft -preferredApp /boot/beos/apps/BeMail -preferredAppSig application/x-vnd.Be-MAIL -setmime -set text/x-partial-email -preferredApp /boot/beos/system/servers/mail_daemon -preferredAppSig application/x-vnd.Be-POST - -sleep 1 -/system/Deskbar & -sleep 1 -/system/servers/mail_daemon -M & -sleep 2 - -# Create the MIME types and indices needed by the spam server. Note that it -# modifies the e-mail type by adding attributes to it, so we have to wait until -# the daemon has started and created the text/x-email MIME type entry. -~/config/bin/AGMSBayesianSpamServer InstallThings - -sync -alert "Mail Daemon Replacementインストール - - インストールが完了しました。 - 再インストールする際は再度 - パッケージの解凍から行ってください。" - -# Launch prefs if this is a new install of MDR -if test ! -e "/boot/home/config/settings/Mail/chains"; then - /boot/beos/preferences/E-mail & -fi - -# Prevent a second attempt to install since all our source files have been moved / deleted. -echo "This one use install script will now self destruct..." -rm install.japanese.sh diff --git a/src/servers/mail/install.sh b/src/servers/mail/install.sh deleted file mode 100755 index 03179ce538..0000000000 --- a/src/servers/mail/install.sh +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/sh -base=`dirname "$0"` -cd "$base" - -RETURN=`alert "There can only be ONE version of mail_daemon on the system at one time (see the enclosed README file for why). - -Choose 'Backup' if you wish to keep your old mail_daemon, E-mail preferences app, and BeMail, and this is the first time you're installing the Mail Daemon Replacement (saves them in /boot/home/maildaemon.zip). Otherwise, you should choose 'Purge' to clear the other versions from your system." "Purge" "Backup" "Abort - Don't do anything!"` - -if [[ $RETURN = Purge ]] -then - # note: we don't remove libmail.so, because it doesn't matter here, and there may be symlinks and things - query -a 'BEOS:APP_SIG == "application/x-vnd.Be-POST" || BEOS:APP_SIG == "application/x-vnd.Be-mprf" || BEOS:APP_SIG == "application/x-vnd.Be-MAIL" || BEOS:APP_SIG == "application/x-vnd.agmsmith.spamdbm" || BEOS:APP_SIG == "application/x-vnd.agmsmith.AGMSBayesianSpamServer"' | grep -v "`/bin/pwd`" | xargs rm -f -elif [[ $RETURN = Backup ]] -then - query -a 'BEOS:APP_SIG == "application/x-vnd.Be-POST" || BEOS:APP_SIG == "application/x-vnd.Be-mprf" || BEOS:APP_SIG == "application/x-vnd.Be-MAIL" || BEOS:APP_SIG == "application/x-vnd.agmsmith.spamdbm" || BEOS:APP_SIG == "application/x-vnd.agmsmith.AGMSBayesianSpamServer" || name == libmail.so' | grep -v "`/bin/pwd`" | xargs zip -ym /boot/home/maildaemon.zip -else - alert "No backup or install done. That means it's up to YOU to purge all of your old mail_daemons, install the new ones and ensure that the new version is the only version." - exit -1 -fi - -# Do the shutdown before the alert, so that programs that take 10 seconds to terminate (spam server) have time while the alert is up. -echo "Shutting down deskbar and other programs that may have locked the mail library in use." -quit "application/x-vnd.agmsmith.AGMSBayesianSpamServer" -quit "application/x-vnd.agmsmith.spamdbm" -quit "application/x-vnd.Be-POST" -quit "application/x-vnd.Be-TSKB" - -echo "Removing obsolete files - either we are using a new name or they moved to a new place." -rm -v /boot/home/config/add-ons/mail_daemon/inbound_filters/AGMSBayesianSpamFilter # Obsolete filter. -rm -v /boot/home/config/lib/libtextencoding.so # We're replacing this lib with one in a system folder. - -response=`alert "Would you like to automatically overwrite existing files, or receive a prompt?" "Overwrite" "Prompt"` - -if [ $response == "Prompt" ] -then - if [ -e /boot/beos/apps/Terminal ] - then - terminal=/boot/beos/apps/Terminal - else - terminal=`query Terminal | head -1` - fi - if [ -e /boot/beos/bin/unzip ] - then - uz=/boot/beos/bin/unzip - else - uz=`query unzip | head -1` - fi - $terminal -t "installer" $uz -d / install.zip -else # Overwrite - unzip -od / install.zip -fi - - -# Reset the relevant parts of the MIME database, now that the new programs are installed. -echo "Resetting the MIME database to refer to the new programs." -setmime -remove application/x-vnd.Be-POST; mimeset /system/servers/mail_daemon -setmime -remove application/x-vnd.Be-MAIL; mimeset /boot/beos/apps/BeMail -setmime -remove application/x-vnd.agmsmith.AGMSBayesianSpamServer -setmime -remove application/x-vnd.agmsmith.spamdbm ; mimeset ~/config/bin/spamdbm -setmime -set text/x-email -preferredApp /boot/beos/apps/BeMail -preferredAppSig application/x-vnd.Be-MAIL -setmime -set text/x-vnd.be-maildraft -preferredApp /boot/beos/apps/BeMail -preferredAppSig application/x-vnd.Be-MAIL -setmime -set text/x-partial-email -preferredApp /boot/beos/system/servers/mail_daemon -preferredAppSig application/x-vnd.Be-POST - - -#Restart the deskbar -/boot/beos/system/Deskbar > /dev/null & - - -#Sometimes the OpenSSL installer is dumb and doesn't create the requisite symlinks -if test ! -e ~/config/lib/libssl.so && test -e ~/config/lib/libssl.so.0.9.7; then - ln -s ~/config/lib/libssl.so.0.9.7 ~/config/lib/libssl.so - ln -s ~/config/lib/libcrypto.so.0.9.7 ~/config/lib/libcrypto.so -fi -# might as well create these links, as they're useful for compiling -if test ! -e /boot/develop/lib/x86/libssl.so && test -e ~/config/lib/libssl.so; then - ln -s ~/config/lib/libssl.so /boot/develop/lib/x86/libssl.so - ln -s ~/config/lib/libcrypto.so /boot/develop/lib/x86/libcrypto.so -fi -if test ! -e /boot/develop/headers/openssl && test -e ~/config/include/openssl; then - ln -s ~/config/include/openssl/ /boot/develop/headers/openssl -fi - - -# Set up the spam database manager file types and sound file names, make spam indices. -spamdbm InstallThings - - -# Launch prefs if this is a new install of MDR (saving prefs starts the daemon). -if test ! -e "/boot/home/config/settings/Mail/chains"; then - /boot/beos/preferences/E-mail & -else # Need to explicitly restart the daemon. - /boot/beos/system/servers/mail_daemon > /dev/null & -fi - -alert "Finished installing" "OK"