Skip to content

Conversation

@JGBSouza
Copy link

Add basic solutions for kworkflow#657 and kworkflow#550.

JGBSouza and others added 11 commits May 10, 2025 18:55
Add a new function that is used to get the position of the first
occurence of a char in the given string. This function will be useful
in upcoming commits where we will have to check char precedence in a
given string.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
The code didnt match it's own description as it doesnt check for
the character `,` in the given string. In this sense, fix the function
so this case will also be checked. Also, add more test cases to check
for all the special characters.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new `kw manage-contacts` feature, we are adding initial files and
creating database tables to store the necessary information. This includes SQL
commands to create the tables `email-contact`, `email_group` &
`email_contact_group` and the file src/manage-contacts with the initial
versions of `parse_manage_contacts_options` and the `manage_contacts_main`.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new feature `kw manage-contacts`, it should be able to
create a new group. In this sense, add a new functionality `create-group`
that receives a group name and creates a group in the `email_group`
database with the group id, name, creation-date.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new `kw manage-contacts` feature, we need a method for removing
groups if the user decides to do so. To handle it, create a new
functionality `kw manage-contacts group-remove` wich recieves a name of
an existent group and remove it and it's informations from the database.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new feature `kw manage_contacts` we need a method to rename
the groups after they are created. In this sense add the new functionality
`--group-rename` wich recieves the old and the new name of a group and
update the entry in the database.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new `kw manage_contacts` feature, we need a method to add contacts
to groups. In this sense, add the new functionality `--group-add` that
recieves a group and a list of names and emails of the contacts and add
the contacts and the group association in the database.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new feature `kw manage_contacts`, it should be able to
remove contacts fom the groups based on the contact email. In this
sense, add the new functionality `group-remove-email` that recieves the
group wich the contact is member and the contact email and remove it's
association. Otherwise, if the contact has no groups after removing the
conection, also remove the contact from the database.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new feature `kw manage-contacts`, it should be able to
display the groups infos after they are created or the contacts infos
from an specific group. In this sense, add the new functionality
`--grops-show` wich can recieve an specific group infos and it's
contacts or all the groups infos in case no parameter is passed.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
Added documentation outlining the usage of kw manager commands for creating,
renaming, adding/removing contacts, and showing email groups. Each command is
described with its respective options and arguments for clarity and ease of use.

Signed-off-by: JGBSouza <joaosouzaaa12@gmail.com>
To support the new feature `kw manage_contacts`, it should be able
to send patches specifing the contact groups that will receive the email
or it's copy. In this sense, add the new options `to-groups` and
`cc-groups` to enable the users to use the groups created with the
`kw manage_contacts`

Signed-off-by: JGBSouza <joaosouzaaa12@usp.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant