~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugnotification-sending.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-23 18:43:31 UTC
  • mfrom: (13084.2.6 page-match-rewrite-url)
  • Revision ID: launchpad@pqm.canonical.com-20110523184331-dhd2c7cgfuu49epw
[r=sinzui][bug=784273] Adds facility to the PageMatch to handle bad
        URIs

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    a comment.
77
77
    <BLANKLINE>
78
78
    ...
 
79
    You received this bug notification because you are subscribed to
 
80
    mozilla-firefox in Ubuntu.
 
81
    http://bugs.launchpad.dev/bugs/1
 
82
    <BLANKLINE>
 
83
    Title:
 
84
      Firefox does not support SVG
79
85
    ----------------------------------------------------------------------
80
86
    To: mark@example.com
81
87
    From: Sample Person <1@bugs.launchpad.net>
85
91
    a comment.
86
92
    <BLANKLINE>
87
93
    ...
 
94
    You received this bug notification because you are a bug assignee.
 
95
    http://bugs.launchpad.dev/bugs/1
 
96
    <BLANKLINE>
 
97
    Title:
 
98
      Firefox does not support SVG
88
99
    ----------------------------------------------------------------------
89
100
    To: support@ubuntu.com
90
101
    From: Sample Person <1@bugs.launchpad.net>
93
104
    <BLANKLINE>
94
105
    a comment.
95
106
    <BLANKLINE>
96
 
    ...
 
107
    --
 
108
    You received this bug notification because you are a member of Ubuntu
 
109
    Team, which is the registrant for Ubuntu.
 
110
    http://bugs.launchpad.dev/bugs/1
 
111
    <BLANKLINE>
 
112
    Title:
 
113
      Firefox does not support SVG
97
114
    ----------------------------------------------------------------------
98
115
    To: test@canonical.com
99
116
    From: Sample Person <1@bugs.launchpad.net>
103
120
    a comment.
104
121
    <BLANKLINE>
105
122
    ...
 
123
    You received this bug notification because you are a direct subscriber
 
124
    of the bug.
 
125
    http://bugs.launchpad.dev/bugs/1
 
126
    <BLANKLINE>
 
127
    Title:
 
128
      Firefox does not support SVG
 
129
    <BLANKLINE>
 
130
    ...
106
131
    ----------------------------------------------------------------------
107
132
 
108
133
You can see that the message above contains the bug's initial comment's
167
192
    <BLANKLINE>
168
193
    a new comment.
169
194
    <BLANKLINE>
170
 
    ...
 
195
    --
 
196
    You received this bug notification because you are a member of Ubuntu
 
197
    Team, which is the registrant for Ubuntu.
 
198
    http://bugs.launchpad.dev/bugs/1
 
199
    <BLANKLINE>
 
200
    Title:
 
201
      Firefox does not support SVG
171
202
    ----------------------------------------------------------------------
172
203
    To: test@canonical.com
173
204
    ...
211
242
    <BLANKLINE>
212
243
    ** Visibility changed to: Private
213
244
    <BLANKLINE>
214
 
    --
215
245
    ...
 
246
    You received this bug notification because you are a member of Ubuntu
 
247
    Team, which is the registrant for Ubuntu.
 
248
    http://bugs.launchpad.dev/bugs/1
 
249
    <BLANKLINE>
 
250
    Title:
 
251
      Firefox does not support SVG
216
252
    ----------------------------------------------------------------------
217
253
    To: test@canonical.com
218
254
    ...
264
300
    + Another summary
265
301
    <BLANKLINE>
266
302
    --
267
 
    ...
 
303
    You received this bug notification because you are a member of Ubuntu
 
304
    Team, which is the registrant for Ubuntu.
 
305
    http://bugs.launchpad.dev/bugs/1
 
306
    <BLANKLINE>
 
307
    Title:
 
308
      Firefox does not support SVG
268
309
    ----------------------------------------------------------------------
269
310
    To: test@canonical.com
270
311
    ...
283
324
    [...,
284
325
     '',
285
326
     '-- ',
286
 
     'You received this bug notification because you are subscribed to the bug',
287
 
     'report.',
 
327
     'You received this bug notification because you are a direct subscriber',
 
328
     'of the bug.',
288
329
     'http://bugs.launchpad.dev/bugs/1',
289
330
     '',
290
331
     'Title:',
404
445
    <BLANKLINE>
405
446
    *** This bug is a duplicate of bug 1 ***
406
447
        http://bugs.launchpad.dev/bugs/1
407
 
    ...
 
448
    <BLANKLINE>
 
449
    a comment.
 
450
    <BLANKLINE>
 
451
    -- 
 
452
    You received this bug notification because you are a member of Ubuntu
 
453
    Team, which is the registrant for Ubuntu.
 
454
    http://bugs.launchpad.dev/bugs/16
 
455
    <BLANKLINE>
 
456
    Title:
 
457
      new bug
408
458
    ----------------------------------------------------------------------
409
459
    To: test@canonical.com
410
460
    From: Sample Person <16@bugs.launchpad.net>
413
463
    <BLANKLINE>
414
464
    *** This bug is a duplicate of bug 1 ***
415
465
        http://bugs.launchpad.dev/bugs/1
416
 
    ...
 
466
    <BLANKLINE>
 
467
    a comment.
 
468
    <BLANKLINE>
 
469
    -- 
 
470
    You received this bug notification because you are a direct subscriber
 
471
    of the bug.
 
472
    http://bugs.launchpad.dev/bugs/16
 
473
    <BLANKLINE>
 
474
    Title:
 
475
      new bug
 
476
    <BLANKLINE>
 
477
    To unsubscribe from this bug, go to:
 
478
    http://bugs.launchpad.dev/ubuntu/+bug/16/+subscribe
417
479
    ----------------------------------------------------------------------
418
480
 
419
481
    >>> flush_notifications()
523
585
    ...         ten_minutes_ago, sample_person, "title",
524
586
    ...         True, False))
525
587
 
526
 
    >>> notifications = getUtility(
527
 
    ...     IBugNotificationSet).getNotificationsToSend()
 
588
    >>> notifications = getUtility(IBugNotificationSet).getNotificationsToSend()
528
589
    >>> len(notifications)
529
590
    8
530
591
 
599
660
    <BLANKLINE>
600
661
    -- =
601
662
    <BLANKLINE>
602
 
    You received this bug notification because...
 
663
    You received this bug notification because you are subscribed to
 
664
    mozilla-firefox in Ubuntu.
 
665
    http://bugs.launchpad.dev/bugs/1
 
666
    <BLANKLINE>
 
667
    Title:
 
668
      Firefox does not support SVG
603
669
    INFO    Notifying mark@example.com about bug 1.
604
670
    ...
605
671
    INFO    Notifying owner@example.com about bug 1.
972
1038
    a really simple comment.
973
1039
    <BLANKLINE>
974
1040
    --
975
 
    You received this bug notification because you are subscribed to the bug
976
 
    report.
 
1041
    You received this bug notification because you are a direct subscriber
 
1042
    of the bug.
977
1043
    http://bugs.launchpad.dev/bugs/...
978
1044
    <BLANKLINE>
979
1045
    Title:
985
1051
    >>> print_notification(collated_messages['concise@example.com'][0])
986
1052
    To: concise@example.com
987
1053
    ...
988
 
    To manage notifications about this bug go to:...
 
1054
    To unsubscribe from this bug, go to:...
989
1055
 
990
1056
Verbose Team Person gets a concise email, even though they belong to a team
991
1057
that gets verbose email.
1000
1066
    <BLANKLINE>
1001
1067
    --
1002
1068
    You received this bug notification because you are a member of Verbose
1003
 
    Team, which is subscribed to the bug report.
 
1069
    Team, which is a direct subscriber.
1004
1070
    http://bugs.launchpad.dev/bugs/...
