The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-02-2009
karuna karuna is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 1
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"
/etc/cron-apt/config
Code:
XHEADER="X-OTRS-Queue: Updates"
When the email is sent the X-header seems to replace the Subject header, I'm assuming this is to do with mail. Can I merge those two commands together? or am I totally wrong?

Sorry if I'm a bit vague just not sure what to be asking really!

Any help would be great,
Thanks in advance.
  #2 (permalink)  
Old 04-03-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,754
Welcome.

What exactly is your question?
Closed Thread

Bookmarks

Tags
cron-apt, mailx, x-headers

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0