![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| adding a user to cron.allow | MisterKhan | Shell Programming and Scripting | 6 | 03-10-2009 01:50 PM |
| Remove text between headers while leaving headers intact | Trones | Shell Programming and Scripting | 3 | 12-27-2008 08:06 PM |
| adding date to cron log | JohnH | Shell Programming and Scripting | 2 | 09-18-2006 10:07 AM |
| C Headers | biosdos | High Level Programming | 0 | 01-22-2006 02:48 PM |
| Adding command line env in cron env | abhijeetkul | Shell Programming and Scripting | 1 | 12-13-2005 09:42 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
cron-apt - adding X-headers
Hi,
We use a ticket system for our IT queries called OTRS. Emails sent to that system are placed in ticket queues. OTRS reads X- headers in emails as described here: http://dev.jasonpruim.com/otrs/doc/X-OTRS-Headers.txt We would like to be able to configure cron-apt to place certain X- headers in the notification emails it sends. It will then send the email to the OTRS system which will read those X- headers and act accordingly, eg directly placing the ticket in a particular queue or whatever. I am new to scripting so still finding my feet. So far I have edited: /usr/share/cron-apt/functions Code:
mail -a "$XHEADER" "$MAILTO" < "$MAIL"
mail -s "$SUBJECT" "$MAILTO" < "$MAIL"
Code:
XHEADER="X-OTRS-Queue: Updates" Sorry if I'm a bit vague just not sure what to be asking really! Any help would be great, Thanks in advance. |
![]() |
| Bookmarks |
| Tags |
| cron-apt, mailx, x-headers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|