Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    No year in date on email message header

    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Description:
    The date in email message header for records sent from LMS02 does not include the year. This prevents the message from sorting properly in email.

    This is the date from the defective set of records: Date: Thu, 10 Jun EDT 11:13:47 -0400 (EDT)

    This is the date from a message that sorted properly: Date: Fri, 11 Jun 2004 10:04:34 -0400

    I was briefly testing the new function which allows patrons to choose the character set for messages sent by email. To do this I copied: /exlibris/aleph/u16_2/alephe/tab/send_mail.example to /exlibris/aleph/u16_2/alephe/tab/send_mail. That is when the error shows up.

    Resolution:
    [From site] In the file ./alephe/tab/send_mail (copied from send_mail.example) I changed the following line:

    From this:

    echo "From $USER "`date` > $TMPDIR/send_mail.$$

    To this:.

    echo "From $USER "`date and'%a %b %e %Y %T %Z'` > $TMPDIR/send_mail.$$

    The extra parameters on the date command format the date string so that the Year is in the same place as when messages are sent out without using the send_mail file.


    • Article last edited: 10/8/2013