Re: Fetchmail only writes the most recent mail

Matthias Andree <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Message-ID <[email protected]>
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.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
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.