mutt question
Hello:
Using mutt in an automated (Linux) process to send out event
notifications. All is well except that I see confusion between who is "To:" and
who is "cc:".
Here's a piece of the script:
export user1="user1@xxxxxxxxxxxxx"
export user2="user2@xxxxxxxxxxxxx"
export user3="user3@xxxxxxxxxxxxx"
export user4="user4@xxxxxxxxxxxxx"
export distribution-list="${user2} ${user3}"
.
.
mutt -s"subject-text" \
-apath/attachment.file \
${user1} admin<path/message-body.txt \
-c${distribution-list} \
-c${user4}
All the mail gets to all the addressees but:
The To: addressees are: ${user1} admin ${user3) #user3
is the tail-end of the distribution-list
The cc: addressees are: ${user2} and ${user4} #user2
is the first element of the distribution-list
Seems like only the first element in the distribution-list gets cc:,
the rest go to To:
Lockheed Martin - NE&SS Mount Laurel, NJ
Voice: 856 359-1806
Location 780 Centerton Rd.