Conversation
|
Great job ! My generated mujmap.toml contained Also to setup the module I had to set mujmap.fqdn: in modules/accounts/email.nix there is a setting called "flavor" which lists "fastmail.com" and could be used to autoset fqdn |
|
Pushed a commit to fix both of these issues. |
|
@elizagamedev CI fails for mundane reasons (can't find you as a maintainer), could you fix it ? other than that it looks good we have tests, integration with the mail backend, a pretty good first module. I will do a better review after testing/CI passes |
|
@teto I'm not actually sure how to fix CI, since I added myself to the maintainers list but it's still failing. Is there another place I missed? |
|
ha yeah I've tried it locally and the maintainer infra is complex. @rycee any idea ? |
|
@rycee do we have a style guide / CONTRIBUTING.md anywhere ? I think we prefer to use camelCase for module options but I could not refer to any documents: shall we refernece a nixpkgs one (but even then I am not sure what to link) |
|
I used snake case so that it could directly be serialized to the config file like the lieer module does, but if it is preferred to have them as camel case it should not be too hard to translate the names before serialization. |
|
dont do it yet as I am unsure, waiting confirmation from the HM gods :) |
|
while doing a nixos-rebuild Once could do |
|
so using the module I get the error is not verbose enough for a proper diagnostic. I still have my maildir on another drive (ext4), can it be it ? |
Done.
This is possible. I added some new config options for v2.0 which I forgot to add to this module which solve that problem (the troubleshooting section of the readme now addresses this). They have been added to the module. Does messing with those settings help? I also tweaked |
|
I've found the piece that recommands camelCase https://nix-community.github.io/home-manager/index.html#sec-code-style I get the same error As for the tests, seems like they are broken on master so I couldn't check that the above error was tested. |
I changed it to replace "
It actually looks like there's an exception to this in the manual. (Section 5.2.3, Add only valuable options)
The RFC linked is what lieer does, and because this is modeled after lieer's module, I inherited this way of doing things without realizing it's the "new" way. So changing the module to use camelCase would actually be going backwards. Perhaps the code style sction you linked ought to be amended to point this exception out to prevent future confusion. That said, the "essential-ness" of some of the config options I explicitly included is a bit questionable. I removed the following explicit options:
|
|
Thank you for your feedback, @rycee. I added a JMAP config option and modified the mujmap module to use it. Let me know if you want additional changes or if this is good to merge. |
Co-authored-by: Eliza Velasquez <4576666+elizagamedev@users.noreply.github.com>
mujmap is a tool that synchronizes mail between a mail server and notmuch via JMAP. It's very similar to lieer, so I heavily based the implementation of the notmuch module on lieer's. I did not include an equivalent to lieer's periodic synchronization service, however, because I plan to soon introduce a daemon mode to mujmap. https://github.com/elizagamedev/mujmap
|
Nice! I've squashed and merged to master now. Thanks for the contribution! |
mujmap is a tool which synchronizes mail between a mail server and
notmuch via JMAP. It's very similar to lieer, so I heavily based the
implementation of the notmuch module on lieer's. I did not include an
equivalent to lieer's periodic synchronization service, however, because
I plan to soon introduce a daemon mode to mujmap.
https://github.com/elizagamedev/mujmap
This isn't quite ready for merge yet, as I'm still waiting on
NixOS/nixpkgs#172648. However, this is my first module contribution to
home-manager, and I thought it was worth it to receive early feedback.
Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.all.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS.