+2004-03-05 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * gnus.texi (POP before SMTP): New node.
+
2004-03-04 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (X-Face, Face): Add gnus-x-face and
* Mail:: \e$B%a!<%k$HJVEz\e(B
* Posting Server:: \e$B$I$N%5!<%P!<$rDL$7$F%K%e!<%9$rEj9F$^$?$O%a!<%k$rAw?.$9$k$Y$-$+\e(B?
+* POP before SMTP:: \e$B%a!<%k$rFI$^$J$$$H%a!<%k$rAw?.$G$-$J$$\e(B
* Mail and Post:: \e$BF1;~$K%a!<%k$r=P$7JVEz$9$k\e(B
* Archived Messages:: \e$BAw$C$?%a%C%;!<%8$r\e(B gnus \e$B$,Cy$a$F$*$/$H$3$m\e(B
* Posting Styles:: \e$B$"$J$?$,C/$G$"$k$+$r;XDj$9$k$h$j4JC1$JJ}K!\e(B
@menu
* Mail:: \e$B%a!<%k$HJVEz\e(B
* Posting Server:: \e$B$I$N%5!<%P!<$rDL$7$F%K%e!<%9$rEj9F$^$?$O%a!<%k$rAw?.$9$k$Y$-$+\e(B?
+* POP before SMTP:: \e$B%a!<%k$rFI$^$J$$$H%a!<%k$rAw?.$G$-$J$$\e(B
* Mail and Post:: \e$BF1;~$K%a!<%k$r=P$7JVEz$9$k\e(B
* Archived Messages:: \e$BAw$C$?%a%C%;!<%8$r\e(B gnus \e$B$,Cy$a$F$*$/$H$3$m\e(B
* Posting Styles:: \e$B$"$J$?$,C/$G$"$k$+$r;XDj$9$k$h$j4JC1$JJ}K!\e(B
\e$B$3$l$H;w$?$b$N$K\e(B @code{message-smtpmail-send-it} \e$B$,$"$j$^$9!#\e(B
ISP \e$B$,\e(B @acronym{POP}-before-@acronym{SMTP} \e$B$NG'>Z$rMW5a$7$F$$$k>l9g$KM-\e(B
-\e$BMQ$G$9!#4X?t\e(B @code{mail-source-touch-pop} \e$B$N@bL@J8$r8+$F$/$@$5$$!#\e(B
+\e$BMQ$G$9!#\e(B@xref{POP before SMTP}.
\e$BB>$N2DG=$J\e(B @code{message-send-mail-function} \e$B$NA*Br;h\e(B
\e$B$O\e(B @code{message-send-mail-with-mh},
@code{message-send-mail-with-qmail} \e$B$*$h$S\e(B @code{feedmail-send-it} \e$B$r4^\e(B
\e$B$_$^$9!#\e(B
+@node POP before SMTP
+@section POP before SMTP
+@cindex pop before smtp
+@findex message-smtpmail-send-it
+@findex mail-source-touch-pop
+
+\e$B$"$J$?$N\e(B @acronym{ISP} \e$B$O\e(B @acronym{POP}-before-@acronym{SMTP} \e$BG'>Z$rMW5a\e(B
+\e$B$7$^$9$+\e(B? \e$B$=$l$O!"%a!<%k$rAw?.$9$kA0$N0lDj;~4V0JFb$K\e(B @acronym{POP} \e$B%a!<\e(B
+\e$B%k%5!<%P!<$K@\B3$7$J$1$l$P$J$i$J$$$+$I$&$+$G$9!#$b$7$=$&$J$i$P!"JXMx$J<j\e(B
+\e$B$,$"$j$^$9!#$=$l$K$O\e(B @file{~/.gnus.el} \e$B%U%!%$%k$K0J2<$N9T$rF~$l$F2<$5$$\e(B:
+
+@lisp
+(setq message-send-mail-function 'message-smtpmail-send-it)
+(add-hook 'message-send-mail-hook 'mail-source-touch-pop)
+@end lisp
+
+@noindent
+\e$B$3$l$O!"%a!<%k$rAw?.$9$k$H$-$O$$$D$G$b\e(B gnus \e$B$KA0$b$C$F\e(B @acronym{POP} \e$B%a!<\e(B
+\e$B%k%5!<%P!<$K@\B3$5$;$k$3$H$r0UL#$7$^$9!#4X\e(B
+\e$B?t\e(B @code{mail-source-touch-pop} \e$B$O!"%a!<%k$rAw?.$9$kD>A0$K!"%a!<%k$r<hF@\e(B
+\e$B$;$:$K\e(B @code{mail-sources} \e$B$NCM$K=>$C$F\e(B @acronym{POP} \e$BG'>Z$@$1$r9T$J$$$^\e(B
+\e$B$9!#\e(B@code{smtpmail-send-it} \e$B$G$O$J$/$F!"\e(B@code{message-send-mail-hook} \e$B$r\e(B
+\e$B<B9T$9$k\e(B @code{message-smtpmail-send-it} \e$B$r;H$o$J$1$l$P$J$i$J$$$3$H$H!"\e(B
+@acronym{POP} \e$B@\B3$N$?$a$K\e(B @code{mail-sources} \e$B$NCM$r@5$7$/@_Dj$7$J$1$l\e(B
+\e$B$P$J$i$J$$\e(B (@pxref{Mail Sources}) \e$B$3$H$KCm0U$7$F2<$5$$!#\e(B
+
@node Mail and Post
@section \e$B%a!<%k$HEj9F\e(B
* Mail:: Mailing and replying.
* Posting Server:: What server should you post and mail via?
+* POP before SMTP:: You cannot send a mail unless you read a mail.
* Mail and Post:: Mailing and posting at the same time.
* Archived Messages:: Where Gnus stores the messages you've sent.
* Posting Styles:: An easier way to specify who you are.
@menu
* Mail:: Mailing and replying.
* Posting Server:: What server should you post and mail via?
+* POP before SMTP:: You cannot send a mail unless you read a mail.
* Mail and Post:: Mailing and posting at the same time.
* Archived Messages:: Where Gnus stores the messages you've sent.
* Posting Styles:: An easier way to specify who you are.
@end lisp
To the thing similar to this, there is
-@code{message-smtpmail-send-it}. It is useful if your ISP requires
-the @acronym{POP}-before-@acronym{SMTP} authentication. See the
-documentation for the function @code{mail-source-touch-pop}.
+@code{message-smtpmail-send-it}. It is useful if your @acronym{ISP}
+requires the @acronym{POP}-before-@acronym{SMTP} authentication.
+@xref{POP before SMTP}.
Other possible choices for @code{message-send-mail-function} includes
@code{message-send-mail-with-mh}, @code{message-send-mail-with-qmail},
and @code{feedmail-send-it}.
+@node POP before SMTP
+@section POP before SMTP
+@cindex pop before smtp
+@findex message-smtpmail-send-it
+@findex mail-source-touch-pop
+
+Does your @acronym{ISP} require the @acronym{POP}-before-@acronym{SMTP}
+authentication? It is whether you need to connect to the @acronym{POP}
+mail server within a certain time before sending mails. If so, there is
+a convenient way. To do that, put the following lines in your
+@file{~/.gnus.el} file:
+
+@lisp
+(setq message-send-mail-function 'message-smtpmail-send-it)
+(add-hook 'message-send-mail-hook 'mail-source-touch-pop)
+@end lisp
+
+@noindent
+It means to let Gnus connect to the @acronym{POP} mail server in advance
+whenever you send a mail. The @code{mail-source-touch-pop} function
+does only a @acronym{POP} authentication according to the value of
+@code{mail-sources} without fetching mails, just before sending a mail.
+Note that you have to use @code{message-smtpmail-send-it} which runs
+@code{message-send-mail-hook} rather than @code{smtpmail-send-it} and
+set the value of @code{mail-sources} for a @acronym{POP} connection
+(@pxref{Mail Sources}) correctly.
+
@node Mail and Post
@section Mail and Post