* Problem with draft mails when using offlineimap
@ 2016-06-09 19:02 Torben Hoffmann
2016-06-09 20:27 ` Daniel Kahn Gillmor
0 siblings, 1 reply; 6+ messages in thread
From: Torben Hoffmann @ 2016-06-09 19:02 UTC (permalink / raw)
To: notmuch
Hi,
I am having issues with draft mails in connection with my offlineimap
set-up.
I have everything in my ~/Maildir directory.
But when I create a mail and save it it goes to
~/Mail/drafts
I have tried changing this:
(setq message-auto-save-directory "~/Maildir/drafts/cur")
That will put the drafts in that directory, but they will not show up in
my searching until after I have done a sync with offlineimap.
But what is worse is that the show up with a timestamp of 1970-01-01.
And I cannot figure out how to edit a draft, which renders the whole
concept of drafts meaningless.
My IMAP is Gmail, if that has any influence.
All sorts of advice appreciated.
Cheers,
Torben
--
Torben Hoffmann
Chief Architect, basho.com
M: +45 25 14 05 38
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with draft mails when using offlineimap
2016-06-09 19:02 Problem with draft mails when using offlineimap Torben Hoffmann
@ 2016-06-09 20:27 ` Daniel Kahn Gillmor
2016-06-10 17:59 ` Torben Hoffmann
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Kahn Gillmor @ 2016-06-09 20:27 UTC (permalink / raw)
To: Torben Hoffmann, notmuch
[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]
On Thu 2016-06-09 15:02:14 -0400, Torben Hoffmann wrote:
> I am having issues with draft mails in connection with my offlineimap
> set-up.
>
> I have everything in my ~/Maildir directory.
>
> But when I create a mail and save it it goes to
> ~/Mail/drafts
>
> I have tried changing this:
> (setq message-auto-save-directory "~/Maildir/drafts/cur")
>
> That will put the drafts in that directory, but they will not show up in
> my searching until after I have done a sync with offlineimap.
>
> But what is worse is that the show up with a timestamp of 1970-01-01.
> And I cannot figure out how to edit a draft, which renders the whole
> concept of drafts meaningless.
>
> My IMAP is Gmail, if that has any influence.
>
> All sorts of advice appreciated.
It sounds like you're using notmuch-emacs. If that's the case, I
recommend taking a look at the change series Mark Walters wrote for
postponing/resuming drafts, starting at:
id:1465001026-29392-1-git-send-email-markwalters1009@gmail.com
Regards,
--dkg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 948 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with draft mails when using offlineimap
2016-06-09 20:27 ` Daniel Kahn Gillmor
@ 2016-06-10 17:59 ` Torben Hoffmann
2016-06-13 14:50 ` Daniel Kahn Gillmor
0 siblings, 1 reply; 6+ messages in thread
From: Torben Hoffmann @ 2016-06-10 17:59 UTC (permalink / raw)
To: Daniel Kahn Gillmor, notmuch
Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
> [ text/plain ]
> On Thu 2016-06-09 15:02:14 -0400, Torben Hoffmann wrote:
>> I am having issues with draft mails in connection with my offlineimap
>> set-up.
>>
>> I have everything in my ~/Maildir directory.
>>
>> But when I create a mail and save it it goes to
>> ~/Mail/drafts
>>
>> I have tried changing this:
>> (setq message-auto-save-directory "~/Maildir/drafts/cur")
>>
>> That will put the drafts in that directory, but they will not show up in
>> my searching until after I have done a sync with offlineimap.
>>
>> But what is worse is that the show up with a timestamp of 1970-01-01.
>> And I cannot figure out how to edit a draft, which renders the whole
>> concept of drafts meaningless.
>>
>> My IMAP is Gmail, if that has any influence.
>>
>> All sorts of advice appreciated.
>
> It sounds like you're using notmuch-emacs. If that's the case, I
> recommend taking a look at the change series Mark Walters wrote for
> postponing/resuming drafts, starting at:
>
> id:1465001026-29392-1-git-send-email-markwalters1009@gmail.com
>
> Regards,
>
> --dkg
> [ signature.asc: application/pgp-signature ]
You are correct about me using notmuch-emacs - totally forgot to write
that in the first mail, sorry.
The link you sent me does not work for me - even in the browser when
looking through the patches, which I think are here:
https://notmuchmail.org/pipermail/notmuch/2016/022492.html
How can I get to try out those patches?
Cheers,
Torben
--
Torben Hoffmann
Chief Architect, basho.com
M: +45 25 14 05 38
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with draft mails when using offlineimap
2016-06-10 17:59 ` Torben Hoffmann
@ 2016-06-13 14:50 ` Daniel Kahn Gillmor
2016-06-14 5:30 ` Tomi Ollila
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Kahn Gillmor @ 2016-06-13 14:50 UTC (permalink / raw)
To: Torben Hoffmann, notmuch
On Fri 2016-06-10 13:59:34 -0400, Torben Hoffmann wrote:
> The link you sent me does not work for me
the link should work in notmuch-emacs if you already have a copy of the
existing messages in your mailstore. if you subscribed to the mailing
list after those e-mails were sent, you won't have the messages in your
mailing list.
> - even in the browser when looking through the patches, which I think
> are here: https://notmuchmail.org/pipermail/notmuch/2016/022492.html
yes, that's the right file. unfortunately, pipermail doesn't do a great
job at mailing list archives or making them fetchable.
If you can spare ~125MB, you could fetch the full mbox and put it in a
maildir within your notmuch folder so you can read it.
http://notmuchmail.org/archives/notmuch.mbox
It'd be nice for someone™ to put up a read-only notmuch-web interface to
the notmuch mailing list archive in the future, though. ;)
> How can I get to try out those patches?
To try the patches, you'd need to get set up being able to build the
source code; once you have a patch in an e-mail file, you can apply it
with "git am". If you just have a raw patch, you can apply it with "git
apply" instead.
please see:
https://notmuchmail.org/contributing/
for more details on working with the source and patches.
Regards,
--dkg
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with draft mails when using offlineimap
2016-06-13 14:50 ` Daniel Kahn Gillmor
@ 2016-06-14 5:30 ` Tomi Ollila
2016-06-14 18:19 ` Daniel Kahn Gillmor
0 siblings, 1 reply; 6+ messages in thread
From: Tomi Ollila @ 2016-06-14 5:30 UTC (permalink / raw)
To: Daniel Kahn Gillmor, Torben Hoffmann, notmuch
On Mon, Jun 13 2016, Daniel Kahn Gillmor <dkg@fifthhorseman.net> wrote:
> On Fri 2016-06-10 13:59:34 -0400, Torben Hoffmann wrote:
>> The link you sent me does not work for me
>
> the link should work in notmuch-emacs if you already have a copy of the
> existing messages in your mailstore. if you subscribed to the mailing
> list after those e-mails were sent, you won't have the messages in your
> mailing list.
>
>> - even in the browser when looking through the patches, which I think
>> are here: https://notmuchmail.org/pipermail/notmuch/2016/022492.html
>
> yes, that's the right file. unfortunately, pipermail doesn't do a great
> job at mailing list archives or making them fetchable.
>
> If you can spare ~125MB, you could fetch the full mbox and put it in a
> maildir within your notmuch folder so you can read it.
> http://notmuchmail.org/archives/notmuch.mbox
That suggestion gave me an idea...
$ wget -O - --start-pos 126185821 http://notmuchmail.org/archives/notmuch.mbox | head -c 17717 > 20160604-marks-brilliant-patch
How did I get this.
I already had notmuch.mbox of size 118691575 -- updated sep 15, 2015 so
$ wget --continue http://notmuchmail.org/archives/notmuch.mbox
and now:
-rw-r--r--. 1 too too 126759646 Jun 14 03:57 notmuch.mbox
(8Mb of new data...)
Then some less(1) namual reading and...
$ LESS= less -P%b notmuch.mbox ;: '(or press '=' when found right line)'
then search (by pressing '/') for 001026-29392-1-git-send-ema (or any other
suitably long substring grabbed from id:87shwmcdkv.fsf@alice.fifthhorseman.net)
When line found go up to the start of message (which was that 126185821).
Now we knew there was just one email in this patch, so it was easy to look
beginning of next email in the file... down to 126203538.
126203538 - 126185821 == 17717
$ ls -l patch
-rw-r--r--. 1 too 17717 Jun 14 08:10 patch
Tomi
PS: someone™ made a patch to change http:// links to https:// -- who was
that again... >;) ?
>
> It'd be nice for someone™ to put up a read-only notmuch-web interface to
> the notmuch mailing list archive in the future, though. ;)
>
>> How can I get to try out those patches?
>
> To try the patches, you'd need to get set up being able to build the
> source code; once you have a patch in an e-mail file, you can apply it
> with "git am". If you just have a raw patch, you can apply it with "git
> apply" instead.
>
> please see:
>
> https://notmuchmail.org/contributing/
>
> for more details on working with the source and patches.
>
> Regards,
>
> --dkg
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-06-14 18:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-09 19:02 Problem with draft mails when using offlineimap Torben Hoffmann
2016-06-09 20:27 ` Daniel Kahn Gillmor
2016-06-10 17:59 ` Torben Hoffmann
2016-06-13 14:50 ` Daniel Kahn Gillmor
2016-06-14 5:30 ` Tomi Ollila
2016-06-14 18:19 ` Daniel Kahn Gillmor
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).