From: Info <in...@wc...> - 2024-04-09 14:43:07
|
Greeting all, How do I download Selected Remote Folder to Specific Local Folder For example: Remote folder= INBOX.Sent Local folder = INBOX/Sent #========= fetchmail release =========# This is fetchmail release 6.4.37+GSS+NTLM+SDPS+SSL-SSLv2-SSLv3+NLS+KRB5. Compiled with SSL library 0x30000080 "OpenSSL 3.0.8 7 Feb 2023" Run-time uses SSL library 0x300000b0 "OpenSSL 3.0.11 19 Sep 2023" OpenSSL: OPENSSLDIR: "/usr/lib/ssl" Engines: ENGINESDIR: "/usr/lib/x86_64-linux-gnu/engines-3" groups fetchmail fetchmail : nogroup vmail postfix cat /etc/default/fetchmail START_DAEMON=yes cat /etc/fetchmailrc # /etc/fetchmailrc for system-wide daemon mode # This file must be chmod 0600, owner fetchmail # set daemon 300 set postmaster root set no bouncemail set no spambounce set no syslog set logfile "/var/log/fetchmail.log" # ########## mail.domain.com ########## poll mail.domain.com protocol imap user us...@do... there with password XXyyXXyy is us...@do...n here keep ssl norewrite preconnect "date >> /var/log/fetchmail.log" #========= my lmtp sockets =========# unix 2 [ ACC ] STREAM LISTENING 377089 private/lmtp unix 2 [ ACC ] STREAM LISTENING 377202 /var/spool/postfix/private/dovecot-lmtp unix 2 [ ACC ] STREAM LISTENING 377199 /run/dovecot/lmtp #========= my Dovecot lmtp service =========# service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } inet_listener lmtp { address = 127.0.0.1 port = 24 } #========= my ISP IMAP =========# A001 OK You are so in n namespace * NAMESPACE (("INBOX." ".")) NIL NIL n OK Namespace completed (0.001 + 0.000 secs). A002 list "INBOX." "*" * LIST (\HasNoChildren \Trash) "." INBOX.Trash * LIST (\HasNoChildren \Junk) "." INBOX.spambucket * LIST (\HasNoChildren \Sent) "." INBOX.Sent * LIST (\HasNoChildren \Drafts) "." INBOX.Drafts * LIST (\HasNoChildren) "." INBOX.Templates A002 OK List completed (0.001 + 0.000 secs). #========= my local IMAP =========# * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready. a01 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE ACL RIGHTS=texk] Logged in n namespace * NAMESPACE (("" "/")) NIL NIL n OK Namespace completed (0.001 + 0.000 secs). a02 LIST "" "*" * LIST (\HasNoChildren \Trash) "/" Trash * LIST (\HasNoChildren \Junk) "/" Junk * LIST (\HasNoChildren \Archive) "/" Archive * LIST (\HasNoChildren \Sent) "/" "Sent Messages" * LIST (\HasNoChildren \Sent) "/" Sent * LIST (\HasNoChildren \Drafts) "/" Drafts * LIST (\HasNoChildren) "/" INBOX a02 OK List completed (0.001 + 0.000 secs). a03 LIST "INBOX" "*" * LIST (\HasNoChildren) "/" INBOX a03 OK List completed (0.001 + 0.000 secs). A04 SELECT "INBOX" * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 1712661597] UIDs valid * OK [UIDNEXT 1] Predicted next UID A04 OK [READ-WRITE] Select completed (0.001 + 0.000 secs). a05 LOGOUT * BYE Logging out a05 OK Logout completed (0.001 + 0.000 secs). In order do deliver emails from a selected remote folder to a specific local folder one has to use the MDA parameter. How and which MDA? Thanks very much in advance Jan |