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
Einzelne Mails von einem Postfach in ein anderes kopieren
Re: Einzelne Mails von einem Postfach in ein anderes kopieren
Besorge Dir die mbox-Spezifikation und schreibe Dir ein entsprechendes Shellscript...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings 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.
Wings for Life ● Wings 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
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