1005
1071
    <BLANKLINE>
1006
1072
    Title:
1018
1084
    a really simple comment.
1019
1085
    <BLANKLINE>
1020
1086
    --
1021
 
    You received this bug notification because you are subscribed to the bug
1022
 
    report.
 
1087
    You received this bug notification because you are a direct subscriber
 
1088
    of the bug.
1023
1089
    http://bugs.launchpad.dev/bugs/...
1024
1090
    <BLANKLINE>
1025
1091
    Title:
1033
1099
       will be automatically wrapped by the BugNotification
1034
1100
       machinery. Ain't technology great?
1035
1101
    <BLANKLINE>
1036
 
    To manage notifications about this bug go to:
1037
 
    http://bugs.launchpad.dev/.../+bug/.../+subscriptions
 
1102
    To unsubscribe from this bug, go to:
 
1103
    http://bugs.launchpad.dev/.../+bug/.../+subscribe
1038
1104
    ----------------------------------------------------------------------
1039
1105
 
1040
1106
And Concise Team Person does too, even though his team doesn't want them:
1049
1115
    <BLANKLINE>
1050
1116
    --
1051
1117
    You received this bug notification because you are a member of Concise
1052
 
    Team, which is subscribed to the bug report.
 
1118
    Team, which is a direct subscriber.
1053
1119
    http://bugs.launchpad.dev/bugs/...
1054
1120
    <BLANKLINE>
1055
1121
    Title:
1062
1128
       This is a long description of the bug, which
1063
1129
       will be automatically wrapped by the BugNotification
1064
1130
       machinery. Ain't technology great?
1065
 
    <BLANKLINE>
1066
 
    To manage notifications about this bug go to:
1067
 
    http://bugs.launchpad.dev/.../+bug/.../+subscriptions
1068
1131
    ----------------------------------------------------------------------
1069
1132
 
1070
1133
It's important to note that the bug title and description are wrapped
1080
1143
     ...
1081
1144
     'Bug description:',
1082
1145
     '  This is a long description of the bug, which will be automatically',
1083
 
     "  wrapped by the BugNotification machinery. Ain't technology great?"...]
 
1146
     "  wrapped by the BugNotification machinery. Ain't technology great?"]
1084
1147
 
1085
1148
The title is also wrapped and indented in normal notifications.
1086
1149
 
1090
1153
    [...
1091
1154
     'Title:',
1092
1155
     '  In the beginning, the universe was created. This has made a lot of',
1093
 
     '  people very angry and has been widely regarded as a bad move'...]
 
1156
     '  people very angry and has been widely regarded as a bad move']
1094
1157
 
1095
1158
Self-Generated Bug Notifications
1096
1159
--------------------------------
1178
1241
    ----------------------------------------------------------------------
1179
1242
    To: owner@example.com
1180
1243
    ...
1181
 
    You received this bug notification because you are a member of 
1182
 
    Addressless Team, which is subscribed to the bug report.
 
1244
    You received this bug notification because you are a member of Addressless
 
1245
    Team, which is a direct subscriber.
1183
1246
    ...
1184
1247
    ----------------------------------------------------------------------
1185
1248
    To: support@ubuntu.com
1190
1253
    ----------------------------------------------------------------------
1191
1254
    To: test@canonical.com
1192
1255
    ...
1193
 
    You received this bug notification because you are subscribed to the bug
1194
 
    report.
 
1256
    You received this bug notification because you are a direct subscriber
 
1257
    of the bug.
1195
1258
    ...
1196
1259
    ----------------------------------------------------------------------
1197
1260
 
1242
1305
    ----------------------------------------------------------------------
1243
1306
    To: owner@example.com
1244
1307
    ...
1245
 
    You received this bug notification because you are a member of 
1246
 
    Addressless Team, which is subscribed to the bug report.
 
1308
    You received this bug notification because you are a member of Addressless
 
1309
    Team, which is a direct subscriber.
1247
1310
    ...
