myl 0.8.4__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: myl
3
- Version: 0.8.4
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
@@ -707,7 +707,7 @@ straightforward way to interact with IMAP servers.
707
707
  - Output HTML email
708
708
  - Output raw email
709
709
  - Fetch a specific mail by ID
710
- - Fetch a specific attachment (outputs to stdout)
710
+ - Fetch a specific attachment
711
711
 
712
712
  ## 🚀 Installation
713
713
 
@@ -731,7 +731,7 @@ Here are some examples of using flags with the `myl` command:
731
731
 
732
732
  ```bash
733
733
  # Connect to an IMAP server
734
- myl --server imap.example.com --username $username --password "$password"
734
+ myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
735
735
 
736
736
  # Use Google IMAP settings
737
737
  myl --google --username "$username" --password "$password"
@@ -739,32 +739,32 @@ myl --google --username "$username" --password "$password"
739
739
  # Autodiscovery of the required server and port
740
740
  myl --auto --username "$username" --password "$password"
741
741
 
742
+ # We won't repeat the server connection flags from here
743
+ alias myl="command myl --auto --username \"$username\" --password \"$password\""
744
+
742
745
  # Fetch a specific number of messages
743
- myl --count 5 --username "$username" --password "$password"
746
+ myl --count 5
744
747
 
745
748
  # Mark messages as seen
746
- myl --mark-seen --username "$username" --password "$password"
749
+ myl --mark-seen
747
750
 
748
751
  # Fetch messages from a specific folder
749
- myl --folder "INBOX" --username "$username" --password "$password"
752
+ myl --folder "INBOX"
750
753
 
751
754
  # Search for specific strings in messages
752
- myl --search "important" --username "$username" --password "$password"
753
-
754
- # Show raw email
755
- myl --raw --username "$username" --password "$password"
755
+ myl --search "important"
756
756
 
757
757
  # Fetch a specific mail ID
758
- myl --username "$username" --password "$password" "$MAILID"
758
+ myl "$MAILID"
759
759
 
760
760
  # Show HTML
761
- myl --html --username "$username" --password "$password" "$MAILID"
761
+ myl --html "$MAILID"
762
762
 
763
763
  # raw email
764
- myl --raw --username "$username" --password "$password" "$MAILID" > email.eml
764
+ myl --raw "$MAILID" > email.eml
765
765
 
766
766
  # Fetch a specific attachment (outputs to stdout)
767
- myl --username "$username" --password "$password" "$MAILID" "$ATT" > att.txt
767
+ myl "$MAILID" "$ATT" > att.txt
768
768
  ```
769
769
 
770
770
  Please replace `imap.example.com`, `$username`, `$password`, `$MAILID`,
@@ -21,7 +21,7 @@ straightforward way to interact with IMAP servers.
21
21
  - Output HTML email
22
22
  - Output raw email
23
23
  - Fetch a specific mail by ID
24
- - Fetch a specific attachment (outputs to stdout)
24
+ - Fetch a specific attachment
25
25
 
26
26
  ## 🚀 Installation
27
27
 
@@ -45,7 +45,7 @@ Here are some examples of using flags with the `myl` command:
45
45
 
46
46
  ```bash
47
47
  # Connect to an IMAP server
48
- myl --server imap.example.com --username $username --password "$password"
48
+ myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
49
49
 
50
50
  # Use Google IMAP settings
51
51
  myl --google --username "$username" --password "$password"
@@ -53,32 +53,32 @@ myl --google --username "$username" --password "$password"
53
53
  # Autodiscovery of the required server and port
54
54
  myl --auto --username "$username" --password "$password"
55
55
 
56
+ # We won't repeat the server connection flags from here
57
+ alias myl="command myl --auto --username \"$username\" --password \"$password\""
58
+
56
59
  # Fetch a specific number of messages
57
- myl --count 5 --username "$username" --password "$password"
60
+ myl --count 5
58
61
 
59
62
  # Mark messages as seen
60
- myl --mark-seen --username "$username" --password "$password"
63
+ myl --mark-seen
61
64
 
62
65
  # Fetch messages from a specific folder
63
- myl --folder "INBOX" --username "$username" --password "$password"
66
+ myl --folder "INBOX"
64
67
 
65
68
  # Search for specific strings in messages
66
- myl --search "important" --username "$username" --password "$password"
67
-
68
- # Show raw email
69
- myl --raw --username "$username" --password "$password"
69
+ myl --search "important"
70
70
 
71
71
  # Fetch a specific mail ID
72
- myl --username "$username" --password "$password" "$MAILID"
72
+ myl "$MAILID"
73
73
 
74
74
  # Show HTML
75
- myl --html --username "$username" --password "$password" "$MAILID"
75
+ myl --html "$MAILID"
76
76
 
77
77
  # raw email
78
- myl --raw --username "$username" --password "$password" "$MAILID" > email.eml
78
+ myl --raw "$MAILID" > email.eml
79
79
 
80
80
  # Fetch a specific attachment (outputs to stdout)
81
- myl --username "$username" --password "$password" "$MAILID" "$ATT" > att.txt
81
+ myl "$MAILID" "$ATT" > att.txt
82
82
  ```
