Re: Resend emails from a Maildir

2010-10-20 Thread mouss
Le 19/10/2010 21:22, Victor Duchovni a écrit : On Mon, Oct 18, 2010 at 11:37:18PM +0200, mouss wrote: - get the MAIL FROM address from the "Return-Path" header. with this you can do: sendmail -f $returnpath yourdestinationemail Make that: sendmail -i -f "$returnpath" -- "$destpath"<

Re: Resend emails from a Maildir

2010-10-19 Thread Victor Duchovni
On Mon, Oct 18, 2010 at 11:37:18PM +0200, mouss wrote: > - get the MAIL FROM address from the "Return-Path" header. with this you > can do: sendmail -f $returnpath yourdestinationemail Make that: sendmail -i -f "$returnpath" -- "$destpath" < msgfile The returnpath can have all kinds of

Re: Resend emails from a Maildir

2010-10-19 Thread Roberto Scattini
On Mon, Oct 18, 2010 at 6:56 AM, Patric Falinder wrote: > Hi, > > I'm not really sure if this has to do with Postifx so just tell me if I'm > wrong. > > Is it possible to resend emails that are in a Maildir already? > The reason for this is that a user changed server so I had to change the > trans

Re: Resend emails from a Maildir

2010-10-18 Thread mouss
Le 18/10/2010 11:56, Patric Falinder a écrit : Hi, I'm not really sure if this has to do with Postifx so just tell me if I'm wrong. Is it possible to resend emails that are in a Maildir already? The reason for this is that a user changed server so I had to change the transport for that doma

Re: Resend emails from a Maildir

2010-10-18 Thread Patric Falinder
Ralf Hildebrandt skrev 2010-10-18 14:43: * Patric Falinder: Hi, I'm not really sure if this has to do with Postifx so just tell me if I'm wrong. Is it possible to resend emails that are in a Maildir already? Yes. #!/bin/sh # # verschickt die gesamte Mail eines Benutzers an $1 # USAGE="usa

Re: Resend emails from a Maildir

2010-10-18 Thread Michael Tokarev
18.10.2010 16:43, Ralf Hildebrandt wrote: [] > if ! grep @ < /dev/null > $1 > STOP > then Now that's interesting construct ;) case "$1" in ?...@?*) ;; *) echo "No @ in Mail-address" >&2; exit 1;; esac /mjt

Re: Resend emails from a Maildir

2010-10-18 Thread Ralf Hildebrandt
* Patric Falinder : > Hi, > > I'm not really sure if this has to do with Postifx so just tell me if > I'm wrong. > > Is it possible to resend emails that are in a Maildir already? Yes. #!/bin/sh # # verschickt die gesamte Mail eines Benutzers an $1 # USAGE="usage: $0 u...@domain" if test $#

Re: Resend emails from a Maildir

2010-10-18 Thread anant
Run, sendmail -q Regards, ANANT. Quoting Patric Falinder : Hi, I'm not really sure if this has to do with Postifx so just tell me if I'm wrong. Is it possible to resend emails that are in a Maildir already? The reason for this is that a user changed server so I had to change the transpo