[no subject]

2025-06-29 Thread kohnish--- via isync-devel


Hi,

Is there a way to send SEEN command when a mail is moved to another folder?
The issues are basically described here, and it happens with other email
providers like GMX.
https://sourceforge.net/p/isync/mailman/message/36409933/
https://stackoverflow.com/questions/52218254/isync-mbsync-on-gmail-marks-mail-as-new-after-move-to-another-folder

Regards,
Koh


___
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel


Re: moved mails show up as new

2025-07-01 Thread kohnish--- via isync-devel
Hi, please ignore the previous reply without the mailing list in the To:.

I figured it out.
~/Mail/[email protected]/INBOX/cur/1750696320.159179_1.shuttle-fedora,U=1:2,S
should become
~/Mail/[email protected]/Spam/cur/1750696320.159179_1.shuttle-fedora:2,S

The previous safeMove function should be...

function safeMove() {
no_uid_filename=`echo $1 | awk -F/ '{split($NF, arr, ","); split(arr[2], 
arr2, ":"); printf("%s:%s,%s", arr[1], arr2[2], arr[3])}'`
mv -f $1 $2/$no_uid_filename
}

Thanks a lot for quick responses!


Oswald Buddenhagen via isync-devel 
writes:

> On Mon, Jun 30, 2025 at 09:58:01PM +0200, [email protected] wrote:
>>For example, it should move like this.
>>
>>~/Mail/[email protected]/INBOX/cur/1750696320.159179_1.shuttle-fedora,U=1:2,S
>>~/Mail/[email protected]/Spam/cur/1750696320.159179_1.shuttle-fedora
>>
> well, and there is your problem. when you throw away the flags, that's 
> what you get.
>
>
> ___
> isync-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/isync-devel


___
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel


Re: moved mails show up as new

2025-06-30 Thread kohnish--- via isync-devel


My apologies, I've totally forgot about the subject.

My config is...

```
IMAPAccount [email protected]
Host imap.gmx.com
User [email protected]
Pass xxx

IMAPStore [email protected]
Account [email protected]

MaildirStore [email protected]
Path ~/Mail/[email protected]/
Inbox ~/Mail/[email protected]/INBOX
Subfolders Verbatim

Channel [email protected]
Far :[email protected]:
Near :[email protected]:
Expunge Both
Create Near
SyncState *
Patterns *

Group all
Channel [email protected]
```

I move the file with a following bash function.

function safeMove { s=${1##*/}; s=${s%%,*}; mv -f $1 $2/$s; }

For example, it should move like this.

~/Mail/[email protected]/INBOX/cur/1750696320.159179_1.shuttle-fedora,U=1:2,S
~/Mail/[email protected]/Spam/cur/1750696320.159179_1.shuttle-fedora

Then I run...

mbsync all
notmuch new

Then on the remote(web interface from the provider) the mail is moved to
spam folder successfully but it's unread. Running mbsync and notmuch new
again does not detect any change while the message is read locally on notmuch.


Regards,
Koh


Oswald Buddenhagen via isync-devel 
writes:

> On Sun, Jun 29, 2025 at 11:39:13PM +0200, kohnish--- via isync-devel wrote:
>>Is there a way to send SEEN command when a mail is moved to another 
>>folder?
>>
> there is no such command.
> however, isync synchronizes the \Seen flag by default, so things should 
> just work.
> presumably, something is wrong with your setup. please post your config 
> file.
>
> ps: always use a meaningful subject, and don't put the list in bcc. it's 
> pure luck that i didn't just delete your mail from the spam folder.
>
>
> ___
> isync-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/isync-devel


___
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel