This is a discussion on utility to move messages stored by qmail within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; I plan to use qmail with vpopmail. my question is does anyone know of a utility (I can run server ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I plan to use qmail with vpopmail.
my question is does anyone know of a utility (I can run server side) I can use to move messages from one user to another? e.g. by sender/date/subject etc any other options would be nice AndiC |
|
|||
|
Andrew Crook wrote:
> my question is does anyone know of a utility (I can run server side) I can > use to move messages from one user to another? e.g. by sender/date/subject > etc > any other options would be nice What's about procmail? Greetings Jörg Backschues |
|
|||
|
rough example
move a@xyz.tld to b@xyz.tld from c@other.tld or move a@xyz.tld to b@xyz.tld subject "test" Such a utility exist? AndiC "Andrew Crook" <andrew@NOSPAM_andicrook.demon.co.uk> wrote in message news:cd8a6s$a8q$1$8302bc10@news.demon.co.uk... > I plan to use qmail with vpopmail. > > my question is does anyone know of a utility (I can run server side) I can > use to move messages from one user to another? e.g. by sender/date/subject > etc > any other options would be nice > > > AndiC > > |
|
|||
|
Andrew Crook wrote:
> rough example > > move a@xyz.tld to b@xyz.tld from c@other.tld or > > move a@xyz.tld to b@xyz.tld subject "test" > > Such a utility exist? You can use condredirect in .qmail-files to redirect mails. Greetings Jörg Bacxkschues |
|
|||
|
yes I will use that however this is for mail that has already gone through
for one reason or another AndiC "Joerg Backschues" <jbks-news@tca-os-news.de> wrote in message news:40f7af72$0$293$f4da8220@news.eplus-online.de... > Andrew Crook wrote: > > > my question is does anyone know of a utility (I can run server side) I can > > use to move messages from one user to another? e.g. by sender/date/subject > > etc > > any other options would be nice > > What's about procmail? > > > Greetings > Jörg Backschues > |
|
|||
|
Andrew Crook wrote:
>>> my question is does anyone know of a utility (I can run server side) I >>> can use to move messages from one user to another? e.g. by >>> sender/date/subject >> What's about procmail? > yes I will use that however this is for mail that has already gone through > for one reason or another It's possible to do this with standard unix tools (find, grep, mv, cp). Look at my example: find ~user/Maildir/.spam/{cur,new} -type f -ctime +14 | xargs rm -f Greetings Jörg Backschues |
|
|||
|
Thanks
I really wish to be able to do this from the command line only when needed AndiC "Joerg Backschues" <jbks-news@tca-os-news.de> wrote in message news:40f7b36f$0$287$f4da8220@news.eplus-online.de... > Andrew Crook wrote: > > > rough example > > > > move a@xyz.tld to b@xyz.tld from c@other.tld or > > > > move a@xyz.tld to b@xyz.tld subject "test" > > > > Such a utility exist? > > You can use condredirect in .qmail-files to redirect mails. > > > Greetings > Jörg Bacxkschues > |
|
|||
|
thanks greet I was not sure if it was safe to so that
i think maildircmd will do the trick as i can use formail vpopmail. will still let me do that? I am not sure how it sets up the mail boxes for virtual domains etc thats if i use it AndiC "Joerg Backschues" <jbks-news@tca-os-news.de> wrote in message news:40f7b49b$0$287$f4da8220@news.eplus-online.de... > Andrew Crook wrote: > > >>> my question is does anyone know of a utility (I can run server side) I > >>> can use to move messages from one user to another? e.g. by > >>> sender/date/subject > > >> What's about procmail? > > > yes I will use that however this is for mail that has already gone through > > for one reason or another > > It's possible to do this with standard unix tools (find, grep, mv, cp). > > Look at my example: > find ~user/Maildir/.spam/{cur,new} -type f -ctime +14 | xargs rm -f > > > Greetings > Jörg Backschues > |
|
|||
|
> "Joerg Backschues" <jbks-news@tca-os-news.de> wrote in message
> news:40f7b36f$0$287$f4da8220@news.eplus-online.de... >> Andrew Crook wrote: >> >>> rough example >>> >>> move a@xyz.tld to b@xyz.tld from c@other.tld or >>> >>> move a@xyz.tld to b@xyz.tld subject "test" >>> >>> Such a utility exist? >> >> You can use condredirect in .qmail-files to redirect mails. >> You could use something like: maildirectories='cur new' sourcedir=/home/vpopmail/bin/vuserinfo -d a@xyz.tld destdir= /home/vpopmail/bin/vuserinfo -d b@xyz.tld cd $sourcedir/Maildir for m in $maildirectories do find $m -type f -exec mv {} $destdir/Maildir/new \; done Add some if/test statement and a call to 822headers if you want to test for a certain subject. Best regards Thomas. |
|
|||
|
> You could use something like: > > > maildirectories='cur new' > sourcedir=/home/vpopmail/bin/vuserinfo -d a@xyz.tld > destdir= /home/vpopmail/bin/vuserinfo -d b@xyz.tld > > cd $sourcedir/Maildir > for m in $maildirectories > do > find $m -type f -exec mv {} $destdir/Maildir/new \; > done > > > Add some if/test statement and a call to 822headers if you want to test for > a certain subject. > > Best regards > Thomas. > > > I like it!!! AndiC |