man, 27.09.2004 kl. 16.44 skrev Alex Needham:
I'm glad some one else is trying to get the best of breed running as well.
Thanks for your response a few clarifications below, there seems to be some
discuusion as to mailbot as a vacation tool?
As far as mailbot as a ucb vacation substitute goes (Postfix 2.1,
maildrop 1.7), IMHO it's a no-no-no. I have the following reformail
stuff working fine, for a user, using his mailer; user creates a
vacation message for himself in his MUA (Evo, Thunderbird, whatever),
sends it to himself, drags it to his INBOX.vacation directory (the words
that you don't understand are Dutch, which is where I've lived for many
years, now). When he's back, he removes the message and
compacts/expunges his .vacation folder.
This directory should be reckoned as being his $HOME directory in the
system's $HOME configuration (mine's a virtual LDAP configuration and is
for both Unix and virtual users; your own skills are needed as a
substitute for $HOME, depending). The entry is based on standard
maildrop/reformail documentation, with a bit of experimenting:
if ( /^Precedence:[:space:]bulk/ )
{
to "Maildir"
}
VAKANTIE="$HOME/Maildir/.vakantie/cur"
`test -a $VAKANTIE/1*`
if( $RETURNCODE == 0 )
{
cc $DEFAULT
xfilter "reformail -k -r -t"
/^To:.*/
getaddr($MATCH) =~ /^.*/;
MATCH=tolower($MATCH)
flock "vacation.lock" {
current_time=time;
if (gdbmopen("vacation.dat", "C") == 0)
{
if ( (prev_time=gdbmfetch($MATCH)) ne "" && \
$prev_time >= $current_time - 60 * 60 * 24 * 7)
{
exit
}
gdbmstore($MATCH, $current_time)
gdbmclose
}
}
BERICHT="`awk -F: '/[Bb]ericht:/ { print $2 }' $VAKANTIE/* | awk
'!/</' | sed 's/bericht://'`"
to "| ( cat - ; echo '' ; echo $BERICHT ) | $SENDMAIL -t"
}
As I said, it works for me, YMMV.
As to Norway in January, Bergen or Oslo, that's one of the reasons I
moved to Holland, aeons ago :) My adopted daughter comes from Vadsø
(North-East Finnmark), which is much worse.
Best,
--Tonni