1248
1311
    ----------------------------------------------------------------------
1249
1312
    To: support@ubuntu.com
1254
1317
    ----------------------------------------------------------------------
1255
1318
    To: test@canonical.com
1256
1319
    ...
1257
 
    You received this bug notification because you are subscribed to the bug
1258
 
    report.
 
1320
    You received this bug notification because you are a direct subscriber
 
1321
    of the bug.
1259
1322
    ...
1260
1323
    ----------------------------------------------------------------------
1261
1324
 
1295
1358
    no comment for no-priv.
1296
1359
    <BLANKLINE>
1297
1360
    --
1298
 
    You received this bug notification because you are a member of 
1299
 
    Addressless Team, which is subscribed to the bug report.
 
1361
    You received this bug notification because you are a member of Addressless
 
1362
    Team, which is a direct subscriber.
1300
1363
    ...
1301
1364
    ----------------------------------------------------------------------
1302
1365
    To: support@ubuntu.com
1307
1370
    ----------------------------------------------------------------------
1308
1371
    To: test@canonical.com
1309
1372
    ...
1310
 
    You received this bug notification because you are subscribed to the bug
1311
 
    report.
 
1373
    You received this bug notification because you are a direct subscriber
 
1374
    of the bug.
1312
1375
    ...
1313
1376
    ----------------------------------------------------------------------
1314
1377
 
1359
1422
    ----------------------------------------------------------------------
1360
1423
    To: owner@example.com
1361
1424
    ...
1362
 
    You received this bug notification because you are a member of 
1363
 
    Addressless Team, which is subscribed to the bug report.
 
1425
    You received this bug notification because you are a member of Addressless
 
1426
    Team, which is a direct subscriber.
1364
1427
    ...
1365
1428
    ----------------------------------------------------------------------
1366
1429
    To: support@ubuntu.com
1371
1434
    ----------------------------------------------------------------------
1372
1435
    To: test@canonical.com
1373
1436
    ...
1374
 
    You received this bug notification because you are subscribed to the bug
1375
 
    report.
 
1437
    You received this bug notification because you are a direct subscriber
 
1438
    of the bug.
1376
1439
    ...
1377
1440
    ----------------------------------------------------------------------
1378
1441
 
1414
1477
    + Whatever else
1415
1478
    <BLANKLINE>
1416
1479
    --
1417
 
    You received this bug notification because you are a member of 
1418
 
    Addressless Team, which is subscribed to the bug report.
 
1480
    You received this bug notification because you are a member of Addressless
 
1481
    Team, which is a direct subscriber.
1419
1482
    http://bugs.launchpad.dev/bugs/1
1420
1483
    ...
1421
1484
    ----------------------------------------------------------------------
1427
1490
    ----------------------------------------------------------------------
1428
1491
    To: test@canonical.com
1429
1492
    ...
1430
 
    You received this bug notification because you are subscribed to the bug
1431
 
    report.
 
1493
    You received this bug notification because you are a direct subscriber
 
1494
    of the bug.
1432
1495
    ...
1433
1496
    ----------------------------------------------------------------------
1434
1497
 
1481
1544
    ----------------------------------------------------------------------
1482
1545
    To: owner@example.com
1483
1546
    ...
1484
 
    You received this bug notification because you are a member of 
1485
 
    Addressless Team, which is subscribed to the bug report.
 
1547
    You received this bug notification because you are a member of Addressless
 
1548
    Team, which is a direct subscriber.
1486
1549
    ...
1487
1550
    ----------------------------------------------------------------------
1488
1551
    To: support@ubuntu.com
1493
1556
    ----------------------------------------------------------------------
1494
1557
    To: test@canonical.com
1495
1558
    ...
1496
 
    You received this bug notification because you are subscribed to the bug
1497
 
    report.
 
1559
    You received this bug notification because you are a direct subscriber
 
1560
    of the bug.
1498
1561
    ...
1499
1562
    ----------------------------------------------------------------------