MAILDBUPDATE.IN

Section: Maintenance Commands (8)
Index Return to Main Contents
 

NAME

mailDBupdate.in - manage users and aliases for /NextApps/Mail.app and Newsreaders with MailTIFF ability

fetchMailTIFFs - automatically retrieve MailTIFFs from the NEXTTOYOU MailTIFFs database

convertMailTIFFs - convert MailTIFF names to the correct format  

SYNOPSIS

mailDBupdate.in [ -a alternative_hostname -d days -f -h -l logfile_size -m enhancemail_path -n inn_path -o -s datasize -t time_until_deletion -x network_path ] [ other_hosts... ]

fetchMailTIFFs [ -h -l -t timeout ]

convertMailTIFFs  

DESCRIPTION

mailDBUpdate.in is a replacement for NeXT's mailDBupdate for computers which are connected to the internet. mailDBupdate can't handle internet users correctly.

mailDBupdate.in creates and maintains the aliases and passwd files that are normally found in the directory /LocalLibrary/Images/People. The contents of these two files appear in the Users, Groups, and Login Names components of Mail's Addresses panel. They enable Mail.app and some newsreaders to display pictures of users in the upper right corner of the mailbox window if a TIFF file named like their mail address is stored in /LocalLibrary/Images/People. To get detailed information about the possible options, use the -h option for help. Look at /LocalLibrary/Images/People/log to get logging information.

mailDBupdate.in is a zsh script. If you use NEXTSTEP < v3.3 and don't have installed zsh, you need to install it in /usr/bin.  

DIFFERENCES TO mailDBupdate

Contrary to mailDBupdate, mailDBupdate.in does not interpret entries in the NetInfo aliases database. This way, a lot of unnecessary and confusing entries of aliases of virtual system users are avoided, but under certain circumstances (large networks with a lot of local users with user names hard to remember) this may be a disadvantage. Aliases for users may, however, be entered in the aliases.in file (see below).

Contrary to mailDBupdate, mailDBupdate.in lists only "real" users from NetInfo in passwd. Virtual system users (with a user ID < 100) or user templates (with a home directory in the /usr/template hierarchy) won't get listed. This way, the Login Names browser of Mail's Addresses panel becomes easier to handle.

Contrary to mailDBupdate, mailDBupdate.in lists only the user names and strips off the remaining NetInfo information. This is sufficient for the purpose of /LocalLibrary/Images/People/passwd and makes it easier to read.

Contrary to mailDBupdate, mailDBupdate.in registers users of both the root and the local NetInfo domain of the computer which it is running on. Local users of other hosts of the NetInfo network might be registered as well by adding the hostnames of these computers as parameters for mailDBupdate.in.  

ENHANCEMENTS TO mailDBupdate

For each user of the local Netinfo network mailDBupdate.in adds an alias of the full internet address in the form of user@host.domain: user. This way, each mail from a user of the NetInfo network that returns from the internet e.g. via a mailing list gets recognized as from this user. The domain name is retrieved from a resolver entry in NetInfo or else the flat file /etc/resolv.conf.

In case the user's mail address includes a different name for host rather than the hostname of the computer mailDBupdate.in is running on, mailDBupdate.in allows to specify an alternative hostname as a parameter to the option -a and then enters aliases with this alternative hostname, too. In particular, -a "" may be entered for no hostname at all in the mail address, i.e. user@domain (note that there must be a space between -a and "" in this case!).

mailDBupdate.in adds all users from the internet it finds MailTIFFs for in /LocalLibrary/Images/People to the passwd file. This is necessary because Mail.app will display pictures only from users listed in passwd. Note that Mail.app registers new users only after a restart!

For users from the internet who write from different addresses, aliases may be manually entered in a file named /LocalLibrary/Images/People/aliases.in in the form of newuser@newhost.newdomain: user@host.domain, given that the user's picture is named user@host.domain.tiff. mailDBupdate.in will add entries in this file to aliases. You may also enter manually any other aliases you may want into aliases.in. Especially, if different users of a local network need different alternative hostnames, the -a option will not be sufficient and the aliases needed must be entered manually into aliases.in.

For MailTIFFs retrieved from the NEXTTOYOU MailTIFFs database (see below), if there are according aliases files listing all aliases of the user, mailDBupdate.in will register these aliases files, import their data into aliases.in automatically and delete them afterwards. This way the aliases.in file gets updated automatically if you get your MailTIFFs from the NEXTTOYOU database.

MailTIFFs which have been stored by EnhanceMail.bundle (version >= 2.0 beta7) will be imported into /LocalLibrary/Images/People thereby allowing newsreaders to benefit from the data. For the correct translation of file names mailDBupdate.in makes use of the file aliases.tiffs which is produced by EnhanceMail in every directory it stores MailTIFFs in. Note that Mail.app will register these new users only after a restart so that MailTIFFs received via EnhanceMail will "vanish" between a run of mailDBupdate.in and the next restart of Mail.app!

