Einzelne Mails von einem Postfach in ein anderes kopieren

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
Post Reply
dr.zuse
Posts: 25
Joined: 2002-05-13 21:07
Location: Frankfurt/Main
Contact:
 

Einzelne Mails von einem Postfach in ein anderes kopieren

Post by dr.zuse »

Hallo,

gibt es eine Möglichkeit, Mails von einem spool file in ein anderes kopieren?

Ich will nicht das ganze File kopieren, sondern den Inhalt!
Also eine Mail von /var/spool/mail/user1 nach user2!?

Kennt jemand eine Möglichkeit das über die shell zu machen?

Viele Grüße
Dr.Zuse
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Einzelne Mails von einem Postfach in ein anderes kopieren

Post by Joe User »

Besorge Dir die mbox-Spezifikation und schreibe Dir ein entsprechendes Shellscript...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
olaf.dietsche
Posts: 401
Joined: 2002-12-19 02:06
Location: Siegburg
 

Re: Einzelne Mails von einem Postfach in ein anderes kopieren

Post by olaf.dietsche »

Das läßt sich z.B. mit formail und procmail erledigen. Eine alternative Möglichkeit ist

Code: Select all

mail -f /var/spool/mail/user1
s 7 /var/spool/mail/user2
Post Reply