83
83
 
84
84
  Please replace `imap.example.com`, `$username`, `$password`, `$MAILID`,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: myl
3
- Version: 0.8.4
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
@@ -707,7 +707,7 @@ straightforward way to interact with IMAP servers.
707
707
  - Output HTML email
708
708
  - Output raw email
709
709
  - Fetch a specific mail by ID
710
- - Fetch a specific attachment (outputs to stdout)
710
+ - Fetch a specific attachment
711
711
 
712
712
  ## 🚀 Installation
713
713
 
@@ -731,7 +731,7 @@ Here are some examples of using flags with the `myl` command:
731
731
 
732
732
  ```bash
733
733
  # Connect to an IMAP server
734
- myl --server imap.example.com --username $username --password "$password"
734
+ myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
735
735
 
736
736
  # Use Google IMAP settings
737
737
  myl --google --username "$username" --password "$password"
@@ -739,32 +739,32 @@ myl --google --username "$username" --password "$password"
739
739
  # Autodiscovery of the required server and port
740
740
  myl --auto --username "$username" --password "$password"
741
741
 
742
+ # We won't repeat the server connection flags from here
743
+ alias myl="command myl --auto --username \"$username\" --password \"$password\""
744
+
742
745
  # Fetch a specific number of messages
743
- myl --count 5 --username "$username" --password "$password"
746
+ myl --count 5
744
747
 
745
748
  # Mark messages as seen
746
- myl --mark-seen --username "$username" --password "$password"
749
+ myl --mark-seen
747
750
 
748
751
  # Fetch messages from a specific folder
749
- myl --folder "INBOX" --username "$username" --password "$password"
752
+ myl --folder "INBOX"
750
753
 
751
754
  # Search for specific strings in messages
752
- myl --search "important" --username "$username" --password "$password"
753
-
754
- # Show raw email
755
- myl --raw --username "$username" --password "$password"
755
+ myl --search "important"
756
756
 
757
757
  # Fetch a specific mail ID
758
- myl --username "$username" --password "$password" "$MAILID"
758
+ myl "$MAILID"
759
759
 
760
760
  # Show HTML
761
- myl --html --username "$username" --password "$password" "$MAILID"
761
+ myl --html "$MAILID"
762
762
 
763
763
  # raw email
764
- myl --raw --username "$username" --password "$password" "$MAILID" > email.eml
764
+ myl --raw "$MAILID" > email.eml
765
765
 
766
766
  # Fetch a specific attachment (outputs to stdout)
767
- myl --username "$username" --password "$password" "$MAILID" "$ATT" > att.txt
767
+ myl "$MAILID" "$ATT" > att.txt
768
768
  ```
769
769
 
770
770
  Please replace `imap.example.com`, `$username`, `$password`, `$MAILID`,
@@ -1,3 +1,3 @@
1
1
  imap-tools==1.0.0
2
- myl-discovery==0.4.0
2
+ myl-discovery==0.5.2
3
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:
@@ -17,10 +17,10 @@ classifiers = [
17
17
  ]
18
18
  dependencies = [
19
19
  "imap-tools == 1.0.0",
20
- "myl-discovery == 0.4.0",
20
+ "myl-discovery == 0.5.2",
21
21
  "rich == 13.4.2",
22
22
  ]
23
- version = "0.8.4"
23
+ version = "0.8.5"
24
24
 
25
25
  [tool.black]
26
26
  line-length = 79
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes