summary refs log tree commit diff stats
path: root/commands/account
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-18 15:34:16 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-18 15:34:16 -0400
commitca2cd00fe75863002145afcbfad1fe03f6258cfc (patch)
tree6699de430d93fddf3a682f838af0f4c81c1dcaba /commands/account
parentb8208509f47301bcb03bc222f5e5765833478250 (diff)
downloadaerc-ca2cd00fe75863002145afcbfad1fe03f6258cfc.tar.gz
Fix scdoc & gofmt issues
Diffstat (limited to 'commands/account')
-rw-r--r--commands/account/compose.go2
-rw-r--r--commands/account/reply.go16
-rw-r--r--commands/account/view-message.go1
3 files changed, 7 insertions, 12 deletions
diff --git a/commands/account/compose.go b/commands/account/compose.go
index d77689e..aeb415e 100644
--- a/commands/account/compose.go
+++ b/commands/account/compose.go
@@ -29,5 +29,3 @@ func Compose(aerc *widgets.Aerc, args []string) error {
 	})
 	return nil
 }
-
-
diff --git a/commands/account/reply.go b/commands/account/reply.go
index e5b7679..f55d448 100644
--- a/commands/account/reply.go
+++ b/commands/account/reply.go
@@ -8,11 +8,11 @@ import (
 	gomail "net/mail"
 	"strings"
 
+	"git.sr.ht/~sircmpwn/getopt"
+	"github.com/emersion/go-imap"
 	"github.com/emersion/go-message"
 	_ "github.com/emersion/go-message/charset"
 	"github.com/emersion/go-message/mail"
-	"github.com/emersion/go-imap"
-	"git.sr.ht/~sircmpwn/getopt"
 
 	"git.sr.ht/~sircmpwn/aerc/widgets"
 )
@@ -26,7 +26,7 @@ func Reply(aerc *widgets.Aerc, args []string) error {
 	if err != nil {
 		return err
 	}
-	if optind != len(args) - 1 {
+	if optind != len(args)-1 {
 		return errors.New("Usage: reply [-aq]")
 	}
 	var (
@@ -103,9 +103,9 @@ func Reply(aerc *widgets.Aerc, args []string) error {
 	composer := widgets.NewComposer(
 		aerc.Config(), acct.AccountConfig(), acct.Worker()).
 		Defaults(map[string]string{
-			"To": strings.Join(to, ","),
-			"Cc": strings.Join(cc, ","),
-			"Subject": subject,
+			"To":          strings.Join(to, ","),
+			"Cc":          strings.Join(cc, ","),
+			"Subject":     subject,
 			"In-Reply-To": msg.Envelope.MessageId,
 		}).
 		FocusTerminal()
@@ -153,7 +153,7 @@ func Reply(aerc *widgets.Aerc, args []string) error {
 				msg.Envelope.Date.Format("Mon Jan 2, 2006 at 3:04 PM"),
 				msg.Envelope.From[0].PersonalName))
 			for scanner.Scan() {
-				io.WriteString(pipein, fmt.Sprintf("> %s\n",scanner.Text()))
+				io.WriteString(pipein, fmt.Sprintf("> %s\n", scanner.Text()))
 			}
 			pipein.Close()
 			pipeout.Close()
@@ -165,5 +165,3 @@ func Reply(aerc *widgets.Aerc, args []string) error {
 
 	return nil
 }
-
-
diff --git a/commands/account/view-message.go b/commands/account/view-message.go
index cf2baaa..4db5c95 100644
--- a/commands/account/view-message.go
+++ b/commands/account/view-message.go
@@ -27,4 +27,3 @@ func ViewMessage(aerc *widgets.Aerc, args []string) error {
 	aerc.NewTab(viewer, msg.Envelope.Subject)
 	return nil
 }
-
'n273' href='#n273'>273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455