install-data:
$(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/messages
- @for i in public_clients citadel_urlshorteners.rc \
+ @for i in public_clients \
`find $(srcdir)/messages $(srcdir)/network -type f | grep -v .svn`; do \
echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
$(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
install-data-new:
$(srcdir)/mkinstalldirs $(DESTDIR)$(ETC_DIR)/
$(INSTALL_DATA) $(srcdir)/public_clients $(DESTDIR)$(ETC_DIR)/public_clients
- $(INSTALL_DATA) $(srcdir)/citadel_urlshorteners.rc $(DESTDIR)$(ETC_DIR)/citadel_urlshorteners.rc
$(INSTALL_DATA) $(srcdir)/network/mail.aliases $(DESTDIR)$(ETC_DIR)/mail.aliases
$(srcdir)/mkinstalldirs $(DESTDIR)$(STATICDATA_DIR)/messages
$(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/unstripped
cp $(SERVER_TARGETS) $(DESTDIR)$(prefix)/unstripped/
- @for i in utilsmenu database_cleanup.sh migrate_aliases.sh; do \
+ @for i in utilsmenu database_cleanup.sh ; do \
if test -f $(srcdir)/$$i; then \
echo $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
$(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
fi \
done
cp citserver $(DESTDIR)/$(UTILBIN_DIR)/citserver.unstripped
- cp migrate_aliases.sh $(DESTDIR)/$(UTILBIN_DIR)/
@for i in $(UTILBIN_TARGETS); do \
if test -f $$i; then \
echo $(INSTALL) $$i $(DESTDIR)/$(UTILBIN_DIR)/$$i; \
+++ /dev/null
-# these URLs will be expanded when fetching them from
-# RSS-Feeds with short contents (like twitter feeds)
-# we expect to find a 30x location header, if we find it,
-# we put it in front of that URL, so the full information
-# whether one wants to click that or not can be expanded.
-http://bit.ly/
-http://krz.ch/
-http://flic.kr/
-http://sns.ly/
-http://wp.me/
-http://ow.ly/
-http://tinyurl.com/
-http://goo.gl/
-http://dld.bz/
-http://tiny.cc/
-http://j.mp/
-http://su.pr/
-#Posting Images to twitter: http://yfrog.com/
-http://t.co/
-http://nblo.gs/
-http://0x4d.ch/
-http://fb.me/
-http://tagi.ch/
-http://post.ly/
-http://aol.it/
etc/citadel/mail.aliases
etc/citadel/public_clients
-etc/citadel/citadel_urlshorteners.rc
usr/share/citadel-server/help
etc/citadel/messages
usr/lib/citadel-server/ctdlmigrate
usr/lib/citadel-server/chkpwd
usr/lib/citadel-server/chkpw
usr/lib/citadel-server/citserver.unstripped
-usr/lib/citadel-server/migrate_aliases.sh
usr/lib/citadel-server/aidepost
usr/sbin/citmail
usr/lib/citadel-server/msgform
echo -n "applying your settings.... "
/usr/lib/citadel-server/setup -q
echo "done"
- # we're in a fresh install, so we send the welcome message.
+ # this is a new installation
if test -z "$2"; then
- echo "migrating mail aliases from other mailers"
- /usr/lib/citadel-server/migrate_aliases.sh /etc/citadel/mail.aliases
i=0;
while test ! -S /var/run/citadel/lmtp.socket -a "$i" -lt "10"; do
sleep 1
/* some of the frequently used files */
extern char file_citadel_control[PATH_MAX];
extern char file_citadel_config[PATH_MAX];
-extern char file_citadel_urlshorteners[PATH_MAX];
extern char file_lmtp_socket[PATH_MAX];
extern char file_lmtp_unfiltered_socket[PATH_MAX];
extern char file_arcq[PATH_MAX];
+++ /dev/null
-#!/bin/bash
-if test -z "$1"; then
- echo "Usage: $0 mail.aliases"
- exit
-fi
-
-CITALIAS=$1
-if test -f /etc/aliases; then
-# don't work with temp fils, so they can't get hijacked.
-# sorry users with megabytes of aliases.
- NLINES=`cat /etc/aliases | \
- sed -e "s; *;;g" \
- -e "s;\t*;;g" | \
- grep -v ^root: | \
- grep -v ^# | \
- sed -e "s;:root;,room_aide;" \
- -e "s;:;,;" |wc -l`
-
- for ((i=1; i <= $NLINES; i++)); do
- ALIAS=` cat /etc/aliases | \
- sed -e "s; *;;g" \
- -e "s;\t*;;g" | \
- grep -v ^root: | \
- grep -v ^# | \
- sed -e "s;:root;,room_aide;" \
- -e "s;:;,;" |head -n $i |tail -n 1`
- ORG=`echo $ALIAS|sed "s;,.*;;"`
- if grep "$ORG" "$CITALIAS"; then
- echo "Ignoring Alias $ORG as its already there"
- else
- echo "$ALIAS" >>$CITALIAS
- fi
- done
-else
- echo "no /etc/aliases found."
-fi
\ No newline at end of file
/* some of our files, that are needed in several places */
char file_citadel_control[PATH_MAX]="";
char file_citadel_config[PATH_MAX]="";
-char file_citadel_urlshorteners[PATH_MAX]="";
char file_lmtp_socket[PATH_MAX]="";
char file_lmtp_unfiltered_socket[PATH_MAX]="";
char file_arcq[PATH_MAX]="";
"%scitadel.config",
ctdl_autoetc_dir);
StripSlashes(file_citadel_config, 0);
- snprintf(file_citadel_urlshorteners,
- sizeof file_citadel_urlshorteners,
- "%scitadel_urlshorteners.rc",
- ctdl_etc_dir);
- StripSlashes(file_citadel_urlshorteners, 0);
snprintf(file_lmtp_socket,
sizeof file_lmtp_socket,
"%slmtp.socket",