Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Add header from commandline

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


exim at iancoetzee

Feb 5, 2010, 5:13 AM

Post #1 of 3 (683 views)
Permalink
Add header from commandline

Hi all

I just noticed, I ask some pretty wierd questions :)

Is there a way to add a header to a mail in the queue?

I want to add a header that looks something like

X-Route_via: <route gateway>

from the commandline.

Thank you in advance
Ian

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim at iancoetzee

Feb 5, 2010, 5:30 AM

Post #2 of 3 (653 views)
Permalink
Re: Add header from commandline [In reply to]

On Fri, Feb 5, 2010 at 3:18 PM, Chris Knipe <cknipe [at] savage> wrote:
> Headers_add & headers_remove. You'll need to do this through a custom
> transport

Now for sounding stupid (or blind)

I managed to get this working for mails coming in, but I want to be
able to change the route via which it is sent, after it has been
queued/frozen.

Regards
Ian

>
> --
> Chris
>
> Sent from my iPhone
>
> On 05 Feb 2010, at 15:13, Ian Coetzee <exim [at] iancoetzee> wrote:
>
>> Hi all
>>
>> I just noticed, I ask some pretty wierd questions :)
>>
>> Is there a way to add a header to a mail in the queue?
>>
>> I want to add a header that looks something like
>>
>> X-Route_via: <route gateway>
>>
>> from the commandline.
>>
>> Thank you in advance
>> Ian
>>
>> --
>> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
>> ## Exim details at http://www.exim.org/
>> ## Please use the Wiki with this list - http://wiki.exim.org/
>

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim-users-20081202 at djce

Feb 5, 2010, 5:38 AM

Post #3 of 3 (656 views)
Permalink
Re: Add header from commandline [In reply to]

On Fri, Feb 05, 2010 at 03:30:48PM +0200, Ian Coetzee wrote:
> On Fri, Feb 5, 2010 at 3:18 PM, Chris Knipe <cknipe [at] savage> wrote:
> > Headers_add & headers_remove. You'll need to do this through a custom
> > transport
>
> Now for sounding stupid (or blind)
>
> I managed to get this working for mails coming in, but I want to be
> able to change the route via which it is sent, after it has been
> queued/frozen.

Why not adjust your routers, not the queue contents?

If you really want to be able to hand-pick a route for each message, then as a
last resort you could probably add a router which looks up $h_Message-ID:
somewhere, and uses that route if found, and falls through to the next router
if not. Then simply lookup's database/file/whatever with
Message-ID/routing-info pairs.

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey
Attachments: signature.asc (0.19 KB)

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.