-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Liking fdm. Noticed on Gmail that I can do a full fetch of all Sent messages from "[Gmail]/Sent Mail", but any attempt to use new-only in the configuration fails with no new messages found for the folders under [Gmail] only. The same thing happened with Sent Mail and Drafts when I tried to create additional messages to test further.
The Inbox and custom labels worked as expected fetching new messages only.
Below are the configuration and a sample log with my account details replaced with x's as placeholders.
~/fdm.conf:
set maximum-size 50M
set default-user "xx"
set no-received
account "xx" imaps server "imap.gmail.com"
user "xx@gmail.com" pass "xx"
folders { "INBOX" "[Gmail]/Sent Mail" }
new-only keep cache "%h/mail/xx/xx-cache"
match all action "deliver"
action "deliver" mbox "%h/mail/%a/%[folder].mbx"
log:
$ time fdm -a xx -vvvv fetch
version is: fdm 2.2, started at: Sun Mar 30 22:33:31 2025
running on: FreeBSD 13.4-RELEASE-p3 FreeBSD 13.4-RELEASE-p3 releng/13.4-n258275-aef6b5321eea GENERIC amd64
host is: xx.xx.net (null)
home is: /usr/home/xx
added account "xx": fetch=imaps server "imap.gmail.com" port imaps user "xx@gmail.com" folders "INBOX" "[Gmail]/Sent Mail"
added cache "/usr/home/xx/mail/xx/xx-cache": expire -1
added rule 0: matches=all actions="deliver"
added action "deliver": deliver=0:mbox "%h/mail/%a/%[folder].mbx"
configuration loaded
locking using: flock
options are: no-received, maximum-size=52428800, timeout=900, default-user="xx", command-user="xx", file-umask=077, queue-high=2, queue-low=1, strip-characters="\<>$%^&*|{}[]"'`;"
using tmp directory: /tmp
parent: started, pid is 40524
parent: 0 cparent: child 40525 (xx) started
xx: fetch started, pid 40525
xx: user is 10xx
xx: started processing
xx: fetching
xx: fetch loop start
children, 0 dead children
...
> 6 SELECT "[Gmail]/Sent Mail"
xx: fetch loop start
xx: calling fetch state (0x22f3d0, flags 0x02)
xx: fetch, block
xx: queued 0; blocked 0; flags 0x02
xx: polling: 2, timeout=900000
< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded $NotPhishing $Phishing Junk NonJunk)
* OK [PERMANENTFLAGS (\Answeredxx: fetch loop start
xx: calling fetch state (0x22f3d0, flags 0x02)
xx: fetch, block
xx: queued 0; blocked 0; flags 0x02
xx: polling: 2, timeout=900000
< \Flagged \Draft \Deleted \Seen $Forwarded $NotPhishing $Phishing Junk NonJunk \*)] Flags permitted.
* OK [UIDVALIDITY 609348053] UIDs valid.
* 930 EXISTS
* 0 RECENT
* OK [UIDNEXT 1126] Predicted next UID.
* OK [HIGHESTMODSEQ 828605]
Metadata
Metadata
Assignees
Labels
No labels