Re: ot: processing emails advice

Elimar Riesebieter <[email protected]>
Newsgroups gmane.mail.getmail.user
Organization LXTEC
Message-ID <[email protected]>
Hi Voytek,

* Voytek Eymont <[email protected]> [2020-05-10 04:05 +0000]:

[...]

> -----------------------------------------------------------
>   for i in $(ls /home/voytek/Maildir/new); do
>     mv /home/voytek/Maildir/new/$i /home/workarea
>     munpack -t -f $i > mail.txt
                       ^
In the case of more mails will always override an existing mail.txt.

You can either try
munpack -t -f $i >> mail.txt
to get all mails in one file mail.txt
or
munpack -t -f $i > mail_$i.txt
to separate each mail.

Elimar
-- 
  You cannot propel yourself forward by
  patting yourself on the back.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.