myl 0.8.3__tar.gz → 0.8.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- name: Upload Python Package
1
+ name: Python Package
2
2
 
3
3
  on:
4
4
  release:
@@ -0,0 +1,45 @@
1
+ name: GitHub Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ release:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
14
+ steps:
15
+ - name: Checkout code
16
+ uses: actions/checkout@v3
17
+ with:
18
+ fetch-depth: 0
19
+
20
+ - name: Generate Changelog
21
+ id: changelog
22
+ run: |-
23
+ current_tag=$(git describe --tags --abbrev=0)
24
+ previous_tag=$(git describe --tags --abbrev=0 "${current_tag}^")
25
+
26
+ if [[ -z "$previous_tag" ]]
27
+ then
28
+ previous_tag="$(git log --reverse --format="format:%H" | head -1)"
29
+ fi
30
+
31
+ changelog=$(git log "${previous_tag}..${current_tag}" \
32
+ --oneline --no-merges --pretty=format:"%h %s")
33
+
34
+ echo "changelog:"
35
+ echo "$changelog"
36
+
37
+ EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
38
+ echo "changelog<<$EOF" >> $GITHUB_OUTPUT
39
+ echo "$changelog" >> $GITHUB_OUTPUT
40
+ echo "$EOF" >> $GITHUB_OUTPUT
41
+
42
+ - name: Create Release
43
+ uses: softprops/action-gh-release@v1
44
+ with:
45
+ body: ${{ steps.changelog.outputs.changelog }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: myl
3
- Version: 0.8.3
3
+ Version: 0.8.5
4
4
  Summary: Dead simple IMAP CLI client
5
5
  Author-email: Philipp Schmitt <philipp@schmitt.co>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -684,17 +684,93 @@ Requires-Python: >=3.8
684
684
  Description-Content-Type: text/markdown
685
685
  License-File: LICENSE
686
686
 
687
- # myl
687
+ # 📧 myl
688
688
 
689
- ## Installation
689
+ myl is a dead simple IMAP CLI client hosted on GitHub at
690
+ https://github.com/pschmitt/myl
690
691
 
691
- ```shell
692
+ ## 📝 Description
693
+
694
+ myl is a command-line interface client for IMAP, designed to provide a
695
+ straightforward way to interact with IMAP servers.
696
+
697
+ ## ⭐ Features
698
+
699
+ - Simple command-line interface
700
+ - Support for various IMAP operations
701
+ - Autodiscovery of the required server and port
702
+ - Support for Google IMAP settings
703
+ - Fetch a specific number of messages
704
+ - Mark messages as seen
705
+ - Fetch messages from a specific folder
706
+ - Search for specific strings in messages
707
+ - Output HTML email
708
+ - Output raw email
709
+ - Fetch a specific mail by ID
710
+ - Fetch a specific attachment
711
+
712
+ ## 🚀 Installation
713
+
714
+ To install myl, follow these steps:
715
+
716
+ ```bash
692
717
  pipx install myl
693
718
  ```
694
719
 
720
+ ## 🛠️ Usage
695
721
 
696
- ## Usage
722
+ Here's how you can use myl:
697
723
 
698
- ```shell
724
+ ```bash
699
725
  myl --help
700
726
  ```
727
+
728
+ This command will display the help information for the `myl` command.
729
+
730
+ Here are some examples of using flags with the `myl` command:
731
+
732
+ ```bash
733
+ # Connect to an IMAP server
734
+ myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
735
+
736
+ # Use Google IMAP settings
737
+ myl --google --username "$username" --password "$password"
738
+
739
+ # Autodiscovery of the required server and port
740
+ myl --auto --username "$username" --password "$password"
741
+
742
+ # We won't repeat the server connection flags from here
743
+ alias myl="command myl --auto --username \"$username\" --password \"$password\""
744
+
745
+ # Fetch a specific number of messages
746
+ myl --count 5
747
+
748
+ # Mark messages as seen
749
+ myl --mark-seen
750
+
751
+ # Fetch messages from a specific folder
752
+ myl --folder "INBOX"
753
+
754
+ # Search for specific strings in messages
755
+ myl --search "important"
756
+
757
+ # Fetch a specific mail ID
758
+ myl "$MAILID"
759
+
760
+ # Show HTML
761
+ myl --html "$MAILID"
762
+
763
+ # raw email
764
+ myl --raw "$MAILID" > email.eml
765
+
766
+ # Fetch a specific attachment (outputs to stdout)
767
+ myl "$MAILID" "$ATT" > att.txt
768
+ ```
769
+
770
+ Please replace `imap.example.com`, `$username`, `$password`, `$MAILID`,
771
+ and `$ATT` with your actual IMAP server details, username, password,
772
+ mail ID, and attachment name.
773
+
774
+ ## 📜 License
775
+
776
+ This project is licensed under the GPL-3.0 license.
myl-0.8.5/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # 📧 myl
2
+
3
+ myl is a dead simple IMAP CLI client hosted on GitHub at
4
+ https://github.com/pschmitt/myl
5
+
6
+ ## 📝 Description
7
+
8
+ myl is a command-line interface client for IMAP, designed to provide a
9
+ straightforward way to interact with IMAP servers.
10
+
11
+ ## ⭐ Features
12
+
13
+ - Simple command-line interface
14
+ - Support for various IMAP operations
15
+ - Autodiscovery of the required server and port
16
+ - Support for Google IMAP settings
17
+ - Fetch a specific number of messages
18
+ - Mark messages as seen
19
+ - Fetch messages from a specific folder
20
+ - Search for specific strings in messages
21
+ - Output HTML email
22
+ - Output raw email
23
+ - Fetch a specific mail by ID
24
+ - Fetch a specific attachment
25
+
26
+ ## 🚀 Installation
27
+
28
+ To install myl, follow these steps:
29
+
30
+ ```bash
31
+ pipx install myl
32
+ ```
33
+
34
+ ## 🛠️ Usage
35
+
36
+ Here's how you can use myl:
37
+
38
+ ```bash
39
+ myl --help
40
+ ```
41
+
42
+ This command will display the help information for the `myl` command.
43
+
44
+ Here are some examples of using flags with the `myl` command:
45
+
46
+ ```bash
47
+ # Connect to an IMAP server
48
+ myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
49
+
50
+ # Use Google IMAP settings
51
+ myl --google --username "$username" --password "$password"
52
+
53
+ # Autodiscovery of the required server and port
54
+ myl --auto --username "$username" --password "$password"
55
+
56
+ # We won't repeat the server connection flags from here
57
+ alias myl="command myl --auto --username \"$username\" --password \"$password\""
58
+
59
+ # Fetch a specific number of messages
60
+ myl --count 5
61
+
62
+ # Mark messages as seen
63
+ myl --mark-seen
64
+
65
+ # Fetch messages from a specific folder
66
+ myl --folder "INBOX"
67
+
68
+ # Search for specific strings in messages
69
+ myl --search "important"
70
+
71
+ # Fetch a specific mail ID
72
+ myl "$MAILID"
73
+
74
+ # Show HTML
75
+ myl --html "$MAILID"
76
+
77
+ # raw email
78
+ myl --raw "$MAILID" > email.eml
79
+
80
+ # Fetch a specific attachment (outputs to stdout)
81
+ myl "$MAILID" "$ATT" > att.txt
82
+ ```
83
+
84
+ Please replace `imap.example.com`, `$username`, `$password`, `$MAILID`,
85
+ and `$ATT` with your actual IMAP server details, username, password,
86
+ mail ID, and attachment name.
87
+
88
+ ## 📜 License
89
+
90
+ This project is licensed under the GPL-3.0 license.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: myl
3
- Version: 0.8.3
3
+ Version: 0.8.5
4
4
  Summary: Dead simple IMAP CLI client
5
5
  Author-email: Philipp Schmitt <philipp@schmitt.co>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -684,17 +684,93 @@ Requires-Python: >=3.8
684
684
  Description-Content-Type: text/markdown
685
685
  License-File: LICENSE
686
686
 
687
- # myl
687
+ # 📧 myl
688
688
 
689
- ## Installation
689
+ myl is a dead simple IMAP CLI client hosted on GitHub at
690
+ https://github.com/pschmitt/myl
690
691
 
691
- ```shell
692
+ ## 📝 Description
693
+
694
+ myl is a command-line interface client for IMAP, designed to provide a
695
+ straightforward way to interact with IMAP servers.
696
+
697
+ ## ⭐ Features
698
+
699
+ - Simple command-line interface
700
+ - Support for various IMAP operations
701
+ - Autodiscovery of the required server and port
702
+ - Support for Google IMAP settings
703
+ - Fetch a specific number of messages
704
+ - Mark messages as seen
705
+ - Fetch messages from a specific folder
706
+ - Search for specific strings in messages
707
+ - Output HTML email
708
+ - Output raw email
709
+ - Fetch a specific mail by ID
710
+ - Fetch a specific attachment
711
+
712
+ ## 🚀 Installation
713
+
714
+ To install myl, follow these steps:
715
+
716
+ ```bash
692
717
  pipx install myl
693
718
  ```
694
719
 
720
+ ## 🛠️ Usage
695
721
 
696
- ## Usage
722
+ Here's how you can use myl:
697
723
 
698
- ```shell
724
+ ```bash
699
725
  myl --help
700
726
  ```
727
+
728
+ This command will display the help information for the `myl` command.
729
+
730
+ Here are some examples of using flags with the `myl` command:
731
+
732
+ ```bash
733
+ # Connect to an IMAP server
734
+ myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
735
+
736
+ # Use Google IMAP settings
737
+ myl --google --username "$username" --password "$password"
738
+
739
+ # Autodiscovery of the required server and port
740
+ myl --auto --username "$username" --password "$password"
741
+
742
+ # We won't repeat the server connection flags from here
743
+ alias myl="command myl --auto --username \"$username\" --password \"$password\""
744
+
745
+ # Fetch a specific number of messages
746
+ myl --count 5
747
+
748
+ # Mark messages as seen
749
+ myl --mark-seen
750
+
751
+ # Fetch messages from a specific folder
752
+ myl --folder "INBOX"
753
+
754
+ # Search for specific strings in messages
755
+ myl --search "important"
756
+
757
+ # Fetch a specific mail ID
758
+ myl "$MAILID"
759
+
760
+ # Show HTML
761
+ myl --html "$MAILID"
762
+
763
+ # raw email
764
+ myl --raw "$MAILID" > email.eml
765
+
766
+ # Fetch a specific attachment (outputs to stdout)
767
+ myl "$MAILID" "$ATT" > att.txt
768
+ ```
769
+
770
+ Please replace `imap.example.com`, `$username`, `$password`, `$MAILID`,
771
+ and `$ATT` with your actual IMAP server details, username, password,
772
+ mail ID, and attachment name.
773
+
774
+ ## 📜 License
775
+
776
+ This project is licensed under the GPL-3.0 license.
@@ -5,6 +5,7 @@ myl.py
5
5
  pyproject.toml
6
6
  .github/dependabot.yml
7
7
  .github/workflows/lint.yaml
8
+ .github/workflows/pypi.yaml
8
9
  .github/workflows/release.yaml
9
10
  myl.egg-info/PKG-INFO
10
11
  myl.egg-info/SOURCES.txt
@@ -0,0 +1,3 @@
1
+ imap-tools==1.0.0
2
+ myl-discovery==0.5.2
3
+ rich==13.4.2
@@ -112,7 +112,7 @@ def main():
112
112
  else:
113
113
  if args.auto:
114
114
  try:
115
- settings = autodiscover(args.username).get("imap")
115
+ settings = autodiscover(args.username, password=args.password).get("imap")
116
116
  except Exception:
117
117
  error_msg("Failed to autodiscover IMAP settings")
118
118
  if args.debug:
@@ -16,11 +16,11 @@ classifiers = [
16
16
  "Programming Language :: Python :: 3",
17
17
  ]
18
18
  dependencies = [
19
- "imap_tools",
20
- "myl-discovery",
21
- "rich",
19
+ "imap-tools == 1.0.0",
20
+ "myl-discovery == 0.5.2",
21
+ "rich == 13.4.2",
22
22
  ]
23
- version = "0.8.3"
23
+ version = "0.8.5"
24
24
 
25
25
  [tool.black]
26
26
  line-length = 79
myl-0.8.3/README.md DELETED
@@ -1,14 +0,0 @@
1
- # myl
2
-
3
- ## Installation
4
-
5
- ```shell
6
- pipx install myl
7
- ```
8
-
9
-
10
- ## Usage
11
-
12
- ```shell
13
- myl --help
14
- ```
@@ -1,3 +0,0 @@
1
- imap_tools
2
- myl-discovery
3
- rich
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes