From: Franz Fellner <alpine.art.de@gmail.com>
To: Ian Main <imain@stemwinder.org>, Ian Main <imain@stemwinder.org>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH] VIM: Make an option to save sent mail locally
Date: Sat, 18 Oct 2014 22:27:44 +0200 [thread overview]
Message-ID: <5442cd4084ca6_255f136de94d1@TP_L520.notmuch> (raw)
In-Reply-To: <543d5e2927b41_5918e8fe90f4@ovo.mains.priv.notmuch>
Ian Main wrote:
> Franz Fellner wrote:
> > Why not simply use Notmuch::Database.add_message? Would save a
> > system-call.
> > One could easily copy the sent mail into nm_db_path/sent/cur, add it to the db, tag it.
> > Though I don't know enough about maildir handling, but probably rubys
> > Mail module could help here.
>
> So you are saying I'd have to copy the message to the database and then call
> Notmuch::Database.add_message()? If so I think I'd rather stick with the
> system call..
Yes, that was my intention. I usually prefer using a stable API rather then realying on CLI.
But that's just preference ;)
All in all it works. So LGTM.
>
> > Another issue is configuration. Hardcoding "Sent" probably won't fit
> > everyones needs. And (if I understand DOCS correctly) db.add_message
> > doesn't even force you to keep sent mail folder inside db_path; correct
> > me if I'm wrong :) notmuch --insert will put it into folder relative to
> > db_path.
>
> Yeah, I can add it so the folder can be changed. I figured this was just the
> start of things. Really we should be able to fcc it to our upstream provider
> sent mailbox too.
That MIGHT get hard.
All accounts I use store the mails I send to their smtp-server locally, I could sync them again through IMAP.
GMail for example does that. Pushing those mails upstream again is useless.
But there might be setups where it is neccessary to manually store mails inside a sent folder that get's afterwards synced with the IMAP server.
So if you want that to work in any case we might need to introduce settings for user accounts...
Franz
next prev parent reply other threads:[~2014-10-18 20:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-06 17:51 [PATCH] VIM: Make an option to save sent mail locally Ian Main
2014-10-06 18:10 ` Ian Main
2014-10-06 18:28 ` Tomi Ollila
2014-10-07 4:16 ` Ian Main
2014-10-19 9:53 ` Tomi Ollila
2014-10-14 13:45 ` Franz Fellner
2014-10-14 17:32 ` Ian Main
2014-10-18 20:27 ` Franz Fellner [this message]
2015-01-13 0:08 ` Bartosz Telenczuk
2015-01-21 19:05 ` Franz Fellner
2015-02-02 23:42 ` Bartosz Telenczuk
2015-02-05 10:34 ` Franz Fellner
2014-10-20 17:58 ` [PATCH v2] " Ian Main
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5442cd4084ca6_255f136de94d1@TP_L520.notmuch \
--to=alpine.art.de@gmail.com \
--cc=imain@stemwinder.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).