mailDBupdate.in will delete MailTIFFs from users who have been stored neither in a mailbox nor in PersonalINN or another inn installation for a certain period (default 6 months). Note that this period starts with the time when no mail and no posting of this user have been stored on your local computer anymore, not with the time when they arrived. Since this function puts a heavy load on the computer, it is executed only every 10 days (changeable with the -d option).  

MAILTIFF NAMING CONVENTION

MailTIFFs must simply have the name mailaddress.tiff. For a local user, mailaddress is just his/her login name. For a user from the internet, it is his/her full internet address, i.e. user@host.domain, so the corresponding TIFF name would be user@host.domain.tiff. This is in conformity with Mail.apps format so no additional aliases are necessary for users from the internet, which again makes administration easier. Note, however, that for historic reasons other formats for mail pictures have been in use. Newsreaders may have been adjusted to these other formats; as of now, at least Alexandra.app (version 0.82 modified) is compatible with Mail.apps format and the /LocalLibrary/Images/People database.

If you already have a lot of MailTIFFs in the old format user.host.domain (as used by NewsGrazer), use convertMailTIFFs to convert them.  

NEXTTOYOU MAILTIFFS DATABASE

Pictures of users from the internet may be retrieved from various servers, people's homepages or via the X-Image-URL mechanism of EnhanceMail.bundle. However, NEXTTOYOU offers a central database for pictures of anyone from the whole NeXT community. To get the pictures from this pool just start the fetchMailTIFFs utility when connecting to the internet. Every 10 days fetchMailTIFFs will automatically get you all new MailTIFFs from the NEXTTOYOU database and import them into LocalLibrary/Images/People. It will also get the according aliases files, if present. If you experience a timeout with fetchMailTIFFs because of a very slow internet connection, change the timeout default setting (30s) with the -t option. Use the -h option to display information about the options available in fetchMailTIFFs.  

MAILTIFF FORMAT

If you agree to have a picture of yours published, you are strongly encouraged to mail a TIFF according to the naming convention from above (with your full internet address!) to MailTIFFs@nexttoyou.de. Make sure your pictures are in 64 x 64 pixel format and LZW compressed. If you want a new MailTIFF of yours to replace the old one, just send a new MailTIFF of the same name to MailTIFFs@nexttoyou.de; it will automatically replace the old one in all people's MailTIFFs databases.  

ALIASES FILES FORMAT

If you write from more than one internet address and want your MailTIFF to be recognized for all of these addresses, you can include an ASCII aliases file to your submission to the NEXTTOYOU MailTIFFs database. This file must have the name mailaddress.aliases where mailaddress is the address used for the MailTIFF. In this file you must write your alternative email addresses, one each line, finished by Return. The data in this file will be automatically imported into the aliases.in files of all users who get their MailTIFFs automatically from the NEXTTOYOU database via fetchMailTIFFs. If your mail address changes, just send a new aliases file of the same name to MailTIFFs@nexttoyou.de. The new aliases it contains will automatically be added to all people's aliases files.

Note that if you haven't posted on usenet for a long time, you might want to resend your MailTIFF to the NEXTTOYOU MailTIFFs database since your MailTIFF is probably deleted from most people's machines by mailDBupdate.in's automatic delete function.  

HISTORY

Version 1.1, written May 1997 by Uli Zappe <uli@nexttoyou.de> for NEXTTOYOU. Thanks to Detlev Droege <droege@informatik.uni-koblenz.de> for valuable hints!  

NOTE

An article describing this software and NEXTSTEPs mail picture mechanism in detail has been published in NEXTTOYOU 1/1997.  

FILES

/LocalLibrary/Images/People/passwd /LocalLibrary/Images/People/aliases /LocalLibrary/Images/People/aliases.in /LocalLibrary/Images/People/log /LocalLibrary/Images/People/.fetchDate /LocalLibrary/Images/People/.deleteMailTIFFs  

KNOWN LIMITATIONS

mailDBupdate.in works only with NetInfo networks.

mailDBupdate.in expects the MailTIFFs database to be in LocalLibrary/Images/People of the computer it is installed on and the users' mailboxes to be in ~/Mailboxes. These paths cannot be configured but by editing mailDBupdate.in.

mailDBupdate.in's function to delete old MailTIFFs cannot cope with more than approx. 8000 newsgroups. Contact the author if you run into problems regarding this number.

fetchMailTIFFs expects the MailTIFFs database to be in LocalLibrary/Images/People of the computer it is installed on. This path cannot be configured.


 

Index

NAME
SYNOPSIS
DESCRIPTION
DIFFERENCES TO mailDBupdate
ENHANCEMENTS TO mailDBupdate
MAILTIFF NAMING CONVENTION
NEXTTOYOU MAILTIFFS DATABASE
MAILTIFF FORMAT
ALIASES FILES FORMAT
HISTORY
NOTE
FILES
KNOWN LIMITATIONS

This document was created by man2html, using the manual pages.
Time: 04:45:59 GMT, April 11, 2025