head	1.39;
access;
symbols
	release-2-3-0-final:1.39
	release-2-2-6-final:1.34
	release-2-2-5-final:1.34
	release-2-2-4-final:1.34
	release-2-2-3-final:1.33
	release-2-2-2-final:1.33
	release-2-2-0-final:1.33
	release-2-1-0-rc3:1.33
	release-2-1-0-rc2:1.31
	release-2-1-0-rc1:1.24
	release-2-0-1-beta2:1.23
	release-2-0-1-beta1:1.23
	release-2-0-0-beta9:1.17
	release-2-0-0-beta8:1.12
	release-2-0-0-beta7:1.12
	release-2-0-0-beta5:1.10
	release-2-0-0-beta4:1.9;
locks; strict;
comment	@# @;


1.39
date	2004.03.10.00.02.08;	author nwhitehorn;	state Exp;
branches;
next	1.38;

1.38
date	2004.03.09.23.11.04;	author nwhitehorn;	state Exp;
branches;
next	1.37;

1.37
date	2004.03.09.22.03.00;	author brunoga;	state Exp;
branches;
next	1.36;

1.36
date	2004.03.09.21.04.52;	author nwhitehorn;	state Exp;
branches;
next	1.35;

1.35
date	2004.03.09.20.31.40;	author nwhitehorn;	state Exp;
branches;
next	1.34;

1.34
date	2003.09.22.22.57.33;	author agmsmith;	state Exp;
branches;
next	1.33;

1.33
date	2003.07.11.13.21.20;	author agmsmith;	state Exp;
branches;
next	1.32;

1.32
date	2003.07.08.22.13.28;	author agmsmith;	state Exp;
branches;
next	1.31;

1.31
date	2003.07.07.18.03.23;	author agmsmith;	state Exp;
branches;
next	1.30;

1.30
date	2003.07.07.17.50.32;	author nwhitehorn;	state Exp;
branches;
next	1.29;

1.29
date	2003.07.02.21.45.20;	author agmsmith;	state Exp;
branches;
next	1.28;

1.28
date	2003.07.02.20.37.41;	author agmsmith;	state Exp;
branches;
next	1.27;

1.27
date	2003.07.02.20.30.46;	author agmsmith;	state Exp;
branches;
next	1.26;

1.26
date	2003.07.02.20.02.28;	author agmsmith;	state Exp;
branches;
next	1.25;

1.25
date	2003.06.27.20.04.02;	author agmsmith;	state Exp;
branches;
next	1.24;

1.24
date	2003.06.26.18.10.46;	author nwhitehorn;	state Exp;
branches;
next	1.23;

1.23
date	2003.02.18.17.28.55;	author agmsmith;	state Exp;
branches;
next	1.22;

1.22
date	2003.02.16.20.55.01;	author agmsmith;	state Exp;
branches;
next	1.21;

1.21
date	2003.02.14.19.40.49;	author agmsmith;	state Exp;
branches;
next	1.20;

1.20
date	2003.02.14.19.29.21;	author agmsmith;	state Exp;
branches;
next	1.19;

1.19
date	2003.02.11.00.13.16;	author agmsmith;	state Exp;
branches;
next	1.18;

1.18
date	2003.02.08.21.54.13;	author agmsmith;	state Exp;
branches;
next	1.17;

1.17
date	2003.02.06.17.09.15;	author agmsmith;	state Exp;
branches;
next	1.16;

1.16
date	2003.02.04.20.42.15;	author agmsmith;	state Exp;
branches;
next	1.15;

1.15
date	2003.02.02.18.19.45;	author agmsmith;	state Exp;
branches;
next	1.14;

1.14
date	2003.01.30.13.46.18;	author agmsmith;	state Exp;
branches;
next	1.13;

1.13
date	2003.01.24.17.57.10;	author agmsmith;	state Exp;
branches;
next	1.12;

1.12
date	2002.12.12.00.53.45;	author agmsmith;	state Exp;
branches;
next	1.11;

1.11
date	2002.12.12.00.51.15;	author agmsmith;	state Exp;
branches;
next	1.10;

1.10
date	2002.11.20.22.58.10;	author nwhitehorn;	state Exp;
branches;
next	1.9;

1.9
date	2002.11.07.21.04.00;	author agmsmith;	state Exp;
branches;
next	1.8;

1.8
date	2002.11.04.02.25.57;	author agmsmith;	state Exp;
branches;
next	1.7;

1.7
date	2001.11.07.01.01.18;	author nwhitehorn;	state Exp;
branches;
next	1.6;

1.6
date	2001.11.07.00.54.27;	author nwhitehorn;	state Exp;
branches;
next	1.5;

1.5
date	2001.11.06.22.35.11;	author nwhitehorn;	state Exp;
branches;
next	1.4;

