Skip to content

Commit 2095791

Browse files
author
Pranav Paruchuri
committed
Use the message no arg during Retr instead of 1
1 parent 940d2d5 commit 2095791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (c *Client) Rset() error {
197197

198198
// Retr downloads the given message and returns it as a mail.Message object.
199199
func (c *Client) Retr(msg int) (*enmime.Envelope, error) {
200-
if _, err := c.conn.Cmd("%s 1", CommandRetrieve); err != nil {
200+
if _, err := c.conn.Cmd("%s %d", CommandRetrieve, msg); err != nil {
201201
return nil, fmt.Errorf("failed at RETR command: %w", err)
202202
}
203203

0 commit comments

Comments
 (0)