From: Matthias A. <mat...@gm...> - 2018-08-09 15:57:41
|
Am 09.08.2018 um 13:21 schrieb daniel_1983--- via Fetchmail-users: > Hello ! > > I'm trying fetchmail on the command line, here's what I came up with > > fetchmail -p IMAP \ # use the IMAP protocol > -r "INBOX.Brigands" \ # to fetch mail from the Brigands folder > -k \ # keep mail on the server > -a \ # retrieve seen and unseen mail > -u user@domain mail.server.com \ # my username > --mda "/bin/sh -c 'cat > /mnt/partage_local/DATA/MAIL/principale-fetchmail/DRAFT/new/$(date +%''s_%N)'" # my MDA The problem is in your --mda option - you need >>, not >, for output redirection. Read any decent manual about Bourne or POSIX-like shells. |