News for hackers. Stuff that matters.
Re:Mailspring: A fork of Nylas Mail by one of the original a... by kwhitefoot on Friday October 06, 2017 @12:47AM (#15414489)
Why is it regarded as weird to use IMAP for this? It seems like an obvious use for IMAP.
Re:Mailspring: A fork of Nylas Mail by one of the original a... by crispinb on Friday October 06, 2017 @12:56AM (#15414530)
I don't know IMAP beyond the very basics, but I presumed that it doesn't include facilities for adding metadata. Correct me if I'm wrong! So if you wanted to store snoozing info, you'd have to encode that oddly somewhere -- in a fake email item name? Or as an added mail header (if it's considered polite for clients to add them)?
Re:Mailspring: A fork of Nylas Mail by one of the original a... by _jal on Friday October 06, 2017 @02:51AM (#15414905)
Using a header works fine - making up your own is legal. I've been known to add headers for entertainment purposes.
Re:Mailspring: A fork of Nylas Mail by one of the original a... by Arnt on Friday October 06, 2017 @03:39AM (#15415047)
You can't write headers to messages you receive.The only way is to download the message (including the three 78MB PDF attachments you got from that graphic designer), add the header field, upload everything and delete the first message.

But if your longish snoozes end at the same time, you can use a flag.

(IMAP's cache semantics say: If you download a part of the message it stays valid. Other people cannot change what you have downloaded.)

Re:Mailspring: A fork of Nylas Mail by one of the original a... by _jal on Friday October 06, 2017 @11:28AM (#15417526)
I'm aware of that. Not saying it is the right method, just that it is the best general method we have.

And I'm also thankful that I trade mail with far fewer designers these days.

Re:Mailspring: A fork of Nylas Mail by one of the original a... by vhbit on Friday October 06, 2017 @03:55AM (#15415106)
As I remember IMAP allows to add freeform flags to every message.
Re:Mailspring: A fork of Nylas Mail by one of the original a... by StavrosK on Friday October 06, 2017 @07:15AM (#15415839)
IIRC that's how gmail implements its labels.
Re:Mailspring: A fork of Nylas Mail by one of the original a... by pferde on Friday October 06, 2017 @08:20AM (#15416199)
I don't think so, since gmail had labels before they added IMAP support. Also, when accessing gmail via IMAP, you see the labels as IMAP folders, which leads me to believe that they just bolted the IMAP interface on top of whatever backend they use to store messages internally.
Re:Mailspring: A fork of Nylas Mail by one of the original a... by StavrosK on Friday October 06, 2017 @08:57AM (#15416416)
I meant that that's how they implemented labels for their IMAP support, but you may be right, they may be folders instead.
Re:Mailspring: A fork of Nylas Mail by one of the original a... by kwhitefoot on Saturday October 07, 2017 @04:35AM (#15422921)
I have used the subject for metadata as a way of storing backup files in IMAP. You can also use tags and as someone else mentioned you can do all sorts of things with headers.