1.4
date	2001.11.06.21.53.47;	author nwhitehorn;	state Exp;
branches;
next	1.3;

1.3
date	2001.09.21.02.24.59;	author nwhitehorn;	state Exp;
branches;
next	1.2;

1.2
date	2001.09.20.23.44.10;	author nwhitehorn;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.06.23.58.29;	author nwhitehorn;	state Exp;
branches;
next	;


desc
@@


1.39
log
@FINALLY got the icon stuff working.
@
text
@#!/bin/sh

cd "$(dirname "$0")"

if pwd | grep " ";
  then alert "Please install from a directory with no spaces in the path name, the current one (`pwd`) has spaces.  Just move all the files to somewhere that doesn't have spaces, like /boot/home/mydirectory.  If there are spaces, the install script malfunctions.  Sorry.";
  exit 1;
fi

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.  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.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 "No backup will be done.  That means it's up to YOU to purge all of your old mail_daemons and ensure that the new version is the only version."
	exit -1
fi

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"

mkdir -p ~/config/add-ons/mail_daemon

copyattr -d -m bin/libmail.so /boot/beos/system/lib/libmail.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
rm -f -v "${HOME}/config/settings/Mail/Menu Links/F) 送信者を検索…"
rm -f -v "${HOME}/config/settings/Mail/Menu Links/D) ドラフトを開く…"
rm -f -v "${HOME}/config/settings/Mail/Menu Links/I) 受信箱を開く"
rm -f -v "${HOME}/config/settings/Mail/Menu Links/M) 郵便箱を開く"
rm -f -v "${HOME}/config/settings/Mail/Menu Links/S) 見出しで検索…"
rm -f -v "${HOME}/config/settings/Mail/Menu Links/T) 本日のメール"
rm -f -v "${HOME}/config/settings/Mail/Menu Links/R) 本日受信したメール"
rm -f -v "${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 -f -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 "Installation Complete."

# 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.sh
@


1.38
log
@Finished removing OpenSSL dependence. Added alert box if people don't have OpenSSL, with a button to take them to OpenSSL's BeBits page.
@
text
@d113 2
a114 4
rm ~/config/settings/beos_mime/text/x-partial-email ~/config/settings/beos_mime/text/x-email ~/config/settings/beos_mime/text/x-vnd.be-maildraft
# Remove this to deal with previous misconfiguration of the filetype
mimeset /system/servers/mail_daemon
mimeset /boot/beos/apps/BeMail
d117 4
@


1.37
log
@
We will not be including OpenSSL. We should check if the OpenSSL libs are installed and, if not, show an alert with a button that will send the user to the BeBits download page. Tried to do it but bash scripting is not what I am good at. :)
@
text
@d26 11
@


1.36
log
@Fixed a bug with icons
@
text
@a37 2
copyattr -d -m bin/libcrypto.so /boot/home/config/lib/libcrypto.so
copyattr -d -m bin/libssl.so /boot/home/config/lib/libssl.so
@


1.35
log
@Updated install scripts to include OpenSSL in the package, changed version number to 2.3.0, included Stefano's new icons, because they rock, updated the install script to not prevent the creation of the x-partial-email type with an icon, and added in some relevant copyright notices.
@
text
@d104 1
a104 1
rm ~/config/settings/beos_mime/text/x-partial-email
d106 3
a108 3
mimeset -F -apps /system/servers/mail_daemon
mimeset -F -apps /boot/beos/apps/BeMail
mimeset -F -apps ~/config/bin/AGMSBayesianSpamServer
@


1.34
log
@Change Don't do Anything wording to make it more obvious.
@
text
@d38 2
d104 2
@


1.33
log
@Updated to use new Japanese wording for the menu link queries.
@
text
@d12 1
a12 1
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.  Otherwise, you should choose 'Purge' to clear the other versions from your system." "Purge" "Backup" "Don't do anything!"`
@


1.32
log
@Split the Today's Mail query into two parts, Received Today and
Sent Today.  The date also changed from %today% to %last day%.
@
text
@d33 1
a33 1
rm -f "/boot/home/config/settings/Mail/New E-mail"
d50 8
a57 6
rm -v "${HOME}/config/settings/Mail/Menu Links/F) 送信者を検索…"
rm -v "${HOME}/config/settings/Mail/Menu Links/D) ドラフトを開く…"
rm -v "${HOME}/config/settings/Mail/Menu Links/I) 受信箱を開く"
rm -v "${HOME}/config/settings/Mail/Menu Links/M) 郵便箱を開く"
rm -v "${HOME}/config/settings/Mail/Menu Links/S) 見出しで検索…"
rm -v "${HOME}/config/settings/Mail/Menu Links/R) 本日のメール"
d83 1
a83 1
rm -r /boot/beos/etc/word_index/
@


