[email protected]:
> Hi list,
> 
> if you run postmap on an alias file by mistake it prints a warning but 
> still overwrites the .db file which is then unusable.
> 
> Is there any reason why postmap overwrites the .db although it detects 
> that the source file is not in the desired format?

1) It opens the output database.
2) It truncates the output database.
3) It reads the input.

Do you want it to read the whole input before step 1?
Do you want it to not truncate the database when 1% of inputs is 
suspect? 
10%? 
50%?

        Wietse
> 
> example:
> postmap  /etc/mail/aliases
> postmap: warning: /etc/mail/aliases, line 4: record is in "key: value" 

Reply via email to