From: Julian B. <jul...@bt...> - 2021-01-27 13:42:08
|
Hi, I have been running a test using fetchmail (6.3.26) on an openSUSE Leap 15.2 server to retrieve email from a local email account. That account has been sent 5 seperate emails. Three of the emails are to single addresses, one is to two addresses and another is to three addresses. As expected there are 8 separate emails in the local mail spool file from the 5 I sent. As a test I am using the fetchmailrc file: set postmaster root poll cumulus protocol POP3 local mydomain.net envelope "X-Original-To:" username "user" password "pass" to * here fetchall keep mda "echo 'Hello World - %T - %F'" The mda is just a dummy to see what is going on when I run it from the command line. It retrieves all 8 emails correctly identifying the origonal recipient and %T is substituted correctly for the different email adresses. Doing "fetchmail -V -f fetchmailrc" confirms that it is running in multidrop mode. If I substitute 'myname' for the '*' (asterisk) in fetchmailrc, fetchmail goes into singledrop mode as you would expect (checked with the -V option) but also retrieves all 8 emails. I am not sure which way round it should be, multidrop or singledrop, but I do want to remove duplicates and so want to retrieve just 5 emails from the spool file (have been reading "THE USE AND ABUSE OF MULTIDROP MAILBOXES" on the man page). I have checked that the message-IDs are the same and there are multiple recipients on the 'To:' header of the relevant emails. I also have a copy of the spool file if it would help. Any advice or insight would be most welcome. Thanks |