1.31
log
@Keep self destruct last in file.
@
text
@d55 1
a55 1
rm -v "${HOME}/config/settings/Mail/Menu Links/T) 本日のメール"
@


1.30
log
@Made packages better.
@
text
@a117 4
# 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.sh

d122 4
@


1.29
log
@After much hacking around, with the BMimeType IsInstalled() not working
right (says it is but it isn't), we now use a command line argument and
the BMimeType.Delete function to wipe out the old MIME types rather than
trying to fiddle with files in the mime database.
@
text
@d121 5
@


1.28
log
@Oops, forgot the Spam database type, can be reset too.
@
text
@a103 8
# The daemon will reinstall the MIME type correctly if it isn't there.  This
# also removes some cruft that accumulates in the MIME database - the related
# attributes to display list sometimes gets a bit large and out of sync in the
# different columns.
rm ~/config/settings/beos_mime/text/x-email
rm ~/config/settings/beos_mime/text/x-partial-email
rm ~/config/settings/beos_mime/text/x-vnd.agmsmith.spam_probability_database

d107 1
a107 1
/system/servers/mail_daemon &
@


1.27
log
@Also refresh the text/x-email MIME type.
@
text
@d110 1
@


1.26
log
@Fix up MIME database to show new icons etc.
@
text
@a65 2
# Create the MIME types and indices needed by the spam server.
~/config/bin/AGMSBayesianSpamServer InstallThings
d77 1
d82 2
a83 1
# And the old installer used to delete the developer's link to the libmail.so
d85 2
a86 1
# have that development system installed (ln will fail harmlessly).
d104 5
a108 1
# The daemon will reinstall the MIME type correctly if it isn't there.
d115 6
@


1.25
log
@Have installer wipe out the word index directory and create the
symbolic link to the library for developers.
@
text
@d89 1
a89 1
	ln -v -s /boot/beos/system/lib/libmail.so /boot/develop/lib/x86/libmail.so
d94 1
a94 1
	ln -v -s /boot/beos/system/lib/libmail.so /boot/develop/lib/ppc/libmail.so
d96 9
@


1.24
log
@Fixed the partial message query bug on update installs.
@
text
@d78 19
@


1.23
log
@Remove menu links left over from previous installs in other languages.
@
text
@d33 1
@


1.22
log
@More Japanese translations.
@
text
@d42 4
d47 1
a47 1
unzip -n bin/ExtraMenuLinksForR5Tracker.zip -d ~/config/settings/Mail/Menu\ Links
d49 6
@


1.21
log
@Also include Japanese symbolic links in English version, just in case.
@
text
@d65 1
a65 1
ln -f -s -v "${HOME}/config/add-ons/mail_daemon/system_filters/New Mail Notification" "${HOME}/config/add-ons/mail_daemon/system_filters/郵便通告方法"
@


1.20
log
@Exit if the Do Nothing choice is selected!
@
text
@d58 9
@


1.19
log
@Don't need Spam database exists warning, new database is almost worthless.
@
text
@d23 1
@


1.18
log
@Updated the AGMSBayesianSpamServer documentation to match the current
version.  Also removed the Beep options from the spam filter, now they
are turned on or off in the system sound preferences.
@
text
@d48 1
a48 6
if test -e "${HOME}/config/settings/AGMSBayesianSpam/AGMSBayesianSpam Database";
  then
    alert "The spam database file (${HOME}/config/settings/AGMSBayesianSpam/AGMSBayesianSpam Database) already exists.

You can manually replace it with the SampleSpamDatabase if you wish to.  However, if you have customized your spam words (recommended so that it recognizes what YOUR genuine mail and spam look like) then you probably want to keep using your existing database.";
  else
@


1.17
log
@As koki suggested, I've added some more menu links to some useful
queries and query templates.
@
text
@d56 3
@


1.16
log
@Add a "sync" so disk cache flushed, just to make sure it's really finished.
@
text
@d41 4
d63 1
a64 1

@


1.15
log
@Changed quoted printable to encode control characters when it is
encoding for a header.  A certain Japanese ISP goes berzerk when
it sees unvarnished ESC codes in the header.
@
text
@d59 1
@


1.14
log
@As "Jack Burton" suggested, break up the big blobs of text to make
them more readable.
@
text
@d60 1
a60 1
alert "Installation Complete"
@


1.13
log
@Made install script into a one-use file.
@
text
@d10 3
a12 1
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.  Otherwise, you should choose 'Purge' to clear the other versions from your system." "Purge" "Backup" "Don't do anything!"`
d46 3
a48 1
    alert "The spam database file (${HOME}/config/settings/AGMSBayesianSpam/AGMSBayesianSpam Database) already exists.  You can manually replace it with the SampleSpamDatabase if you wish to.  However, if you have customized your spam words (recommended so that it recognizes what YOUR genuine mail and spam look like) then you probably want to keep using your existing database.";
@


1.12
log
@Removed trailing spaces.
@
text
@d57 4
@


1.11
log
@Might as well have the spam server set up its MIME types and indices
as part of the install, rather than having the user do it manually.
@
text
@d17 1
a17 1
then 
d19 1
a19 1
else 
@


1.10
log
@Updated docs, install scripts, and god knows what else.
@
text
@d47 3
a49 1
fi 
@


1.9
log
@Check for spaces in path name (was causing installations to fail), and
also install the AGMSBayesianSpam database.
@
text
@d46 1
a46 2
    cp SampleSpamDatabase "${HOME}/config/settings/AGMSBayesianSpam/AGMSBayesianSpam Database";
    rm SampleSpamDatabase;
@


1.8
log
@Added AGMSBayesianSpamServer to the build and install system.
@
text
@d5 5
d38 2
d41 8
@


1.7
log
@Works now
@
text
@d10 1
a10 1
	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"' | grep -v "`/bin/pwd`" | xargs rm -f
d13 1
a13 1
	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" || name == libmail.so' | grep -v "`/bin/pwd`" | xargs zip -ym /boot/home/maildaemon.zip
d20 1
d33 1
@


1.6
log
@Fixed some bugs
@
text
@d10 1
a10 1
	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"' | grep -v "`/bin/pwd`" | xargs rm -f
@


1.5
log
@New and improved for r2!
@
text
@d7 1
a7 1
if [[ $RETURN = "Purge" ]]
d10 2
a11 4
	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"' \
	| grep -v "`/bin/pwd`" \
	| xargs rm
elif [[ $RETURN = "Backup" ]]
d13 1
a13 3
	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" || name == libmail.so' \
	| grep -v "`/bin/pwd`" \
	| xargs zip -ym /boot/home/maildaemon.zip
d22 2
d27 1
a27 3
rm -f ~/config/lib/libmail2.so ~/config/lib/libnumail2.so /boot/system/lib/libmail.so
copyattr -d -m bin/libmail.so /boot/system/lib/libmail.so

d29 1
a29 3

rm -f /boot/beos/system/servers/mail_daemon /boot/beos/preferences/E-mail /boot/beos/apps/BeMail
copyattr -d -m bin/mail_daemon /boot/beos/system/servers/mail_daemon
d32 1
d34 1
a34 1
/boot/beos/system/Deskbar &
d36 1
a36 1
/boot/beos/system/servers/mail_daemon &
@


1.4
log
@Now works.
@
text
@d5 1
a5 1
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 and E-mail preferences app, and this is the first time you're installing the Mail Daemon Replacement.  Otherwise, you should choose 'Purge' to clear the other versions from your system." "Purge" "Backup" "Don't do anything!"`
d9 2
a10 1
	query -a 'BEOS:APP_SIG == "application/x-vnd.Be-POST" || BEOS:APP_SIG == "application/x-vnd.Be-mprf"' \
d15 1
a15 1
	query -a 'BEOS:APP_SIG == "application/x-vnd.Be-POST" || BEOS:APP_SIG == "application/x-vnd.Be-mprf" || name == libmail.so' \
d34 1
a34 1
rm -f /boot/beos/system/servers/mail_daemon /boot/beos/preferences/E-mail
d37 1
@


1.3
log
@Fixed whoops.
@
text
@d14 1
a14 1
	query -a 'BEOS:APP_SIG == "application/x-vnd.Be-POST" || BEOS:APP_SIG == "application/x-vnd.Be-mprf"' \
d28 2
a29 2
rm -f ~/config/lib/libmail2.so
copyattr -d -m bin/libnumail.so ~/config/lib/libnumail.so
@


1.2
log
@Numail install
@
text
@d26 2
@


1.1
log
@Numail. NuCVS.
@
text
@d24 1
a24 2
mkdir -p ~/config/add-ons/mail_daemon/protocols
mkdir -p ~/config/add-ons/mail_daemon/filters
d27 1
a27 1
copyattr -d -m bin/libmail2.so ~/config/lib/libmail2.so
d29 1
a29 6
rm -f ~/config/add-ons/mail_daemon/protocols/{POP3,SMTP}
copyattr -d -m bin/POP3 ~/config/add-ons/mail_daemon/protocols/POP3
copyattr -d -m bin/SMTP ~/config/add-ons/mail_daemon/protocols/SMTP

rm -f ~/config/add-ons/mail_daemon/filters/compatibility
copyattr -d -m bin/compatibility ~/config/add-ons/mail_daemon/filters/compatibility
a33 3

(cd $HOME/mail; mkindex MAIL:account)

@

