blob: 3f3995f25d088565b13bef4a801c0c5eae76aa49 [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001
2:mod:`nntplib` --- NNTP protocol client
3=======================================
4
5.. module:: nntplib
6 :synopsis: NNTP protocol client (requires sockets).
7
8
9.. index::
10 pair: NNTP; protocol
11 single: Network News Transfer Protocol
12
13This module defines the class :class:`NNTP` which implements the client side of
Antoine Pitrou69ab9512010-09-29 15:03:40 +000014the Network News Transfer Protocol. It can be used to implement a news reader
15or poster, or automated news processors. It is compatible with :rfc:`3977`
16as well as the older :rfc:`977` and :rfc:`2980`.
Georg Brandl116aa622007-08-15 14:28:22 +000017
18Here are two small examples of how it can be used. To list some statistics
19about a newsgroup and print the subjects of the last 10 articles::
20
Antoine Pitrou69ab9512010-09-29 15:03:40 +000021 >>> s = nntplib.NNTP('news.gmane.org')
Antoine Pitroue3396512010-09-07 18:44:12 +000022 >>> resp, count, first, last, name = s.group('gmane.comp.python.committers')
Georg Brandl6911e3c2007-09-04 07:15:32 +000023 >>> print('Group', name, 'has', count, 'articles, range', first, 'to', last)
Antoine Pitrou69ab9512010-09-29 15:03:40 +000024 Group gmane.comp.python.committers has 1096 articles, range 1 to 1096
25 >>> resp, overviews = s.over((last - 9, last))
26 >>> for id, over in overviews:
27 ... print(id, nntplib.decode_header(over['subject']))
Georg Brandl48310cd2009-01-03 21:18:54 +000028 ...
Antoine Pitrou69ab9512010-09-29 15:03:40 +000029 1087 Re: Commit privileges for Łukasz Langa
30 1088 Re: 3.2 alpha 2 freeze
31 1089 Re: 3.2 alpha 2 freeze
32 1090 Re: Commit privileges for Łukasz Langa
33 1091 Re: Commit privileges for Łukasz Langa
34 1092 Updated ssh key
35 1093 Re: Updated ssh key
36 1094 Re: Updated ssh key
37 1095 Hello fellow committers!
38 1096 Re: Hello fellow committers!
Georg Brandl116aa622007-08-15 14:28:22 +000039 >>> s.quit()
Antoine Pitroue3396512010-09-07 18:44:12 +000040 '205 Bye!'
Georg Brandl116aa622007-08-15 14:28:22 +000041
Antoine Pitrou69ab9512010-09-29 15:03:40 +000042To post an article from a binary file (this assumes that the article has valid
Antoine Pitroue3396512010-09-07 18:44:12 +000043headers, and that you have right to post on the particular newsgroup)::
Georg Brandl116aa622007-08-15 14:28:22 +000044
Antoine Pitrou69ab9512010-09-29 15:03:40 +000045 >>> s = nntplib.NNTP('news.gmane.org')
46 >>> f = open('/tmp/article.txt', 'rb')
Georg Brandl116aa622007-08-15 14:28:22 +000047 >>> s.post(f)
48 '240 Article posted successfully.'
49 >>> s.quit()
Antoine Pitroue3396512010-09-07 18:44:12 +000050 '205 Bye!'
Georg Brandl116aa622007-08-15 14:28:22 +000051
Antoine Pitrou69ab9512010-09-29 15:03:40 +000052The module itself defines the following classes:
Georg Brandl116aa622007-08-15 14:28:22 +000053
54
Antoine Pitrou69ab9512010-09-29 15:03:40 +000055.. class:: NNTP(host, port=119, user=None, password=None, readermode=None, usenetrc=True, [timeout])
Georg Brandl116aa622007-08-15 14:28:22 +000056
57 Return a new instance of the :class:`NNTP` class, representing a connection
Antoine Pitrou69ab9512010-09-29 15:03:40 +000058 to the NNTP server running on host *host*, listening at port *port*.
59 An optional *timeout* can be specified for the socket connection.
60 If the optional *user* and *password* are provided, or if suitable
61 credentials are present in :file:`/.netrc` and the optional flag *usenetrc*
62 is true (the default), the ``AUTHINFO USER`` and ``AUTHINFO PASS`` commands
63 are used to identify and authenticate the user to the server. If the optional
64 flag *readermode* is true, then a ``mode reader`` command is sent before
65 authentication is performed. Reader mode is sometimes necessary if you are
66 connecting to an NNTP server on the local machine and intend to call
67 reader-specific commands, such as ``group``. If you get unexpected
Georg Brandl116aa622007-08-15 14:28:22 +000068 :exc:`NNTPPermanentError`\ s, you might need to set *readermode*.
69 *readermode* defaults to ``None``. *usenetrc* defaults to ``True``.
70
Georg Brandl116aa622007-08-15 14:28:22 +000071
72.. exception:: NNTPError
73
Antoine Pitrou69ab9512010-09-29 15:03:40 +000074 Derived from the standard exception :exc:`Exception`, this is the base
75 class for all exceptions raised by the :mod:`nntplib` module. Instances
76 of this class have the following attribute:
77
78 .. attribute:: response
79
80 The response of the server if available, as a :class:`str` object.
Georg Brandl116aa622007-08-15 14:28:22 +000081
82
83.. exception:: NNTPReplyError
84
Antoine Pitrou69ab9512010-09-29 15:03:40 +000085 Exception raised when an unexpected reply is received from the server.
Georg Brandl116aa622007-08-15 14:28:22 +000086
87
88.. exception:: NNTPTemporaryError
89
Antoine Pitrou69ab9512010-09-29 15:03:40 +000090 Exception raised when a response code in the range 400--499 is received.
Georg Brandl116aa622007-08-15 14:28:22 +000091
92
93.. exception:: NNTPPermanentError
94
Antoine Pitrou69ab9512010-09-29 15:03:40 +000095 Exception raised when a response code in the range 500--599 is received.
Georg Brandl116aa622007-08-15 14:28:22 +000096
97
98.. exception:: NNTPProtocolError
99
100 Exception raised when a reply is received from the server that does not begin
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000101 with a digit in the range 1--5.
Georg Brandl116aa622007-08-15 14:28:22 +0000102
103
104.. exception:: NNTPDataError
105
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000106 Exception raised when there is some error in the response data.
Georg Brandl116aa622007-08-15 14:28:22 +0000107
108
109.. _nntp-objects:
110
111NNTP Objects
112------------
113
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000114:class:`NNTP` instances have the following methods. The *response* that is
115returned as the first item in the return tuple of almost all methods is the
116server's response: a string beginning with a three-digit code. If the server's
117response indicates an error, the method raises one of the above exceptions.
118
119.. note::
120 Many of the following methods take an optional keyword-only argument *file*.
121 When the *file* argument is supplied, it must be either a :term:`file object`
122 opened for binary writing, or the name of an on-disk file to be written to.
123 The method will then write any data returned by the server (except for the
124 response line and the terminating dot) to the file; any list of lines,
125 tuples or objects that the method normally returns will be empty.
126
127
128.. versionchanged:: 3.2
129 Many of the following methods have been reworked and fixed, which makes
130 them incompatible with their 3.1 counterparts.
131
132
133.. method:: NNTP.quit()
134
135 Send a ``QUIT`` command and close the connection. Once this method has been
136 called, no other methods of the NNTP object should be called.
Georg Brandl116aa622007-08-15 14:28:22 +0000137
138
139.. method:: NNTP.getwelcome()
140
141 Return the welcome message sent by the server in reply to the initial
142 connection. (This message sometimes contains disclaimers or help information
143 that may be relevant to the user.)
144
145
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000146.. method:: NNTP.getcapabilities()
Georg Brandl116aa622007-08-15 14:28:22 +0000147
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000148 Return the :rfc:`3977` capabilities advertised by the server, as a
149 :class:`dict` instance mapping capability names to (possibly empty) lists
150 of values. On legacy servers which don't understand the ``CAPABILITIES``
151 command, an empty dictionary is returned instead.
152
153 >>> s = NNTP('news.gmane.org')
154 >>> 'POST' in s.getcapabilities()
155 True
156
157 .. versionadded:: 3.2
Georg Brandl116aa622007-08-15 14:28:22 +0000158
159
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000160.. method:: NNTP.newgroups(date, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000161
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000162 Send a ``NEWGROUPS`` command. The *date* argument should be a
163 :class:`datetime.date` or :class:`datetime.datetime` object.
164 Return a pair ``(response, groups)`` where *groups* is a list representing
165 the groups that are new since the given *date*. If *file* is supplied,
166 though, then *groups* will be empty.
167
168 >>> from datetime import date, timedelta
169 >>> resp, groups = s.newgroups(date.today() - timedelta(days=3))
170 >>> len(groups)
171 85
172 >>> groups[0]
173 GroupInfo(group='gmane.network.tor.devel', last='4', first='1', flag='m')
Georg Brandl116aa622007-08-15 14:28:22 +0000174
175
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000176.. method:: NNTP.newnews(group, date, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000177
178 Send a ``NEWNEWS`` command. Here, *group* is a group name or ``'*'``, and
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000179 *date* has the same meaning as for :meth:`newgroups`. Return a pair
180 ``(response, articles)`` where *articles* is a list of message ids.
181
182 This command is frequently disabled by NNTP server administrators.
Georg Brandl116aa622007-08-15 14:28:22 +0000183
184
Antoine Pitrou08eeada2010-11-04 21:36:15 +0000185.. method:: NNTP.list(group_pattern=None, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000186
Antoine Pitrou08eeada2010-11-04 21:36:15 +0000187 Send a ``LIST`` or ``LIST ACTIVE`` command. Return a pair
188 ``(response, list)`` where *list* is a list of tuples representing all
189 the groups available from this NNTP server, optionally matching the
190 pattern string *group_pattern*. Each tuple has the form
191 ``(group, last, first, flag)``, where *group* is a group name, *last*
192 and *first* are the last and first article numbers, and *flag* usually
193 takes one of these values:
Antoine Pitrou7dd1af02010-11-03 18:32:54 +0000194
195 * ``y``: Local postings and articles from peers are allowed.
196 * ``m``: The group is moderated and all postings must be approved.
197 * ``n``: No local postings are allowed, only articles from peers.
198 * ``j``: Articles from peers are filed in the junk group instead.
199 * ``x``: No local postings, and articles from peers are ignored.
200 * ``=foo.bar``: Articles are filed in the ``foo.bar`` group instead.
201
202 If *flag* has another value, then the status of the newsgroup should be
203 considered unknown.
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000204
Antoine Pitrou08eeada2010-11-04 21:36:15 +0000205 This command can return very large results, especially if *group_pattern*
206 is not specified. It is best to cache the results offline unless you
207 really need to refresh them.
208
209 .. versionchanged:: 3.2
210 *group_pattern* was added.
Georg Brandl116aa622007-08-15 14:28:22 +0000211
212
213.. method:: NNTP.descriptions(grouppattern)
214
215 Send a ``LIST NEWSGROUPS`` command, where *grouppattern* is a wildmat string as
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000216 specified in :rfc:`3977` (it's essentially the same as DOS or UNIX shell wildcard
217 strings). Return a pair ``(response, descriptions)``, where *descriptions*
218 is a dictionary mapping group names to textual descriptions.
219
220 >>> resp, descs = s.descriptions('gmane.comp.python.*')
221 >>> len(descs)
222 295
223 >>> descs.popitem()
224 ('gmane.comp.python.bio.general', 'BioPython discussion list (Moderated)')
Georg Brandl116aa622007-08-15 14:28:22 +0000225
Georg Brandl116aa622007-08-15 14:28:22 +0000226
227.. method:: NNTP.description(group)
228
229 Get a description for a single group *group*. If more than one group matches
230 (if 'group' is a real wildmat string), return the first match. If no group
231 matches, return an empty string.
232
233 This elides the response code from the server. If the response code is needed,
234 use :meth:`descriptions`.
235
Georg Brandl116aa622007-08-15 14:28:22 +0000236
237.. method:: NNTP.group(name)
238
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000239 Send a ``GROUP`` command, where *name* is the group name. The group is
240 selected as the current group, if it exists. Return a tuple
241 ``(response, count, first, last, name)`` where *count* is the (estimated)
242 number of articles in the group, *first* is the first article number in
243 the group, *last* is the last article number in the group, and *name*
244 is the group name.
Georg Brandl116aa622007-08-15 14:28:22 +0000245
246
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000247.. method:: NNTP.over(message_spec, *, file=None)
248
249 Send a ``OVER`` command, or a ``XOVER`` command on legacy servers.
250 *message_spec* can be either a string representing a message id, or
251 a ``(first, last)`` tuple of numbers indicating a range of articles in
252 the current group, or a ``(first, None)`` tuple indicating a range of
253 articles starting from *first* to the last article in the current group,
254 or :const:`None` to select the current article in the current group.
255
256 Return a pair ``(response, overviews)``. *overviews* is a list of
257 ``(article_number, overview)`` tuples, one for each article selected
258 by *message_spec*. Each *overview* is a dictionary with the same number
259 of items, but this number depends on the server. These items are either
260 message headers (the key is then the lower-cased header name) or metadata
261 items (the key is then the metadata name prepended with ``":"``). The
262 following items are guaranteed to be present by the NNTP specification:
263
264 * the ``subject``, ``from``, ``date``, ``message-id`` and ``references``
265 headers
266 * the ``:bytes`` metadata: the number of bytes in the entire raw article
267 (including headers and body)
268 * the ``:lines`` metadata: the number of lines in the article body
269
Antoine Pitrou4103bc02010-11-03 18:18:43 +0000270 The value of each item is either a string, or :const:`None` if not present.
271
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000272 It is advisable to use the :func:`decode_header` function on header
273 values when they may contain non-ASCII characters::
274
275 >>> _, _, first, last, _ = s.group('gmane.comp.python.devel')
276 >>> resp, overviews = s.over((last, last))
277 >>> art_num, over = overviews[0]
278 >>> art_num
279 117216
280 >>> list(over.keys())
281 ['xref', 'from', ':lines', ':bytes', 'references', 'date', 'message-id', 'subject']
282 >>> over['from']
283 '=?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= <martin@v.loewis.de>'
284 >>> nntplib.decode_header(over['from'])
285 '"Martin v. Löwis" <martin@v.loewis.de>'
286
287 .. versionadded:: 3.2
288
289
290.. method:: NNTP.help(*, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000291
292 Send a ``HELP`` command. Return a pair ``(response, list)`` where *list* is a
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000293 list of help strings.
Georg Brandl116aa622007-08-15 14:28:22 +0000294
295
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000296.. method:: NNTP.stat(message_spec=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000297
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000298 Send a ``STAT`` command, where *message_spec* is either a message id
299 (enclosed in ``'<'`` and ``'>'``) or an article number in the current group.
300 If *message_spec* is omitted or :const:`None`, the current article in the
301 current group is considered. Return a triple ``(response, number, id)``
302 where *number* is the article number and *id* is the message id.
303
304 >>> _, _, first, last, _ = s.group('gmane.comp.python.devel')
305 >>> resp, number, message_id = s.stat(first)
306 >>> number, message_id
307 (9099, '<20030112190404.GE29873@epoch.metaslash.com>')
Georg Brandl116aa622007-08-15 14:28:22 +0000308
309
310.. method:: NNTP.next()
311
312 Send a ``NEXT`` command. Return as for :meth:`stat`.
313
314
315.. method:: NNTP.last()
316
317 Send a ``LAST`` command. Return as for :meth:`stat`.
318
319
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000320.. method:: NNTP.article(message_spec=None, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000321
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000322 Send an ``ARTICLE`` command, where *message_spec* has the same meaning as
323 for :meth:`stat`. Return a tuple ``(response, info)`` where *info*
324 is a :class:`~collections.namedtuple` with three members *number*,
325 *message_id* and *lines* (in that order). *number* is the article number
326 in the group (or 0 if the information is not available), *message_id* the
327 message id as a string, and *lines* a list of lines (without terminating
328 newlines) comprising the raw message including headers and body.
329
330 >>> resp, info = s.article('<20030112190404.GE29873@epoch.metaslash.com>')
331 >>> info.number
332 0
333 >>> info.message_id
334 '<20030112190404.GE29873@epoch.metaslash.com>'
335 >>> len(info.lines)
336 65
337 >>> info.lines[0]
338 b'Path: main.gmane.org!not-for-mail'
339 >>> info.lines[1]
340 b'From: Neal Norwitz <neal@metaslash.com>'
341 >>> info.lines[-3:]
342 [b'There is a patch for 2.3 as well as 2.2.', b'', b'Neal']
Georg Brandl116aa622007-08-15 14:28:22 +0000343
344
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000345.. method:: NNTP.head(message_spec=None, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000346
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000347 Same as :meth:`article()`, but sends a ``HEAD`` command. The *lines*
348 returned (or written to *file*) will only contain the message headers, not
349 the body.
Georg Brandl116aa622007-08-15 14:28:22 +0000350
351
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000352.. method:: NNTP.body(message_spec=None, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000353
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000354 Same as :meth:`article()`, but sends a ``BODY`` command. The *lines*
355 returned (or written to *file*) will only contain the message body, not the
356 headers.
357
358
359.. method:: NNTP.post(data)
360
361 Post an article using the ``POST`` command. The *data* argument is either
362 a :term:`file object` opened for binary reading, or any iterable of bytes
363 objects (representing raw lines of the article to be posted). It should
364 represent a well-formed news article, including the required headers. The
365 :meth:`post` method automatically escapes lines beginning with ``.`` and
366 appends the termination line.
367
368 If the method succeeds, the server's response is returned. If the server
369 refuses posting, a :class:`NNTPReplyError` is raised.
370
371
372.. method:: NNTP.ihave(message_id, data)
373
374 Send an ``IHAVE`` command. *message_id* is the id of the message to send
375 to the server (enclosed in ``'<'`` and ``'>'``). The *data* parameter
376 and the return value are the same as for :meth:`post()`.
377
378
379.. method:: NNTP.date()
380
381 Return a pair ``(response, date)``. *date* is a :class:`~datetime.datetime`
382 object containing the current date and time of the server.
Georg Brandl116aa622007-08-15 14:28:22 +0000383
384
385.. method:: NNTP.slave()
386
387 Send a ``SLAVE`` command. Return the server's *response*.
388
389
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000390.. method:: NNTP.set_debuglevel(level)
Georg Brandl116aa622007-08-15 14:28:22 +0000391
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000392 Set the instance's debugging level. This controls the amount of debugging
393 output printed. The default, ``0``, produces no debugging output. A value of
394 ``1`` produces a moderate amount of debugging output, generally a single line
395 per request or response. A value of ``2`` or higher produces the maximum amount
396 of debugging output, logging each line sent and received on the connection
397 (including message text).
398
399
400The following are optional NNTP extensions defined in :rfc:`2980`. Some of
401them have been superseded by newer commands in :rfc:`3977`.
402
403
404.. method:: NNTP.xhdr(header, string, *, file=None)
405
406 Send an ``XHDR`` command. The *header* argument is a header keyword, e.g.
Georg Brandl116aa622007-08-15 14:28:22 +0000407 ``'subject'``. The *string* argument should have the form ``'first-last'``
408 where *first* and *last* are the first and last article numbers to search.
409 Return a pair ``(response, list)``, where *list* is a list of pairs ``(id,
410 text)``, where *id* is an article number (as a string) and *text* is the text of
411 the requested header for that article. If the *file* parameter is supplied, then
412 the output of the ``XHDR`` command is stored in a file. If *file* is a string,
Antoine Pitrou11cb9612010-09-15 11:11:28 +0000413 then the method will open a file with that name, write to it then close it.
414 If *file* is a :term:`file object`, then it will start calling :meth:`write` on
415 it to store the lines of the command output. If *file* is supplied, then the
Georg Brandl116aa622007-08-15 14:28:22 +0000416 returned *list* is an empty list.
417
418
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000419.. method:: NNTP.xover(start, end, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000420
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000421 Send an ``XOVER`` command. *start* and *end* are article numbers
422 delimiting the range of articles to select. The return value is the
423 same of for :meth:`over()`. It is recommended to use :meth:`over()`
424 instead, since it will automatically use the newer ``OVER`` command
425 if available.
Georg Brandl116aa622007-08-15 14:28:22 +0000426
427
428.. method:: NNTP.xpath(id)
429
430 Return a pair ``(resp, path)``, where *path* is the directory path to the
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000431 article with message ID *id*. Most of the time, this extension is not
432 enabled by NNTP server administrators.
Georg Brandl116aa622007-08-15 14:28:22 +0000433
434
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000435.. XXX deprecated:
Georg Brandl116aa622007-08-15 14:28:22 +0000436
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000437 .. method:: NNTP.xgtitle(name, *, file=None)
Georg Brandl116aa622007-08-15 14:28:22 +0000438
Antoine Pitrou69ab9512010-09-29 15:03:40 +0000439 Process an ``XGTITLE`` command, returning a pair ``(response, list)``, where
440 *list* is a list of tuples containing ``(name, title)``. If the *file* parameter
441 is supplied, then the output of the ``XGTITLE`` command is stored in a file.
442 If *file* is a string, then the method will open a file with that name, write
443 to it then close it. If *file* is a :term:`file object`, then it will start
444 calling :meth:`write` on it to store the lines of the command output. If *file*
445 is supplied, then the returned *list* is an empty list. This is an optional NNTP
446 extension, and may not be supported by all servers.
447
448 RFC2980 says "It is suggested that this extension be deprecated". Use
449 :meth:`descriptions` or :meth:`description` instead.
450
451
452Utility functions
453-----------------
454
455The module also defines the following utility function:
456
457
458.. function:: decode_header(header_str)
459
460 Decode a header value, un-escaping any escaped non-ASCII characters.
461 *header_str* must be a :class:`str` object. The unescaped value is
462 returned. Using this function is recommended to display some headers
463 in a human readable form::
464
465 >>> decode_header("Some subject")
466 'Some subject'
467 >>> decode_header("=?ISO-8859-15?Q?D=E9buter_en_Python?=")
468 'Débuter en Python'
469 >>> decode_header("Re: =?UTF-8?B?cHJvYmzDqG1lIGRlIG1hdHJpY2U=?=")
470 'Re: problème de matrice'