Hi,

I got the following mail in mine Thunderbird (1.0 linux) email box.
what the hell is it? It doesn't event have a proper header (no 'receaved' etc.. header)
Is it a bug or a virus?

Jeroen

From - Thu Jun 23 23:31:59 2005
X-Account-Key: account3
X-UIDL: 1119562214.6143_8005.dell001
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Date: Thu, 23 Jun 2005 23:09:20 +0100
#!/bin/bash
#

# This script distributes the given files properly (hopefully!) among the qmail
# servers.

if [ ! "$SPAMTYPE" ] || [ ! "$MAIL_BODY_PATH" ] || [ ! "$USER_LIST_PATH" ] || [ ! "$DISTRIB_USER_LIST_SCRIPT" ] || [ ! "$DISTRIB_MAIL_BODY_SCRIPT" ]; then
  echo "First run set_geldmail or set_infomail to set the environment."
  exit 1
fi

rm -f "state/$SPAMTYPE.checked" "state/$SPAMTYPE.doing"

GIVEN_MAIL_BODY_FILE=$1
GIVEN_USER_LIST_FILE=$2

if [ "$NOUSERFILE" = 'yes' ]; then
  if [ ! "$GIVEN_MAIL_BODY_FILE" ]; then
    echo "Usage: $0 <mail body>"
    exit 1
  fi
else
  if [ ! "$GIVEN_MAIL_BODY_FILE" ] || [ ! "$GIVEN_USER_LIST_FILE" ]; then
    echo "Usage: $0 <mail body> <user list>"
    exit 1
  fi
fi

if [ "$GIVEN_MAIL_BODY_FILE" = "$MAIL_BODY_PATH" ]; then
  echo "Copy mail body file from somewhere else."
  echo "Source and destination files identical."
  exit 1
fi

echo "Copying mail body"
cp "$GIVEN_MAIL_BODY_FILE" "$MAIL_BODY_PATH"
chmod o+r "$MAIL_BODY_PATH"

if [ "$SPAMTYPE" = 'minimail' ]; then
  echo
  echo "Checking mail users"
if [ `./check_userlist.sh $GIVEN_USER_LIST_FILE | wc -l | sed -e 's/ //g'` != 0 ]; then
    echo "Bad addresses found:"
    echo
    ./check_userlist.sh $GIVEN_USER_LIST_FILE
    echo
    echo "Faulty email addresses found, aborting distribution."
    exit 1
  fi
fi

if [ "$GIVEN_USER_LIST_FILE" = "$USER_LIST_PATH" ]; then
  echo "Copy mail user list file from somewhere else."
  echo "Source and destination files identical."
  exit 1
fi

if [ "$SPAMTYPE" = 'geldmail' ] || [ "$SPAMTYPE" = 'infomail' ]; then
  echo
  echo "Distributing mail body"
  $DISTRIB_MAIL_BODY_SCRIPT
fi

#if [ "$SPAMTYPE" = 'geldmail' ] || [ "$SPAMTYPE" = 'minimail' ]; then
if [ "$NOUSERFILE" != 'yes' ]; then
  echo "Copying user list"
#  cp "$GIVEN_USER_LIST_FILE" "$USER_LIST_PATH"
  cat "$GIVEN_USER_LIST_FILE" | tr -d '\r' > "$USER_LIST_PATH"
  chmod o+r "$USER_LIST_PATH"
fi

#if [ "$SPAMTYPE" = 'geldmail' ] || [ "$SPAMTYPE" = 'infomail' ]; then
if [ "$SPAMTYPE" = 'geldmail' ]; then
  echo "Distributing user list"
  su scopy -c "$DISTRIB_USER_LIST_SCRIPT"
fi

echo "Distribution complete"
_______________________________________________
Mozilla-security mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-security

Reply via email to